diff options
Diffstat (limited to 'build/socat/build.sh')
| -rw-r--r-- | build/socat/build.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/build/socat/build.sh b/build/socat/build.sh index d0d6ef9..fbc70d9 100644 --- a/build/socat/build.sh +++ b/build/socat/build.sh @@ -1,6 +1,17 @@ #!/bin/sh + +build=docker +if [ -x "$(command -v buildah)" ] ; then + build=buildah +fi + +run=docker +if [ -x "$(command -v podman)" ] ; then + run=podman +fi + image="socat-builder" -docker build -t "$image" . +$build build -t "$image" . if ! [ -d build ] ; then @@ -10,7 +21,7 @@ fi cp build-int.sh build/build.sh echo "chown -R $(id -u):$(id -g) /build" >> build/build.sh -docker run -it \ +$run run --rm -it \ -v `pwd`/build:/build \ "$image" \ sh /build/build.sh |
