Skip to content

Instantly share code, notes, and snippets.

@lfache
Created June 5, 2020 22:06
Show Gist options
  • Save lfache/2b2c103ef1981795a36ca9f9ad10a386 to your computer and use it in GitHub Desktop.
Save lfache/2b2c103ef1981795a36ca9f9ad10a386 to your computer and use it in GitHub Desktop.
Cloud Config : Ubuntu 20.04/Podman v2 compile
#cloud-config
package_update: true
packages:
- btrfs-progs
- conmon
- git
- golang-go
- go-md2man
- iptables
- libassuan-dev
- libbtrfs-dev
- libc6-dev
- libdevmapper-dev
- libglib2.0-dev
- libgpgme-dev
- libgpg-error-dev
- libprotobuf-dev
- libprotobuf-c-dev
- libseccomp-dev
- libselinux1-dev
- libsystemd-dev
- make
- pkg-config
- runc
- slirp4netns
- uidmap
runcmd:
- export GOPATH=/go
- mkdir -p $GOPATH
- export GOCACHE=/tmp/gocach
- mkdir -p $GOCACHE
- git clone https://github.com/containers/libpod/ $GOPATH/src/github.com/containers/libpod
- cd $GOPATH/src/github.com/containers/libpod
- make BUILDTAGS="selinux seccomp"
- make install PREFIX=/usr
- mkdir /etc/containers
- curl -L -o /etc/containers/registries.conf https://raw.githubusercontent.com/projectatomic/registries/master/registries.fedora
- curl -L -o /etc/containers/policy.json https://raw.githubusercontent.com/containers/skopeo/master/default-policy.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment