From 9a9ab345870ec19a01e9e8f0c510c7613169114d Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Thu, 29 Mar 2018 18:09:08 +0000 Subject: [PATCH] Add Ubuntu 18.04 arm64 builds Signed-off-by: Eli Uriegas Upstream-commit: aac8310bbee3c7480487a624756d25d22d53c7dd Component: packaging --- .../deb/ubuntu-bionic/Dockerfile.aarch64 | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 components/packaging/deb/ubuntu-bionic/Dockerfile.aarch64 diff --git a/components/packaging/deb/ubuntu-bionic/Dockerfile.aarch64 b/components/packaging/deb/ubuntu-bionic/Dockerfile.aarch64 new file mode 100644 index 00000000000..6405b36ec44 --- /dev/null +++ b/components/packaging/deb/ubuntu-bionic/Dockerfile.aarch64 @@ -0,0 +1,29 @@ +FROM ubuntu:bionic + +RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev libltdl-dev libseccomp-dev pkg-config vim-common libsystemd-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* + +ENV GO_VERSION 1.9.4 + +RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-arm64.tar.gz" | tar xzC /usr/local +ENV GOPATH /go +ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin +ENV DOCKER_BUILDTAGS apparmor seccomp selinux +ENV RUNC_BUILDTAGS apparmor seccomp selinux + +COPY common/ /root/build-deb/debian +COPY build-deb /root/build-deb/build-deb + +RUN mkdir -p /go/src/github.com/docker && \ + mkdir -p /go/src/github.com/opencontainers && \ + ln -snf /engine /root/build-deb/engine && \ + ln -snf /cli /root/build-deb/cli && \ + ln -snf /root/build-deb/engine /go/src/github.com/docker/docker && \ + ln -snf /root/build-deb/cli /go/src/github.com/docker/cli + + +ENV DISTRO ubuntu +ENV SUITE bionic + +WORKDIR /root/build-deb + +ENTRYPOINT ["/root/build-deb/build-deb"]