This is the Git repo of the official Docker image for geonetwork. See the Hub page for the full readme on how to use the Docker image and for information regarding contributing and issues.
The full readme is generated over in docker-library/docs, specifically in docker-library/docs/geonetwork.
The geonetwork-library.txt file is the manifest submitted to docker-library/official-images to publish new GeoNetwork versions on Docker Hub.
When releasing a new patch version, edit generate-stackbrew-library.sh first:
- Add the new version to the
aliasesarray with its Docker Hub tag aliases (e.g.4.4.11->4.4 4 latest). - Add the superseded patch version to the
dirExcludearray so it is skipped in the manifest.
The generation script requires Bash 4+ and bashbrew. Use the provided Dockerfile.stackbrew to avoid installing those dependencies locally.
Build the helper image once (or after bashbrew version changes):
docker build -f Dockerfile.stackbrew -t geonetwork-stackbrew .Generate the manifest:
docker run --rm -v "$(pwd):/work" geonetwork-stackbrew > geonetwork-library.txtCommit geonetwork-library.txt to this repository so it can be used as a reference.
-
Fork docker-library/official-images if you have not already. In your local clone of the fork, add the upstream remote:
git remote add upstream https://github.com/docker-library/official-images.git
-
Sync with upstream
masterand create a new branch:git fetch upstream git checkout -b update-geonetwork-<version> upstream/master
-
Copy the generated manifest into
library/geonetworkand commit:cp /path/to/docker-geonetwork/geonetwork-library.txt library/geonetwork git add library/geonetwork git commit -m "Update GeoNetwork to <version>" -
Push to your fork and open the PR:
git push origin update-geonetwork-<version>
Open a pull request from your fork's branch against the
masterbranch ofdocker-library/official-images.
Default branch has been renamed from master to main. To update it in your local repository:
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a