Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split env, galaxy, and config into different container layers #9

Open
innovate-invent opened this issue Feb 18, 2021 · 1 comment
Open

Comments

@innovate-invent
Copy link
Collaborator

Currently the entire deployment is baked into a single container layer.
The galaxy_env role, galaxy files/galaxy app role can be separated into different layers to allow for more compact uploads of the container.

@innovate-invent
Copy link
Collaborator Author

innovate-invent commented Jul 26, 2021

We might want to switch to docker as the build engine rather than buildah. Ansible provides all the hooks we need to replace the buildah functionality. See https://docs.ansible.com/ansible/latest/scenario_guides/guide_docker.html

The idea is to run the base container, execute commands within the container instance, snapshot the container to an image and repeat for each layer. Ansible provides a plugin that allows dynamically adding the new containers to the ansible inventory to continue the operations on. The final snapshot gets tagged and pushed.

Edit: looks like this plugin is missing docker commit functionality to allow all of this to work.

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

No branches or pull requests

1 participant