I am fairly new to JavaEE, so I have some concepts still missing. I am learning Docker to use it in our DEV / CI Build environments. I could make it work on my machine. But for it to work in the CI server, my current approach would be to store the docker-compose.yml and dockerfiles in git and, in the CI server download it, build the images and start it.
To setup the docker image for the web container (Wildfly) I had to add:
- DB Drivers (.jar files)
- Standalone.xml (.xml file)
- Modules we use (mix of .xml and .jar files)
But these files are not present in the CI server. I could download the DB drivers when building the image, but the modules and standalone.xml are not available online.
Is this approach the reasonable? If so, where would one store these files so they get updated when needed and the CI Server is able to download them to build the image?