|
|
@ -8,24 +8,24 @@ |
|
|
|
# components/engine/hack/dockerfile/binaries-commits in the docker archive. |
|
|
|
|
|
|
|
name=docker |
|
|
|
version=17.07.0-ce |
|
|
|
version_runc=2d41c047c83e09a6d61d464906feb2a2f3c52aa4 |
|
|
|
version_containerd=3addd840653146c90a254301d6c3a663c7fd6429 |
|
|
|
version=17.09.0-ce |
|
|
|
version_runc=3f2f8b84a77f73d38244dd690525642a72156c64 |
|
|
|
version_containerd=06b9cb35161009dcb7123345749fef02f7cea8e0 |
|
|
|
version_tini=949e6facb77383876aeff8a6944dde66b3089574 |
|
|
|
version_libnetwork=7b2b1feb1de4817d522cc372af149ff48d25028e |
|
|
|
update_url="https://github.com/$name/$name-ce/releases" |
|
|
|
update_names="/archive/v$version.tar.gz" |
|
|
|
|
|
|
|
dlextract "https://github.com/$name/$name-ce/archive/v$version/$name-$version.tar.gz" \ |
|
|
|
'a5d24c4722a2c20109d14c176d577fbf' |
|
|
|
dlextract "https://github.com/$name/runc/archive/$version_runc/runc-$version_runc.tar.gz" \ |
|
|
|
'4b5a1c761c3cd9513ee0198657a7ac03' |
|
|
|
dlextract "https://github.com/$name/containerd/archive/$version_containerd/containerd-$version_containerd.tar.gz" \ |
|
|
|
'57648ace245396808739c745f4443f69' |
|
|
|
'e0df90392b2daa545562342dabf181cf' |
|
|
|
dlextract "https://github.com/opencontainers/runc/archive/$version_runc/runc-$version_runc.tar.gz" \ |
|
|
|
'0dc3b1eafba193280d6cf6ffa46c2521' |
|
|
|
dlextract "https://github.com/containerd/containerd/archive/$version_containerd/containerd-$version_containerd.tar.gz" \ |
|
|
|
'202389709618a6b181216e99718f0132' |
|
|
|
dlextract "https://github.com/krallin/tini/archive/$version_tini/tini-$version_tini.tar.gz" \ |
|
|
|
'9873191fc835a79cb94b24377391667e' |
|
|
|
dlextract "https://github.com/$name/libnetwork/archive/$version_libnetwork/libnetwork-$version_libnetwork.tar.gz" \ |
|
|
|
'9360e38c43e862e42c128db1852ac5bb' |
|
|
|
'a9beb9207b291373dc4e376f04056e8a' |
|
|
|
_ |
|
|
|
|
|
|
|
# Verify that the dependency programs' versions match |
|
|
@ -71,10 +71,10 @@ export GOPATH="$PWD/.gopath" |
|
|
|
|
|
|
|
# Build cli |
|
|
|
( cd "$name-ce-$version/components/cli" |
|
|
|
make VERSION="$version" dynbinary |
|
|
|
DISABLE_WARN_OUTSIDE_CONTAINER=1 make VERSION="$version" GITCOMMIT="$version" dynbinary |
|
|
|
|
|
|
|
mkdir -p man/man1 |
|
|
|
go build -v -o gen-manpages "github.com/$name/cli/man" |
|
|
|
go build -o gen-manpages "github.com/$name/cli/man" |
|
|
|
./gen-manpages --root . --target man/man1 |
|
|
|
|
|
|
|
if command -v go-md2man 2> /dev/null; then |
|
|
@ -91,11 +91,17 @@ export GOPATH="$PWD/.gopath" |
|
|
|
) |
|
|
|
|
|
|
|
# Build containerd |
|
|
|
make -C "containerd-$version_containerd" |
|
|
|
( cd "$GOPATH/src/github.com/containerd/containerd" |
|
|
|
make BUILDTAGS='seccomp' \ |
|
|
|
GIT_BRANCH=HEAD \ |
|
|
|
GIT_COMMIT="$version_containerd" |
|
|
|
) |
|
|
|
|
|
|
|
# Build tini |
|
|
|
( cd "tini-$version_tini" |
|
|
|
cmake . |
|
|
|
sed -i -e '/^#define TINI_GIT/d' tiniConfig.h |
|
|
|
echo "#define TINI_GIT \" - git.$(echo "$version_tini" | cut -c -7)\"" >> tiniConfig.h |
|
|
|
make tini-static |
|
|
|
) |
|
|
|
|
|
|
|