Merge pull request #32 from tophj-ibm/add-ppc64le-support-xenial
[ppc64le] add deb support for ubuntu-xenial Upstream-commit: 53b3255dbeea0288fc3c8c02e4ad3cab56d2521e Component: packaging
This commit is contained in:
28
components/packaging/deb/ubuntu-xenial/Dockerfile.ppc64le
Normal file
28
components/packaging/deb/ubuntu-xenial/Dockerfile.ppc64le
Normal file
@ -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"]
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user