From: xudan Date: Wed, 20 Dec 2017 22:23:13 -0500 Subject: [PATCH] Add AArch64 support for Dovetail docker file Signed-off-by: xudan --- docker/Dockerfile | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index c5239db..25e2105 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,8 +1,16 @@ -FROM ubuntu:14.04 -MAINTAINER Leo Wang -LABEL version="0.1" description="OPNFV Dovetail Docker Container" +FROM aarch64/ubuntu:16.04 +MAINTAINER Armband team +LABEL version="0.1" description="OPNFV Dovetail AArch64 Docker Container" + +RUN apt-get update ARG BRANCH=master +ARG SUB_SOURCE_FILE=/etc/apt/sources.list.d/dovetail.list + +RUN touch $SUB_SOURCE_FILE +RUN echo "deb [arch=arm64] https://download.docker.com/linux/ubuntu/ xenial test" >> ${SUB_SOURCE_FILE} +#preinstalling apt-transport-https in order to install docker-ce from the above repo +RUN apt-get install -y apt-transport-https RUN \ apt-get update \ @@ -17,22 +25,14 @@ RUN \ python-dev \ python-mock \ python-pip \ - apt-transport-https \ wget \ + sudo \ --no-install-recommends \ && \ - apt-get update + apt-get update && apt-get -y install docker-ce --allow-unauthenticated RUN easy_install -U setuptools==30.0.0 -RUN wget -qO- https://get.docker.com/ \ -| \ - sed 's/-q docker-ce/-q docker-ce=17.03.0~ce-0~ubuntu-trusty/' \ -| \ - sed 's/edge/stable/' \ -| \ - sh - ENV HOME /home/opnfv ENV REPOS_DIR ${HOME}/dovetail WORKDIR /home/opnfv @@ -40,6 +40,10 @@ WORKDIR /home/opnfv RUN \ mkdir -p ${REPOS_DIR} \ && \ + pip install -U setuptools --upgrade \ +&& \ + pip install -U wheel \ +&& \ git config --global http.sslVerify false \ && \ pip install git+https://git.opnfv.org/dovetail@$BRANCH#egg=dovetail \