| calvinosanch | bfb7790 | 2019-07-31 13:31:16 +0000 | [diff] [blame] | 1 | ## |
| 2 | # Copyright 2019 ETSI |
| 3 | # |
| yadavmr | 58af6b1 | 2019-09-18 15:33:25 +0530 | [diff] [blame] | 4 | # All Rights Reserved. |
| 5 | # |
| calvinosanch | bfb7790 | 2019-07-31 13:31:16 +0000 | [diff] [blame] | 6 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 7 | # not use this file except in compliance with the License. You may obtain |
| 8 | # a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 14 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 15 | # License for the specific language governing permissions and limitations |
| 16 | # under the License. |
| 17 | ## |
| 18 | |
| calvinosanch | bfb7790 | 2019-07-31 13:31:16 +0000 | [diff] [blame] | 19 | |
| garciadeblas | 39d42f8 | 2019-12-12 16:57:59 +0100 | [diff] [blame] | 20 | FROM ubuntu:18.04 |
| Mike Marchetti | b842085 | 2018-09-13 13:45:06 -0400 | [diff] [blame] | 21 | |
| garciadeblas | 39d42f8 | 2019-12-12 16:57:59 +0100 | [diff] [blame] | 22 | MAINTAINER Gerardo Garcia <gerardo.garciadeblas@telefonica.com>; Jayant Madavi <JM00553988@techmahindra.com> |
| Mike Marchetti | b842085 | 2018-09-13 13:45:06 -0400 | [diff] [blame] | 23 | |
| 24 | RUN apt-get update && apt-get -y install curl software-properties-common |
| 25 | |
| garciadeblas | 39d42f8 | 2019-12-12 16:57:59 +0100 | [diff] [blame] | 26 | RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install wget python3 python3-pip \ |
| garciadeblas | 8abbc8c | 2020-01-14 15:32:36 +0000 | [diff] [blame] | 27 | libcurl4-openssl-dev libssl-dev python3-openstackclient |
| yadavmr | 58af6b1 | 2019-09-18 15:33:25 +0530 | [diff] [blame] | 28 | |
| garciadeblas | 8abbc8c | 2020-01-14 15:32:36 +0000 | [diff] [blame] | 29 | RUN python3 -m pip install -U pip && python3 -m pip install pyyaml python-magic pyangbind pytest==4.6.3 verboselogs |
| Mike Marchetti | 13d76c8 | 2018-09-19 15:00:36 -0400 | [diff] [blame] | 30 | |
| Mike Marchetti | b842085 | 2018-09-13 13:45:06 -0400 | [diff] [blame] | 31 | ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian |
| garciadeblas | 39d42f8 | 2019-12-12 16:57:59 +0100 | [diff] [blame] | 32 | ARG RELEASE=ReleaseSEVEN-daily |
| Mike Marchetti | b842085 | 2018-09-13 13:45:06 -0400 | [diff] [blame] | 33 | ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg |
| 34 | ARG REPOSITORY=testing |
| 35 | |
| 36 | RUN curl ${REPOSITORY_BASE}/${RELEASE}/${REPOSITORY_KEY} | apt-key add - |
| garciadeblas | 39d42f8 | 2019-12-12 16:57:59 +0100 | [diff] [blame] | 37 | RUN add-apt-repository -y "deb ${REPOSITORY_BASE}/${RELEASE} ${REPOSITORY} devops osmclient IM" && apt-get update |
| Mike Marchetti | b842085 | 2018-09-13 13:45:06 -0400 | [diff] [blame] | 38 | |
| Mike Marchetti | 13d76c8 | 2018-09-19 15:00:36 -0400 | [diff] [blame] | 39 | ARG OSMCLIENT_VERSION |
| 40 | ARG DEVOPS_VERSION |
| yadavmr | 03a6134 | 2019-07-08 21:28:34 +0530 | [diff] [blame] | 41 | ARG IM_VERSION |
| Mike Marchetti | 13d76c8 | 2018-09-19 15:00:36 -0400 | [diff] [blame] | 42 | |
| garciadeblas | 39d42f8 | 2019-12-12 16:57:59 +0100 | [diff] [blame] | 43 | RUN apt-get update && apt-get -y install osm-devops${DEVOPS_VERSION} \ |
| madavi | 2f3a6c3 | 2019-12-02 16:45:19 +0530 | [diff] [blame] | 44 | python3-osm-im${IM_VERSION} python3-osmclient${OSMCLIENT_VERSION} |
| Mike Marchetti | b842085 | 2018-09-13 13:45:06 -0400 | [diff] [blame] | 45 | ENV OSM_SOL005=True |
| 46 | ENV OSM_HOSTNAME=nbi:9999 |
| garciadeblas | 39d42f8 | 2019-12-12 16:57:59 +0100 | [diff] [blame] | 47 | |