Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #454 from seemethere/cherry_pick_packaging_88
Browse files Browse the repository at this point in the history
[18.03] Fixes binary installation
  • Loading branch information
andrewhsu authored Mar 6, 2018
2 parents 3e53917 + 88176d0 commit cbc5bef
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
18 changes: 9 additions & 9 deletions components/packaging/deb/build-deb
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ if [[ -z "$DEB_VERSION" ]]; then
exit 1
fi

# I want to rip this install-binaries script out so badly
cd engine
TMP_GOPATH="/go" bash hack/dockerfile/install-binaries.sh runc-dynamic containerd-dynamic proxy-dynamic tini
if [[ $? -ne 0 ]]; then
echo "Binaries required for package building not installed correctly."
echo "Exiting..."
exit 1
fi
cd -
(
set -e
cd engine
# I want to rip this install-binaries script out so badly
for component in tini proxy runc containerd;do
TMP_GOPATH="/go" hack/dockerfile/install/install.sh $component
done
)

echo VERSION AAA $VERSION

VERSION=${VERSION:-$( cat engine/VERSION )}
Expand Down
4 changes: 3 additions & 1 deletion components/packaging/rpm/centos-7/docker-ce.spec
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ pushd /go/src/github.com/docker/cli
make VERSION=%{_origversion} GITCOMMIT=%{_gitcommit} dynbinary manpages # cli
popd
pushd engine
TMP_GOPATH="/go" hack/dockerfile/install-binaries.sh runc-dynamic containerd-dynamic proxy-dynamic tini
for component in tini proxy runc containerd;do
TMP_GOPATH="/go" hack/dockerfile/install/install.sh $component
done
VERSION=%{_origversion} hack/make.sh dynbinary
popd

Expand Down
4 changes: 3 additions & 1 deletion components/packaging/rpm/fedora-26/docker-ce.spec
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ pushd /go/src/github.com/docker/cli
make VERSION=%{_origversion} GITCOMMIT=%{_gitcommit} dynbinary manpages # cli
popd
pushd engine
TMP_GOPATH="/go" hack/dockerfile/install-binaries.sh runc-dynamic containerd-dynamic proxy-dynamic tini
for component in tini proxy runc containerd;do
TMP_GOPATH="/go" hack/dockerfile/install/install.sh $component
done
VERSION=%{_origversion} hack/make.sh dynbinary
popd
mkdir -p plugin
Expand Down
4 changes: 3 additions & 1 deletion components/packaging/rpm/fedora-27/docker-ce.spec
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ pushd /go/src/github.com/docker/cli
make VERSION=%{_origversion} GITCOMMIT=%{_gitcommit} dynbinary manpages # cli
popd
pushd engine
TMP_GOPATH="/go" hack/dockerfile/install-binaries.sh runc-dynamic containerd-dynamic proxy-dynamic tini
for component in tini proxy runc containerd;do
TMP_GOPATH="/go" hack/dockerfile/install/install.sh $component
done
VERSION=%{_origversion} hack/make.sh dynbinary
popd
mkdir -p plugin
Expand Down

0 comments on commit cbc5bef

Please sign in to comment.