aboutsummaryrefslogtreecommitdiff
path: root/build/socat
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-10-29 21:53:53 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-10-29 21:53:53 -0400
commit5b25c5155312f626813e0d36b7933f5eba801dd2 (patch)
tree6e264a92dbe13ed77821a5c5bd536b6701768442 /build/socat
parente9b933ea6ce85f5d4f4653b7e5e6a7c836fcc893 (diff)
downloaddotfiles-5b25c5155312f626813e0d36b7933f5eba801dd2.tar.gz
dotfiles-5b25c5155312f626813e0d36b7933f5eba801dd2.tar.xz
Major dotfile cleanup
Diffstat (limited to 'build/socat')
-rw-r--r--build/socat/Dockerfile2
-rw-r--r--build/socat/build.sh15
2 files changed, 14 insertions, 3 deletions
diff --git a/build/socat/Dockerfile b/build/socat/Dockerfile
index 1850917..e872ec8 100644
--- a/build/socat/Dockerfile
+++ b/build/socat/Dockerfile
@@ -1,5 +1,5 @@
FROM alpine:latest
-RUN apk add gcc libc-dev make
+RUN apk add gcc libc-dev make openssl-dev
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