2017-02-13 11:01:54 -08:00
|
|
|
#!/usr/bin/env bash
|
2015-02-04 21:22:38 +00:00
|
|
|
|
2018-02-16 13:51:30 -05:00
|
|
|
source hack/dockerfile/install/runc.installer
|
|
|
|
source hack/dockerfile/install/tini.installer
|
|
|
|
source hack/dockerfile/install/containerd.installer
|
2016-10-24 15:18:58 -07:00
|
|
|
|
2020-01-17 12:39:56 +01:00
|
|
|
LDFLAGS="${LDFLAGS} \
|
2020-01-18 00:40:06 +01:00
|
|
|
-X \"github.com/docker/docker/dockerversion.Version=${VERSION}\" \
|
|
|
|
-X \"github.com/docker/docker/dockerversion.GitCommit=${GITCOMMIT}\" \
|
|
|
|
-X \"github.com/docker/docker/dockerversion.BuildTime=${BUILDTIME}\" \
|
|
|
|
-X \"github.com/docker/docker/dockerversion.IAmStatic=${IAMSTATIC:-true}\" \
|
|
|
|
-X \"github.com/docker/docker/dockerversion.PlatformName=${PLATFORM}\" \
|
|
|
|
-X \"github.com/docker/docker/dockerversion.ProductName=${PRODUCT}\" \
|
|
|
|
-X \"github.com/docker/docker/dockerversion.DefaultProductLicense=${DEFAULT_PRODUCT_LICENSE}\" \
|
2019-10-16 17:04:58 -07:00
|
|
|
"
|
2015-05-06 08:41:17 -07:00
|
|
|
|
|
|
|
# Compile the Windows resources into the sources
|
2019-01-10 02:23:38 +01:00
|
|
|
if [ "$(go env GOOS)" = "windows" ]; then
|
2022-04-14 19:52:23 +02:00
|
|
|
if [ ! -x "$(command -v go-winres)" ]; then
|
|
|
|
>&2 echo "go-winres not found, skipping manifesting binary"
|
|
|
|
else
|
|
|
|
(
|
|
|
|
. hack/make/.mkwinres
|
|
|
|
go generate -v "${GO_PACKAGE}"
|
|
|
|
)
|
|
|
|
fi
|
2015-05-06 08:41:17 -07:00
|
|
|
fi
|