diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-06-20 04:23:59 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-06-20 04:23:59 -0400 |
commit | 8bdd6c5ee0f7bb59fd00d24a48fdc980c7ba8aa8 (patch) | |
tree | 4369ead5289020993a1f7662d0400be9882cb39c | |
parent | aa9134eaee7b06c38bc7984b147ef46d9ad1999e (diff) | |
download | conf-8bdd6c5ee0f7bb59fd00d24a48fdc980c7ba8aa8.tar.gz conf-8bdd6c5ee0f7bb59fd00d24a48fdc980c7ba8aa8.zip |
make smt use alpine instead of debian
it has very few dependencies, so this seems to work fine (unlike reply
which needs to do things like compile xs modules)
-rwxr-xr-x | bin/smt | 6 | ||||
-rw-r--r-- | config/sh/aliases | 1 |
2 files changed, 4 insertions, 3 deletions
@@ -2,8 +2,8 @@ set -eu podman images | grep -q localhost/smt || cat <<EOF | podman build -t smt -f - -FROM docker.io/debian:stable-slim -RUN apt-get update && apt-get install -y cpanminus make -RUN cpanm Games::SMTNocturne::Demons +FROM docker.io/alpine:latest +RUN apk add perl make +RUN env PERL_MM_USE_DEFAULT=1 perl -MCPAN -e'install Games::SMTNocturne::Demons' EOF podman run --rm smt smt "$@" diff --git a/config/sh/aliases b/config/sh/aliases index c161a21..5a639f6 100644 --- a/config/sh/aliases +++ b/config/sh/aliases @@ -40,6 +40,7 @@ alias svim="vim -i NONE -u NONE -U NONE --noplugin --cmd 'set noswapfile' --cmd alias wifi="sudo systemctl restart iwd" alias debian="podman run --rm -itv "${HOME}:${HOME}" docker.io/debian:stable bash" alias ubuntu="podman run --rm -itv "${HOME}:${HOME}" docker.io/ubuntu:latest bash" +alias alpine="podman run --rm -itv "${HOME}:${HOME}" docker.io/alpine:latest sh" # }}} # vim:ft=sh:fdm=marker |