Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add aarch64 support
Signed-off-by: Alexandru Antone <Alexandru.Antone@enea.com>
  • Loading branch information
Alexandru Antone authored and Alexandru Antone committed Jan 29, 2020
1 parent aca8f3c commit c4afe48
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions Dockerfile
Expand Up @@ -15,30 +15,43 @@

#----------------------------------------------------------

FROM nexus3.o-ran-sc.org:10004/bldr-ubuntu18-c-go:3-u18.04-nng AS appmgr-build
# ARG DOCKER_REPO=nexus3.o-ran-sc.org:10004
ARG DOCKER_REPO=akrainoenea

FROM ${DOCKER_REPO}/bldr-ubuntu18-c-go:3-u18.04-nng AS appmgr-build

# ARG ARCH=amd64
ARG ARCH=arm64

RUN apt-get update -y && apt-get install -y jq

ENV PATH="/usr/local/go/bin:${PATH}"
ARG HELMVERSION=v2.12.3
ENV HELM_PKG="helm-${HELMVERSION}-linux-${ARCH}.tar.gz"

# Install helm
RUN wget -nv https://storage.googleapis.com/kubernetes-helm/helm-${HELMVERSION}-linux-amd64.tar.gz \
&& tar -zxvf helm-${HELMVERSION}-linux-amd64.tar.gz \
&& cp linux-amd64/helm /usr/local/bin/helm \
&& rm -rf helm-${HELMVERSION}-linux-amd64.tar.gz \
&& rm -rf linux-amd64
RUN wget -nv https://storage.googleapis.com/kubernetes-helm/${HELM_PKG} \
&& tar -zxvf ${HELM_PKG} \
&& cp linux-${ARCH}/helm /usr/local/bin/helm \
&& rm -rf ${HELM_PKG} \
&& rm -rf linux-${ARCH}

# Install kubectl from Docker Hub
COPY --from=lachlanevenson/k8s-kubectl:v1.10.3 /usr/local/bin/kubectl /usr/local/bin/kubectl
# Install kubectl
ENV KUBE_VER=v1.10.3

RUN wget -nv https://storage.googleapis.com/kubernetes-release/release/${KUBE_VER}/bin/linux/${ARCH}/kubectl \
-O /usr/local/bin/kubectl

ENV GOPATH="/go"

# Swagger
ENV SWAGGER_VER=v0.19.0
ENV SWAGGER_PKG=swagger_linux_${ARCH}

RUN mkdir -p /go/bin
RUN cd /go/bin \
&& wget --quiet https://github.com/go-swagger/go-swagger/releases/download/v0.19.0/swagger_linux_amd64 \
&& mv swagger_linux_amd64 swagger \
&& wget --quiet https://github.com/go-swagger/go-swagger/releases/download/${SWAGGER_VER}/${SWAGGER_PKG} \
&& mv ${SWAGGER_PKG} swagger \
&& chmod +x swagger

RUN mkdir -p /go/src/ws
Expand Down

0 comments on commit c4afe48

Please sign in to comment.