Packer script for building an AMI with pre-installed Sysbox based on an Ubuntu EKS AMI.
- Install HashiCorp Packer
- Run
packer init .
- Ensure you have a patched CRI-O binary (for the Linux kernel 5.13)
The packer definition contains commented-out instructions on building the patched binary as part of the packer build. This is a very slow process so by default it copies the file instead. You could run the same commands on any Ubuntu 20.04 system and
scp
the binary to use it here. - Run
packer build .
- Installs Sysbox
- Installs
shiftfs
- Installs CRI-O + patches the binary using the Sysbox fork
- Configures CRI-O as the Sysbox Kubernetes installer would
- Configures CRI-O to work with Sysbox
- Sets
kubelet-eks
to use CRI-O by default - Adds Sysbox to the list of CRI-O runtimes
Intent: dedicated to the public domain. To comply with legal precedent and ease adoption in corporate environments, multi-licensed under well-known terms.
Preferred: CC0
Alternatives: