Compare commits
8 Commits
v18.03.0-c
...
v18.03.0-c
| Author | SHA1 | Date | |
|---|---|---|---|
| e7309590a2 | |||
| 49e42a6151 | |||
| 89ec01afcb | |||
| 6fa0c6462e | |||
| 2329a946f6 | |||
| 23a9017037 | |||
| fb4173d8a8 | |||
| 3638dc65e4 |
@ -1 +1 @@
|
||||
18.03.0-ce-rc2
|
||||
18.03.0-ce-rc3
|
||||
|
||||
@ -14,10 +14,15 @@ install_containerd() {
|
||||
|
||||
(
|
||||
|
||||
if [ "$1" == "static" ]; then
|
||||
export BUILDTAGS='static_build netgo'
|
||||
export EXTRA_FLAGS='-buildmod pie'
|
||||
export EXTRA_LDFLAGS='-extldflags "-fno-PIC -static"'
|
||||
export BUILDTAGS='static_build netgo'
|
||||
export EXTRA_FLAGS='-buildmode=pie'
|
||||
export EXTRA_LDFLAGS='-extldflags "-fno-PIC -static"'
|
||||
|
||||
# Reset build flags to nothing if we want a dynbinary
|
||||
if [ "$1" == "dynamic" ]; then
|
||||
export BUILDTAGS=''
|
||||
export EXTRA_FLAGS=''
|
||||
export EXTRA_LDFLAGS=''
|
||||
fi
|
||||
|
||||
make
|
||||
|
||||
@ -23,6 +23,7 @@ install_proxy() {
|
||||
|
||||
install_proxy_dynamic() {
|
||||
export PROXY_LDFLAGS="-linkmode=external" install_proxy
|
||||
export BUILD_MODE="-buildmode=pie"
|
||||
_install_proxy
|
||||
}
|
||||
|
||||
@ -31,7 +32,7 @@ _install_proxy() {
|
||||
git clone https://github.com/docker/libnetwork.git "$GOPATH/src/github.com/docker/libnetwork"
|
||||
cd "$GOPATH/src/github.com/docker/libnetwork"
|
||||
git checkout -q "$LIBNETWORK_COMMIT"
|
||||
go build -buildmode=pie -ldflags="$PROXY_LDFLAGS" -o ${PREFIX}/docker-proxy github.com/docker/libnetwork/cmd/proxy
|
||||
go build $BUILD_MODE -ldflags="$PROXY_LDFLAGS" -o ${PREFIX}/docker-proxy github.com/docker/libnetwork/cmd/proxy
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -11,7 +11,12 @@ install_runc() {
|
||||
git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc"
|
||||
cd "$GOPATH/src/github.com/opencontainers/runc"
|
||||
git checkout -q "$RUNC_COMMIT"
|
||||
make BUILDTAGS="$RUNC_BUILDTAGS" $1
|
||||
if [ -z "$1" ]; then
|
||||
target=static
|
||||
else
|
||||
target="$1"
|
||||
fi
|
||||
make BUILDTAGS="$RUNC_BUILDTAGS" "$target"
|
||||
mkdir -p ${PREFIX}
|
||||
cp runc ${PREFIX}/docker-runc
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ fi
|
||||
set -e
|
||||
cd engine
|
||||
# I want to rip this install-binaries script out so badly
|
||||
for component in tini proxy runc containerd;do
|
||||
for component in tini "proxy dynamic" "runc all" "containerd dynamic";do
|
||||
TMP_GOPATH="/go" hack/dockerfile/install/install.sh $component
|
||||
done
|
||||
)
|
||||
|
||||
@ -67,7 +67,7 @@ pushd /go/src/github.com/docker/cli
|
||||
make VERSION=%{_origversion} GITCOMMIT=%{_gitcommit} dynbinary manpages # cli
|
||||
popd
|
||||
pushd engine
|
||||
for component in tini proxy runc containerd;do
|
||||
for component in tini "proxy dynamic" "runc all" "containerd dynamic";do
|
||||
TMP_GOPATH="/go" hack/dockerfile/install/install.sh $component
|
||||
done
|
||||
VERSION=%{_origversion} hack/make.sh dynbinary
|
||||
|
||||
@ -65,7 +65,7 @@ pushd /go/src/github.com/docker/cli
|
||||
make VERSION=%{_origversion} GITCOMMIT=%{_gitcommit} dynbinary manpages # cli
|
||||
popd
|
||||
pushd engine
|
||||
for component in tini proxy runc containerd;do
|
||||
for component in tini "proxy dynamic" "runc all" "containerd dynamic";do
|
||||
TMP_GOPATH="/go" hack/dockerfile/install/install.sh $component
|
||||
done
|
||||
VERSION=%{_origversion} hack/make.sh dynbinary
|
||||
|
||||
@ -66,7 +66,7 @@ pushd /go/src/github.com/docker/cli
|
||||
make VERSION=%{_origversion} GITCOMMIT=%{_gitcommit} dynbinary manpages # cli
|
||||
popd
|
||||
pushd engine
|
||||
for component in tini proxy runc containerd;do
|
||||
for component in tini "proxy dynamic" "runc all" "containerd dynamic";do
|
||||
TMP_GOPATH="/go" hack/dockerfile/install/install.sh $component
|
||||
done
|
||||
VERSION=%{_origversion} hack/make.sh dynbinary
|
||||
|
||||
Reference in New Issue
Block a user