Skip to content

Commit

Permalink
fixup! Some minor docker improvements
Browse files Browse the repository at this point in the history
Signed-off-by: g2flyer <[email protected]>
  • Loading branch information
g2flyer committed Jan 24, 2024
1 parent af054f9 commit 3e53c63
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@
PDO_REPO ?= ${PDO_SOURCE_ROOT}
PDO_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)

PDO_VERSION ?= $(shell cd repository; bin/get_version)
# PDO_VERSION, the version tag which we derive from latest version among git version tags
# and commit-length derived patch version part.
# Note
# - to deal with empty and/or updated repository directory we give it
# latest as default and define it as a lazily evaluated shell variable
# - this also implies this variable can used only in (shell) actions and not in defining
# other Make variables, dependencies or alike!
PDO_VERSION ?= $$( if [ -d $(PDO_REPO)/docker/repository ]; then cd $(PDO_REPO)/docker/repository; bin/get_version ; else echo "latest"; fi)

# PDO_USER_UID, PDO_GROUP_UID --
# The UID/GID for the user accounts that will be created in the container; this is
Expand Down

0 comments on commit 3e53c63

Please sign in to comment.