summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-06-19 23:43:57 -0400
committerJesse Luehrs <doy@tozt.net>2021-06-19 23:43:57 -0400
commiteee0df70109c68bfaff241aed1a8d98bce1b1e5e (patch)
treed7fc4a76d700394c27426f42d2957a653975abd1
parent68edcb18e51db18aa7de0bbf500f0e6c252dd1b3 (diff)
downloadconf-eee0df70109c68bfaff241aed1a8d98bce1b1e5e.tar.gz
conf-eee0df70109c68bfaff241aed1a8d98bce1b1e5e.zip
condense this into a single script
-rwxr-xr-xbin/smt6
-rw-r--r--docker/smt4
2 files changed, 5 insertions, 5 deletions
diff --git a/bin/smt b/bin/smt
index d7ac305..40078a9 100755
--- a/bin/smt
+++ b/bin/smt
@@ -1,5 +1,9 @@
#!/bin/sh
set -eu
-podman images | grep -q localhost/smt || podman build -t smt -f ~/conf/docker/smt
+podman images | grep -q localhost/smt || cat <<EOF | podman build -t smt -f -
+FROM docker.io/debian:stable
+RUN apt-get update && apt-get install -y cpanminus make
+RUN cpanm Games::SMTNocturne::Demons
+EOF
podman run --rm smt smt "$@"
diff --git a/docker/smt b/docker/smt
deleted file mode 100644
index a7a45ee..0000000
--- a/docker/smt
+++ /dev/null
@@ -1,4 +0,0 @@
-FROM docker.io/debian:stable
-
-RUN apt-get update && apt-get install -y cpanminus make
-RUN cpanm Games::SMTNocturne::Demons