Moshe | 0bb532c | 2018-02-26 13:39:57 +0200 | [diff] [blame] | 1 | ############################################################################## |
| 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 |
| 16 | FROM ubuntu:16.04 |
| 17 | |
Moshe | 4e0a607 | 2018-03-29 09:14:00 +0300 | [diff] [blame] | 18 | LABEL image=onap/vnfsdk/vnftest |
Moshe | 0bb532c | 2018-02-26 13:39:57 +0200 | [diff] [blame] | 19 | |
| 20 | ARG BRANCH=master |
| 21 | |
| 22 | # GIT repo directory |
| 23 | ENV REPOS_DIR="/home/onap/repos" \ |
| 24 | IMAGE_DIR="/home/onap/images/" |
| 25 | |
| 26 | # Set work directory |
| 27 | |
| 28 | # Vnftest repo |
| 29 | ENV VNFTEST_REPO_DIR="${REPOS_DIR}/vnftest" \ |
| 30 | RELENG_REPO_DIR="${REPOS_DIR}/releng" \ |
| 31 | STORPERF_REPO_DIR="${REPOS_DIR}/storperf" |
| 32 | |
| 33 | RUN apt-get update && apt-get install -y git python-setuptools python-pip && apt-get -y autoremove && apt-get clean |
| 34 | RUN easy_install -U setuptools==30.0.0 |
| 35 | RUN pip install appdirs==1.4.0 pyopenssl==17.5.0 python-openstackclient==3.11.0 |
| 36 | |
| 37 | RUN mkdir -p ${REPOS_DIR} |
| 38 | |
| 39 | RUN git config --global http.sslVerify false |
Moshe | 5e5e493 | 2018-08-15 12:19:07 +0300 | [diff] [blame] | 40 | |
| 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. |
Moshe | 0bb532c | 2018-02-26 13:39:57 +0200 | [diff] [blame] | 44 | RUN git clone --depth 1 -b $BRANCH https://gerrit.onap.org/r/vnfsdk/dovetail-integration ${VNFTEST_REPO_DIR} |
Moshe | 5e5e493 | 2018-08-15 12:19:07 +0300 | [diff] [blame] | 45 | #RUN mkdir ${VNFTEST_REPO_DIR} |
| 46 | #COPY ./ ${VNFTEST_REPO_DIR} |
Moshe | 0bb532c | 2018-02-26 13:39:57 +0200 | [diff] [blame] | 47 | WORKDIR ${VNFTEST_REPO_DIR} |
Moshe | 5e5e493 | 2018-08-15 12:19:07 +0300 | [diff] [blame] | 48 | |
Moshe | 0bb532c | 2018-02-26 13:39:57 +0200 | [diff] [blame] | 49 | RUN ${VNFTEST_REPO_DIR}/install.sh |
Moshe | 0bb532c | 2018-02-26 13:39:57 +0200 | [diff] [blame] | 50 | COPY ./exec_tests.sh /usr/local/bin/ |
Moshe | 5e5e493 | 2018-08-15 12:19:07 +0300 | [diff] [blame] | 51 | ENV VNFTEST_ROOT_PATH="/" |
Moshe | d9784d1 | 2018-06-21 11:19:39 +0300 | [diff] [blame] | 52 | ADD startup.sh /startup.sh |
| 53 | RUN chmod 755 /startup.sh |
Moshe | 5e5e493 | 2018-08-15 12:19:07 +0300 | [diff] [blame] | 54 | ENTRYPOINT /startup.sh |