Merge "add orchestra_clearwaterims testcase"
[functest.git] / docker / Dockerfile.aarch64.patch
1 From: Delia Popescu <delia.popescu@enea.com>
2 Date: Thu, 20 Jul 2017 17:36:13 +0300
3 Subject: [PATCH] Modified Dockerfile.aarch to a patch
4
5 Docker image for functest on ARM was build using a different Dockerfile.
6 Now the ARM Dockerfile is created with a patch,
7 in order to avoid modifying both files.
8 This Dockerfile.aarch64.patch is applied by opnfv-docker.sh from releng project.
9
10 Signed-off-by: Delia Popescu <delia.popescu@enea.com>
11 ---
12  docker/Dockerfile | 15 +++++++++------
13  1 file changed, 9 insertions(+), 6 deletions(-)
14
15 diff --git a/docker/Dockerfile b/docker/Dockerfile
16 index 924da68..dd87e6c 100644
17 --- a/docker/Dockerfile
18 +++ b/docker/Dockerfile
19 @@ -1,5 +1,5 @@
20  ########################################
21 -#   Docker container for FUNCTEST
22 +#  Aarch64 Docker container for FUNCTEST
23  ########################################
24  # All rights reserved. This program and the accompanying materials
25  # are made available under the terms of the Apache License, Version 2.0
26 @@ -7,9 +7,9 @@
27  # http://www.apache.org/licenses/LICENSE-2.0
28  #
29
30 -FROM ubuntu:14.04
31 -MAINTAINER Jose Lausuch <jose.lausuch@ericsson.com>
32 -LABEL version="0.1" description="OPNFV Functest Docker container"
33 +FROM aarch64/ubuntu:14.04
34 +MAINTAINER Armband team <armband@enea.com>
35 +LABEL version="0.1" description="OPNFV Functest Aarch64 Docker container"
36
37  # Environment variables
38  ARG BRANCH=master
39 @@ -43,6 +43,7 @@ gcc \
40  git \
41  libffi-dev \
42  libgmp3-dev \
43 +libjpeg-dev \
44  libpq-dev \
45  libssl-dev \
46  libxml2-dev \
47 @@ -117,11 +118,13 @@ RUN /bin/bash -c ". /etc/profile.d/rvm.sh \
48      && cd ${REPOS_VNFS_DIR}/vims-test \
49      && rvm use 1.9.3"
50  RUN /bin/bash -c ". /etc/profile.d/rvm.sh \
51 +    && gem install bundler \
52      && cd ${REPOS_VNFS_DIR}/vims-test \
53 +    && bundle config build.nokogiri --use-system-libraries \
54      && bundle install"
55
56 -RUN sh -c 'curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -' \
57 -    && sudo apt-get install -y nodejs \
58 +RUN sh -c 'wget -qO- https://nodejs.org/dist/v4.7.2/node-v4.7.2-linux-arm64.tar.gz | \
59 +    tar -xz -C /usr/local --exclude=CHANGELOG.md --exclude=LICENSE --exclude=README.md --strip-components 1 '\
60      && cd ${REPOS_DIR}/promise && sudo npm -g install npm@latest \
61      && cd ${REPOS_DIR}/promise/source && npm install