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

Assistance for customizing Containerfiles #214

Closed
gendergap opened this issue Aug 10, 2023 · 2 comments
Closed

Assistance for customizing Containerfiles #214

gendergap opened this issue Aug 10, 2023 · 2 comments

Comments

@gendergap
Copy link

My company has an existing infrastructure to customize container images (e.g. inject package mirrors, company certs or proxy information). The infrastructure is based on container files (e.g. Dockerfile) and Docker Buildkit.
In the past, we also used this infrastructure to customize the AWX EE images we were using internally. Every few months I would take another look at the image file in this repository and cherry-pick some of the upstream changes into ours.

Some time ago, this repository switched to using ansible-builder, which uses a different approach to get to the same result. Probably works fine, but there is no plain container file available anymore to reference.

How do people work with this for customizations? I see that we could create a separate build chain for our internal AWX EE images that does not use Docker BuildKit but ansible-builder. Or one could reverse engineer how a container definition would need to look like that has the same result as the configuration in this repository.

Does anybody have some insight on how they are doing it?

@seadoox
Copy link

seadoox commented Aug 10, 2023

I use ansible-builder create -v3 to dump the full context of what is used to build the container including the Containerfile. I'm doing that with gitlab-ci to automate building new images regularly but you could do it manually just to dump the containerfile and compare it to the last one you had.

@gendergap
Copy link
Author

That is exactly what I was looking for without knowing the tools. Thank you very much @seadoox!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants