Skip to content

Image builder - #32

Draft
ana-v-espinoza wants to merge 10 commits into
Unidata:mainfrom
ana-v-espinoza:image-builder
Draft

Image builder#32
ana-v-espinoza wants to merge 10 commits into
Unidata:mainfrom
ana-v-espinoza:image-builder

Conversation

@ana-v-espinoza

Copy link
Copy Markdown
Member

Dockerizing image-builder for quick, reproducible capi-compatible image builds

`image-builder.sh` is now a wrapper that sets environment variables and runs the docker container.

`run.sh` will be COPY'ed into the Dockerfile and replace the current `entrypoint.sh` script. This script makes use of the environment variables set by `image-builder.sh` to create packer's `var_file.json`and run image-builder.

Eventually, `run.sh` will also ensure that the resulting `kube_version` property is set in the resulting image, which is required by openstack Magnum, and will finally create a cluster template using the newly created image.
usage:
- Property escape backslash characters
- Remove backticks, since these spawn a subshell, whoops!

KEY_FILE corrected to SSH_KEY_FILE

Use `realpath` to ensure we refer to absolute paths in docker bind mounts:
- OPENRC_PATH
- SSH_KEY_FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant