Skip to content

Packer Build for Flatcar Container Linux on Hetzner Cloud

License

Notifications You must be signed in to change notification settings

slauger/flatcar-hcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packer-hcloud-flatcar

Build Flatcar Container Linux Images on Hetzner Cloud with Hashicorp Packer.

Required ENVs

  • HCLOUD_TOKEN - your personal hetzner api token

Build Image

This builds an snapshot image in the hcloud for Flatcar Container Linux and injects the Hetzner Cloud Datasource (http://169.254.169.254/hetzner/v1/userdata).

packer build .

Example instance

You need to pass your Ignition Config via "user data". A Ignition Config can be generated by creating a Container Linux Config (YAML) and convert it to JSON via Container Linux Config Transpiler. Check the directory examples/ for some example Container Linux Configs.

cat config.yaml | docker run --rm -i ghcr.io/flatcar-linux/ct:latest

About

Packer Build for Flatcar Container Linux on Hetzner Cloud

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages