InformaticsMatters / squonk

Squonk platform and computational notebook
Apache License 2.0
8 stars 3 forks source link

Add commit hash as a docker image label (latest) #70

Closed alanbchristie closed 5 years ago

alanbchristie commented 5 years ago

To identify the source code used to build each :latest Docker image the corresponding Gradle tasks should insert a label into the image. Tagged releases do not need this information (as they're usually driven from a tag) but having it in tagged images might be useful and at least consistent, e.g.: -

LABEL commit-hash="5610e3b"

(Obviously the hash is will be auto-generated) The shortened 7-character hash is probably sufficient.

This will simplify any future tagging/referencing that has to be done for a given image.

alanbchristie commented 5 years ago

Fixed in recent merge to master