Buildah was chosen early on as a solution on recommendation, but having ansible drive the container creation is turning out to be clunky.
The recipes should be refactored to docker files, using multi-stage-builds to compile the client and render the config files with ansible respectively.
For the app container:
- Use a python container to install ansible and pre-render all of the templated configs (multi-stage-build)
- Copy in all required files in the final image
For the web container:
- Use the nodejs contaienr to build the client (multi-stage-build)
- Use a python container to install ansible and pre-render all of the templated configs (multi-stage-build)
- Copy in all required files in the final image
Buildah was chosen early on as a solution on recommendation, but having ansible drive the container creation is turning out to be clunky.
The recipes should be refactored to docker files, using multi-stage-builds to compile the client and render the config files with ansible respectively.
For the app container:
For the web container: