Improved aarch64 build

- Added 'golint', 'yamllint', and 'swagger'
- Fixed man/Dockerfile.aarch64 by bootstrapping Go 1.7.5

Signed-off-by: Boris Pruessmann <boris@pruessmann.org>
This commit is contained in:
Boris Pruessmann 2017-02-20 19:24:24 +01:00 committed by Tibor Vass
parent 77cdc06233
commit 39b2f9dd8f
1 changed files with 20 additions and 1 deletions

View File

@ -1,6 +1,25 @@
FROM aarch64/ubuntu:xenial FROM aarch64/ubuntu:xenial
RUN apt-get update && apt-get install -y git golang-go # 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 \
git \
bash \
curl \
gcc \
gccgo \
make
ENV GO_VERSION 1.7.5
ENV GOARCH arm64
ENV PATH /go/bin:/usr/src/go/bin:$PATH
RUN mkdir /usr/src/go && \
curl -fsSL https://golang.org/dl/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="$(go env GOROOT)" ./make.bash
RUN mkdir -p /go/src /go/bin /go/pkg RUN mkdir -p /go/src /go/bin /go/pkg
ENV GOPATH=/go ENV GOPATH=/go