-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add aarch64 support * use go 1.9 for arm64 support * fixtypo * add backports on jessie * fix path * delet yakkety * rm golang-go * use arm64v8/ images * fix error made in merge * remove double architecture * use arm64v8/ * use go 1.8.5 * Update aarch64 builds to 1.9.2 Signed-off-by: Eli Uriegas <[email protected]>
- Loading branch information
1 parent
33ee027
commit 03eac42
Showing
4 changed files
with
95 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM arm64v8/debian:jessie-backports | ||
|
||
# allow replacing httpredir or deb mirror | ||
ARG APT_MIRROR=deb.debian.org | ||
RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list | ||
|
||
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 gnupg dirmngr --no-install-recommends && rm -rf /var/lib/apt/lists/* | ||
|
||
ENV GO_VERSION 1.9.2 | ||
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 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 debian | ||
ENV SUITE jessie | ||
|
||
WORKDIR /root/build-deb | ||
|
||
ENTRYPOINT ["/root/build-deb/build-deb"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM arm64v8/debian:stretch | ||
|
||
# allow replacing httpredir or deb mirror | ||
ARG APT_MIRROR=deb.debian.org | ||
RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list | ||
|
||
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 gnupg dirmngr --no-install-recommends && rm -rf /var/lib/apt/lists/* | ||
|
||
ENV GO_VERSION 1.9.2 | ||
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 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 debian | ||
ENV SUITE stretch | ||
|
||
WORKDIR /root/build-deb | ||
|
||
ENTRYPOINT ["/root/build-deb/build-deb"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM arm64v8/ubuntu:zesty | ||
|
||
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 gnupg dirmngr --no-install-recommends && rm -rf /var/lib/apt/lists/* | ||
|
||
ENV GO_VERSION 1.9.2 | ||
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 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 zesty | ||
|
||
WORKDIR /root/build-deb | ||
|
||
ENTRYPOINT ["/root/build-deb/build-deb"] |