Helpful notes for developers of the images.
Create the new image for the new version:
- Rename the last version's directory, for example
7.4-community
to7.5-community
- Update the version in
Dockerfile
, and make any other necessary changes (usually none) - Update the version in `.travis.yml'
- Run tests, for example:
./run-tests.sh 7.5-community
- Create a Pull Request, confirm Travis build passes, get it reviewed and merged
Update the public repositories for Docker Hub:
-
Only if necessary, update files in https://github.com/docker-library/docs/tree/master/sonarqube and create a Pull Request
- The markdown format must follow a certain standard, otherwise automated tests will fail. You can test with the
markdownfmt.sh
tool included in the repository, for example./markdownfmt.sh -d sonarqube/content.md
will output the diff that would have to be done to make the tests pass. You can use thepatch
command to apply the changes, for example:./markdownfmt.sh -d sonarqube/content.md | patch sonarqube/content.md
- Verify the Pull Request passes the automated tests (visible in the status of the PR)
- The markdown format must follow a certain standard, otherwise automated tests will fail. You can test with the
-
Update https://github.com/docker-library/official-images/blob/master/library/sonarqube
- Update the
Tags
andDirectory
entries appropriately - Update the commit sha to the just merged commit in
docker-sonarqube
- Create a Pull Request, with a simple summary of the new release
- Verify the Pull Request passes the automated tests (visible in the status of the PR)
- Update the
-
Wait for the Pull Requests to get merged, and verify the updated page on Docker Hub
Q: Why don't you provide Alpine-based images?
A: As of today, OpenJDK 8 does not officially support Alpine. As such, we don't know a good base image to build on. We did try the unsupported openjdk:8-alpine
image as base, and we saw seen nonsense problems with nonsense workarounds. We've left the recipes for Alpine-based images in the branch named alpine
, build and use at your own risk.
To control the generated content of the Docker Hub page, look around in the files in .template-helpers
of the docs
repository. For example, the "Where to get help" section is customized by a copy of .template-helpers/get-help.md
in sonarqube/get-help.md
.
For more details on the release process, see the documentation in these repositories: