2017-02-13 14:01:54 -05:00
|
|
|
#!/usr/bin/env bash
|
2015-02-04 16:22:38 -05: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 18:18:58 -04:00
|
|
|
|
2020-01-17 06:39:56 -05:00
|
|
|
LDFLAGS="${LDFLAGS} \
|
2020-01-17 18:40:06 -05: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 20:04:58 -04:00
|
|
|
"
|
2015-05-06 11:41:17 -04:00
|
|
|
|
|
|
|
# Compile the Windows resources into the sources
|
2019-01-09 20:23:38 -05:00
|
|
|
if [ "$(go env GOOS)" = "windows" ]; then
|
2022-04-14 13:52:23 -04: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 11:41:17 -04:00
|
|
|
fi
|