From 863e01391ba8a2ff1bf3fd1bf7418f3de8c2128d Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Thu, 13 Jul 2017 10:28:58 -0400 Subject: [PATCH] [ppc64le] add deb support for ubuntu-xenial Adds ubuntu-xenial as a make deb target for ppc64le Signed-off-by: Christopher Jones Upstream-commit: e2a3a2f2f157e1a84346c0aad2b87ef2b2a7f0f3 Component: packaging --- .../deb/ubuntu-xenial/Dockerfile.ppc64le | 28 +++++++++++++++++++ components/packaging/detect_alpine_image | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 components/packaging/deb/ubuntu-xenial/Dockerfile.ppc64le diff --git a/components/packaging/deb/ubuntu-xenial/Dockerfile.ppc64le b/components/packaging/deb/ubuntu-xenial/Dockerfile.ppc64le new file mode 100644 index 0000000000..8385e1c7c6 --- /dev/null +++ b/components/packaging/deb/ubuntu-xenial/Dockerfile.ppc64le @@ -0,0 +1,28 @@ +FROM ppc64le/ubuntu:xenial + +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.8.3 +RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-ppc64le.tar.gz" | tar xzC /usr/local +ENV GOPATH /go +ENV PATH $PATH:/usr/local/go/bin:/$GOPATH/bin +ENV DOCKER_BUILDTAGS apparmor pkcs11 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 xenial + +WORKDIR /root/build-deb + +ENTRYPOINT ["/root/build-deb/build-deb"] diff --git a/components/packaging/detect_alpine_image b/components/packaging/detect_alpine_image index 2b59ebac7d..756e7dd550 100755 --- a/components/packaging/detect_alpine_image +++ b/components/packaging/detect_alpine_image @@ -11,6 +11,8 @@ elif [ "$arch" = "s390x" ]; then img="s390x/alpine" elif [ "$arch" = "aarch64" ]; then img="aarch64/alpine" +elif [ "$arch" = "ppc64le" ]; then + img="ppc64le/alpine" else echo "Architecture $(arch) not supported" exit 1;