Skip to content

Commit

Permalink
Merge pull request moby#20342 from vijaykilari/fix_20325
Browse files Browse the repository at this point in the history
moby#20325 : arm64: Use gccgo as bootstrap for compiling golang
  • Loading branch information
tianon committed Mar 9, 2016
2 parents 6b0119a + 7d80d64 commit 0771230
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# the case. Therefore, you don't have to disable it anymore.
#

FROM aarch64/debian:jessie
FROM aarch64/ubuntu:wily

# Packaged dependencies
RUN apt-get update && apt-get install -y \
Expand All @@ -37,7 +37,7 @@ RUN apt-get update && apt-get install -y \
libc6-dev \
libcap-dev \
libsqlite3-dev \
libsystemd-journal-dev \
libsystemd-dev \
mercurial \
net-tools \
parallel \
Expand All @@ -46,6 +46,7 @@ RUN apt-get update && apt-get install -y \
python-mock \
python-pip \
python-websocket \
gccgo \
--no-install-recommends

# Install armhf loader to use armv6 binaries on armv8
Expand Down Expand Up @@ -95,14 +96,11 @@ RUN set -x \
# We don't have official binary tarballs for ARM64, eigher for Go or bootstrap,
# so we use the official armv6 released binaries as a GOROOT_BOOTSTRAP, and
# build Go from source code.
ENV BOOT_STRAP_VERSION 1.6beta1
ENV GO_VERSION 1.5.3
RUN mkdir -p /usr/src/go-bootstrap \
&& curl -fsSL https://storage.googleapis.com/golang/go${BOOT_STRAP_VERSION}.linux-arm6.tar.gz | tar -v -C /usr/src/go-bootstrap -xz --strip-components=1 \
&& mkdir /usr/src/go \
&& curl -fsSL https://storage.googleapis.com/golang/go${GO_VERSION}.src.tar.gz | tar -v -C /usr/src/go -xz --strip-components=1 \
RUN mkdir /usr/src/go && curl -fsSL https://storage.googleapis.com/golang/go${GO_VERSION}.src.tar.gz | tar -v -C /usr/src/go -xz --strip-components=1 \
&& cd /usr/src/go/src \
&& GOOS=linux GOARCH=arm64 GOROOT_BOOTSTRAP=/usr/src/go-bootstrap ./make.bash
&& GOOS=linux GOARCH=arm64 GOROOT_BOOTSTRAP="$(go env GOROOT)" ./make.bash

ENV PATH /usr/src/go/bin:$PATH
ENV GOPATH /go:/go/src/github.com/docker/docker/vendor

Expand Down

0 comments on commit 0771230

Please sign in to comment.