add source code version information to the docker images
Closed this issue · 7 comments
spawning from #103
would be nice to have a reference to the docker source files version in the final docker image for debugging purposes
Hello @zsarkad please read the related issue to understand the context and come back to me
Hello @zsarkad
- Please add an argument to the Dockerfile GIT_HASH
- Update README if needed with info on the new build arg
- check custom_build.sh script if is possible to add automatically a variable populated with branch name called DOCKER_REPO_BRANCH
- Update the builds on docker hub to make use of the build argument
Once changed Dockerfile and custom_build.sh please make a PR against geosolutions-it/docker-geoserver
changed Dockerfile, custom_build.sh and README accordingly
made PR request waiting for confirmation from @lpasquali
uploaded docker image
Test latest 2.19 series and 2.20 series as well
tested 2.19 and 2.20 series , GIT_HASH works well for all images.
As a last step we will be updating builds on the docker hub so asked @lpasquali to help me on this process
triggered and updated builds on the Docker hub