Skip to content

Instantly share code, notes, and snippets.

@brosner
Last active October 18, 2017 11:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brosner/dbc092e3024f6a80149b to your computer and use it in GitHub Desktop.
Save brosner/dbc092e3024f6a80149b to your computer and use it in GitHub Desktop.
trusty ACI image build without actool
# 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 <brosner@gmail.com>"
}
}
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