Last active
October 18, 2017 11:00
-
-
Save brosner/dbc092e3024f6a80149b to your computer and use it in GitHub Desktop.
trusty ACI image build without actool
This file contains 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
# create ACI with trusty without actool due to bug https://github.com/coreos/rocket/issues/198 | |
mkdir sleeper ; cd sleeper | |
debootstrap --verbose --variant=minbase --include=iproute,iputils-ping --arch=amd64 trusty rootfs | |
cat > app <<EOF | |
{ | |
"acVersion": "1.0.0", | |
"acKind": "AppManifest", | |
"name": "sleeper", | |
"version": "1.0.0", | |
"os": "linux", | |
"arch": "amd64", | |
"exec": [ | |
"/bin/sleep 5" | |
], | |
"annotations": { | |
"authors": "Brian Rosner <[email protected]>" | |
} | |
} | |
EOF | |
# use gpg to create a sig, but we'll skip that for now | |
tar cvvf - app rootfs | gzip -c > sleeper.aci | |
rkt run sleeper.aci |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment