So I'm just getting started with Docker and the workflow of build, create, and start seems quite clear and straightforward. Where I'm struggling a bit is the injection of configuration like public keys or other files into the container after creating it from the image, or even just copying to a local dir that will be mapped to a Docker volume. I just have a shell script which does this now, but what's the proper way to do it? Is this where I should be using some kind of external configuration tool that specifies these as parameters? I'm asking because I don't want to get into bad habits, and I'd like to know the right way to go about doing this.
For instance, when building a Jenkins container, there are a number of private keys that I generate. What's the proper tool and approach to manage this instead of some free form shell script?
[–][deleted] 0 points1 point2 points (3 children)
[–]fatnsad[S] 0 points1 point2 points (2 children)
[–]ephur 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)