diff options
author | hwajeong.son <hwajeong.son@samsung.com> | 2018-08-20 13:30:55 +0900 |
---|---|---|
committer | hwajeong.son <hwajeong.son@samsung.com> | 2018-08-20 13:30:55 +0900 |
commit | 0b51891e5977b87f986f4db2cbbe09295cfdbedc (patch) | |
tree | c35ac732cb1dffccee5a32131431f753481077c2 /build.sh | |
parent | eea0e89806b2cf59af3dccabc67014bd19b91b82 (diff) | |
download | docker-engine-master.tar.gz docker-engine-master.tar.bz2 docker-engine-master.zip |
Tizen_4.0 baseHEADsubmit/trunk/20180820.043221master
Signed-off-by: hwajeong.son <hwajeong.son@samsung.com>
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..79c848e --- /dev/null +++ b/build.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +set -o errexit + +case "$(go env GOARCH)" in + "arm") + arch="armv$(go env GOARM)" + ;; + "arm64") + arch="aarch64" + ;; + "386") + arch="i386" + ;; + "amd64") + arch="x86_64" + ;; +esac + +version=$(git describe --tags --always) + +AUTO_GOPATH=1 \ +DOCKER_BUILDTAGS='exclude_graphdriver_btrfs exclude_graphdriver_devicemapper' \ +./hack/make.sh binary-docker + +src="bundles/latest/binary-docker" +dst="docker" + +rm -rf "$dst" +mkdir "$dst" + +cp -L "$src/docker" "$dst/docker" +strip "$dst/docker" + +ln -s docker "$dst/dockerd" +ln -s docker "$dst/docker-containerd" +ln -s docker "$dst/docker-containerd-ctr" +ln -s docker "$dst/docker-containerd-shim" +ln -s docker "$dst/docker-proxy" +ln -s docker "$dst/docker-runc" + +tar czfv "docker-$version-$arch.tar.gz" "$dst" |