Created
July 9, 2016 22:32
-
-
Save rsdy/3bc540f59c4b782b4be8567ebbbb234b to your computer and use it in GitHub Desktop.
Script stub for generating ACIs on debian testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
acbuild begin | |
acbuildEnd() { | |
export EXIT=$? | |
acbuild --debug end && exit $EXIT | |
} | |
trap acbuildEnd EXIT | |
echo $(dd if=/dev/urandom bs=1b count=512 |sha256sum |head -c32) >rkt-machine-id | |
acbuild set-name random.com/alpine-tmux | |
acbuild dep add quay.io/coreos/alpine-sh | |
acbuild copy rkt-machine-id /etc/machine-id | |
acbuild copy repositories /etc/apk/repositories | |
acbuild run apk update | |
acbuild run apk upgrade | |
acbuild run apk add tmux | |
acbuild mount add workdir /tmp | |
acbuild set-exec -- /bin/sh -c "exec TERM=rxvt tmux" | |
acbuild write --overwrite alpine-tmux.aci | |
acbuild end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment