Is it possible to provide a file to a docker container during the run
operation to be used during startup of the container?
Essentially I want to provide a txt file similar to plugins.txt
in jenkins docker to a tomcat server. That file should contain names and versions (name:version
) of .war and .jar files to be downloaded during startup of the container. I expect of this setup to be more flexible to provide customized containers for customers rather than having customer specific images. But the big questions for me are:
- Can I provide such a file during startup of a container?
- How should I handle versioning of the file and/or container to be able to check what the customer specific container contains?
- Is there anything else I should consider?