...
- Thomas Bernhart
- Andy Pfister
- Arran Griffith
- Danny Bernstein
- Ralf Claussnitzer
- Dave Southard
- Kate Dohe
- Ben Pennell
- Yang Yu
- Rob Drew
- Mike Ritter
- Rosie Le Faive
- Timothy Shearer
Agenda
- Current situation
- Proposed solution:
Jira server Fedora JIRA serverId 1fe6d535-c432-380f-b5c0-a7d3b2940ea4 key FCREPO-3849 Jira server Fedora JIRA serverId 1fe6d535-c432-380f-b5c0-a7d3b2940ea4 key FCREPO-3850 - Questions from Andy Pfister (Simplificator) and Thomas Bernhart (docuteam) to the developers/community
- Discussion
Notes
- Separate docker repository in Github. Some configuration files, etc. https://github.com/fcrepo-exts/fcrepo-docker
- The above repo is pulled down and when main fcrepo repository is built. These images are pushed, if the version is tagged (i.e. it is a release) then the image is appropriately tagged. Otherwise, it is just a SNAPSHOT tags for each commit on the main repository.
- Problems
- Improvements on the Docker repository do not trigger a new image. So these improvements are not immediately and do not appear in past tagged images.
- The base image is not regularly updated so past images do not get these fixes either.
- Build docker images in a new pipeline on the fcrepo-docker repository. Add some simple smoke tests to ensure the image is starting up correctly. Build some -SNAPSHOT images daily to pull in any security changes.
- Questions
- What range of Fcrepo images should we rebuild?
- When/how should we update the -SNAPSHOT images be built? Is daily enough?
- Who should be informed, when a scheduled run fails?
- Is it okay to replace an image if the base image has been changed? Should it be a new tag?
- Discussion
- Timestamp is not a normal Docker standard. When applications depend on configuration files they will add a application version to the configuration version to allow tying to a single point in time. For the base image (i.e. Tomcat changes) we can choose to support a couple versions of Tomcat.
- releases should be close to Fedora releases and use "latest" for the most current.
- There is two layers, so you choose 6.2.0 then you won't get 6.3.0-SNAPSHOT. But you also won't get any configuration changes to the image.
- If the changes to the web container are not required by Fedora, then it seems to make sense to have multiple releases (one for each version of Tomcat we want to support).
- Looking at some other more established repositories like https://hub.docker.com/_/tomcat/tags?page=1&name=9-
- For each release branches, have a tagged-LATEST (i.e. fcrepo-6.2.x-LATEST). But any docker configuration would become revisions under.
- The current docker image ships a set of default configuration, but you could use this image in your own Dockerfile and provide entirely different configuration files. The default configuration has some variables for the most commonly needed configurable properties.
- You could build your own image with any little configuration fixes based on the old image. This is about being of a benefit to the whole community.
- The Fedora version that is deployed and the java web container that it is running in.
- You can just truncate a tag and that will pull in that image with any suffix.
- It is possible there is a paradigm shift and users of the docker image don't actually care about the state of the container, they just care if it runs.
- Postgres has an example of simple tags.
- Proposal "fedora-<major>.<minor>.<patch>"
- Counter proposal "fcrepo-<major>.<minor>.<patch>-tomcat<major>" (i.e. fcrepo-6.2.0-tomcat9, fcrepo-6.2.1-tomcat9, fcrepo-6.3.0-tomcat10)
- This should support matches on all of fcrepo-6, fcrepo-6.2, fcrepo-6.2.0, and fcrepo-6.2.0-tomcat9
- No automated builds on SNAPSHOT
- Will make some time at the start of the Nov. 10th tech meeting to finish anymore discussion.