blob: 989bd0235f3a24008927e946e6d1b219d02241da [file] [log] [blame]
Moshe0bb532c2018-02-26 13:39:57 +02001##############################################################################
2# Copyright 2018 EuropeanSoftwareMarketingLtd.
3# ===================================================================
4# Licensed under the ApacheLicense, Version2.0 (the"License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# software distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and limitations under
12# the License
13##############################################################################
14# vnftest comment: this is a modified copy of
15# yardstick/docker/Dockerfile
16FROM ubuntu:16.04
17
Moshe4e0a6072018-03-29 09:14:00 +030018LABEL image=onap/vnfsdk/vnftest
Moshe0bb532c2018-02-26 13:39:57 +020019
20ARG BRANCH=master
21
22# GIT repo directory
23ENV REPOS_DIR="/home/onap/repos" \
24 IMAGE_DIR="/home/onap/images/"
25
26# Set work directory
27
28# Vnftest repo
29ENV VNFTEST_REPO_DIR="${REPOS_DIR}/vnftest" \
30 RELENG_REPO_DIR="${REPOS_DIR}/releng" \
31 STORPERF_REPO_DIR="${REPOS_DIR}/storperf"
32
33RUN apt-get update && apt-get install -y git python-setuptools python-pip && apt-get -y autoremove && apt-get clean
34RUN easy_install -U setuptools==30.0.0
35RUN pip install appdirs==1.4.0 pyopenssl==17.5.0 python-openstackclient==3.11.0
36
37RUN mkdir -p ${REPOS_DIR}
38
39RUN git config --global http.sslVerify false
Moshe5e5e4932018-08-15 12:19:07 +030040
41#For developers: To test your changes you must comment out the git clone for ${VNFTEST_REPO_DIR}.
42#You must also uncomment the RUN and COPY commands below.
43#You must run docker build from your vnftest directory on the host.
Moshe0bb532c2018-02-26 13:39:57 +020044RUN git clone --depth 1 -b $BRANCH https://gerrit.onap.org/r/vnfsdk/dovetail-integration ${VNFTEST_REPO_DIR}
Moshe5e5e4932018-08-15 12:19:07 +030045#RUN mkdir ${VNFTEST_REPO_DIR}
46#COPY ./ ${VNFTEST_REPO_DIR}
Moshe0bb532c2018-02-26 13:39:57 +020047WORKDIR ${VNFTEST_REPO_DIR}
Moshe5e5e4932018-08-15 12:19:07 +030048
Moshe0bb532c2018-02-26 13:39:57 +020049RUN ${VNFTEST_REPO_DIR}/install.sh
Moshe0bb532c2018-02-26 13:39:57 +020050COPY ./exec_tests.sh /usr/local/bin/
Moshe5e5e4932018-08-15 12:19:07 +030051ENV VNFTEST_ROOT_PATH="/"
Moshed9784d12018-06-21 11:19:39 +030052ADD startup.sh /startup.sh
53RUN chmod 755 /startup.sh
Moshe5e5e4932018-08-15 12:19:07 +030054ENTRYPOINT /startup.sh