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

Improvements for docker user management and documentation #510

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cmickeyb
Copy link
Contributor

This PR cleans up the user and group creation in the docker build. An account and group are created in the base images and then used more consistently throughout the rest of the build process.

Added documentation for how to build and deploy "reusable" images that might be store, for example, in a public registry. This information should make it easier to use the images being built on github.

There are also some additions the docker cache for apt packages.

Testing: automated tests should handle the changes to the docker build scripts. The instructions in the docker README.md for building deployable images (the final pattern) should be verified.

@cmickeyb cmickeyb requested a review from g2flyer December 16, 2024 22:48
@cmickeyb cmickeyb self-assigned this Dec 16, 2024
Docker reports this statement as deprecated.

Signed-off-by: Mic Bowman <[email protected]>
Just trying to make consistent our use of the user name
we create. This makes the user name the same across all
images and makes sure it is being used in the right places.

Some tinkering with the caches we use for the RUN statements.
Dropped the UID (there is very little documentation about how
this actually affects the cache and whose UID it is) so we'll
use the default. Added cache statements for apt statements as
well.

Note that for good connections, the caching does not make a
measurable difference in the time to build. It could be that
we are still not using the cache appropriately.

Signed-off-by: Mic Bowman <[email protected]>
@cmickeyb cmickeyb force-pushed the mic.dec12.docker_user_id branch from 39a709b to 9fc98d6 Compare December 16, 2024 22:49
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.

2 participants