| calvinosanch | bfb7790 | 2019-07-31 13:31:16 +0000 | [diff] [blame] | 1 | ## |
| 2 | # Copyright 2019 ETSI |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 5 | # not use this file except in compliance with the License. You may obtain |
| 6 | # a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 12 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 13 | # License for the specific language governing permissions and limitations |
| 14 | # under the License. |
| 15 | ## |
| 16 | |
| 17 | ######################################################################## |
| 18 | |
| Mike Marchetti | b842085 | 2018-09-13 13:45:06 -0400 | [diff] [blame] | 19 | FROM ubuntu:16.04 |
| 20 | |
| 21 | LABEL authors="Michael Marchetti" |
| 22 | |
| 23 | RUN apt-get update && apt-get -y install curl software-properties-common |
| 24 | |
| Mike Marchetti | 13d76c8 | 2018-09-19 15:00:36 -0400 | [diff] [blame] | 25 | RUN apt-get update && apt-get -y install python \ |
| Mike Marchetti | e31371a | 2018-09-21 16:56:54 -0400 | [diff] [blame] | 26 | libcurl4-gnutls-dev libgnutls-dev iputils-ping python-pip \ |
| 27 | python-openstackclient wget |
| calvinosanch | bfb7790 | 2019-07-31 13:31:16 +0000 | [diff] [blame] | 28 | RUN pip install -U pip && python -m pip install python-magic pyangbind pytest==4.6.3 |
| Mike Marchetti | 13d76c8 | 2018-09-19 15:00:36 -0400 | [diff] [blame] | 29 | |
| Mike Marchetti | b842085 | 2018-09-13 13:45:06 -0400 | [diff] [blame] | 30 | ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian |
| 31 | ARG RELEASE=ReleaseFOUR-daily |
| 32 | ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg |
| 33 | ARG REPOSITORY=testing |
| 34 | |
| 35 | RUN curl ${REPOSITORY_BASE}/${RELEASE}/${REPOSITORY_KEY} | apt-key add - |
| yadavmr | c0fcbb0 | 2019-07-08 19:19:11 +0530 | [diff] [blame] | 36 | RUN add-apt-repository -y "deb ${REPOSITORY_BASE}/${RELEASE} ${REPOSITORY} devops osmclient IM" && apt update |
| Mike Marchetti | b842085 | 2018-09-13 13:45:06 -0400 | [diff] [blame] | 37 | |
| Mike Marchetti | 13d76c8 | 2018-09-19 15:00:36 -0400 | [diff] [blame] | 38 | ARG OSMCLIENT_VERSION |
| 39 | ARG DEVOPS_VERSION |
| yadavmr | 03a6134 | 2019-07-08 21:28:34 +0530 | [diff] [blame] | 40 | ARG IM_VERSION |
| Mike Marchetti | 13d76c8 | 2018-09-19 15:00:36 -0400 | [diff] [blame] | 41 | |
| yadavmr | 03a6134 | 2019-07-08 21:28:34 +0530 | [diff] [blame] | 42 | RUN apt-get update && apt-get -y install osm-devops${DEVOPS_VERSION} python-osmclient${OSMCLIENT_VERSION} python-osm-im${IM_VERSION} |
| Mike Marchetti | b842085 | 2018-09-13 13:45:06 -0400 | [diff] [blame] | 43 | |
| 44 | ENV OSM_SOL005=True |
| 45 | ENV OSM_HOSTNAME=nbi:9999 |
| 46 | ENV OSM_RO_HOSTNAME=ro:9090 |