From 12f331f6b2079bf1299a3650fb80ccde58c8bec1 Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Fri, 24 Aug 2018 17:05:42 -0700 Subject: [PATCH 1/2] Expose the platform string for community builds This encodes the platform as "Docker Engine - Community" for community engines Signed-off-by: Daniel Hiltgen Upstream-commit: 4d9fd7d17f3aab3463baf6030072f5789a003a74 Component: packaging --- components/packaging/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/packaging/Makefile b/components/packaging/Makefile index 4a9d006698..4f973d35ab 100644 --- a/components/packaging/Makefile +++ b/components/packaging/Makefile @@ -7,7 +7,9 @@ ARCH=$(shell uname -m) STATIC_VERSION=$(shell static/gen-static-ver $(ENGINE_DIR) $(VERSION)) GO_VERSION:=1.10.3 DEFAULT_PRODUCT_LICENSE:=Community Engine +PLATFORM=Docker Engine - Community export DEFAULT_PRODUCT_LICENSE +export PLATFORM # Taken from: https://www.cmcrossroads.com/article/printing-value-makefile-variable print-% : ; @echo $($*) From 4ca20bcd76cbc8adf138454678cf0f8a1bb5a1b1 Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Fri, 24 Aug 2018 17:19:43 -0700 Subject: [PATCH 2/2] Add build date per upstream moby pattern This adds a build date using the same pattern as upstream https://github.com/moby/moby/blob/master/hack/make.sh#L69 Signed-off-by: Daniel Hiltgen Upstream-commit: c443439189fdc40c012ef5ac6cf592d32f478b54 Component: packaging --- components/packaging/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/packaging/Makefile b/components/packaging/Makefile index 4f973d35ab..ffeadc6846 100644 --- a/components/packaging/Makefile +++ b/components/packaging/Makefile @@ -8,8 +8,10 @@ STATIC_VERSION=$(shell static/gen-static-ver $(ENGINE_DIR) $(VERSION)) GO_VERSION:=1.10.3 DEFAULT_PRODUCT_LICENSE:=Community Engine PLATFORM=Docker Engine - Community +BUILDTIME=$(shell date -u -d "@$${SOURCE_DATE_EPOCH:-$$(date +%s)}" --rfc-3339 ns 2> /dev/null | sed -e 's/ /T/') export DEFAULT_PRODUCT_LICENSE export PLATFORM +export BUILDTIME # Taken from: https://www.cmcrossroads.com/article/printing-value-makefile-variable print-% : ; @echo $($*)