blob: 95515ec2ef03567827cad21cb23169b72d0125b0 [file] [log] [blame]
calvinosanchbfb77902019-07-31 13:31:16 +00001##
2# Copyright 2019 ETSI
3#
yadavmr58af6b12019-09-18 15:33:25 +05304# All Rights Reserved.
5#
calvinosanchbfb77902019-07-31 13:31:16 +00006# 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
calvinosanchbfb77902019-07-31 13:31:16 +000019
Mike Marchettib8420852018-09-13 13:45:06 -040020FROM ubuntu:16.04
21
22LABEL authors="Michael Marchetti"
23
24RUN apt-get update && apt-get -y install curl software-properties-common
25
Mike Marchetti13d76c82018-09-19 15:00:36 -040026RUN apt-get update && apt-get -y install python \
Mike Marchettie31371a2018-09-21 16:56:54 -040027 libcurl4-gnutls-dev libgnutls-dev iputils-ping python-pip \
yadavmr81b40a02019-11-19 18:02:23 +053028 python-openstackclient wget python3-pip
yadavmr58af6b12019-09-18 15:33:25 +053029
calvinosanchbfb77902019-07-31 13:31:16 +000030RUN pip install -U pip && python -m pip install python-magic pyangbind pytest==4.6.3
yadavmr81b40a02019-11-19 18:02:23 +053031RUN python3 -m pip install -U pip && python3 -m pip install pyyaml python-magic pyangbind pytest==4.6.3
Mike Marchetti13d76c82018-09-19 15:00:36 -040032
Mike Marchettib8420852018-09-13 13:45:06 -040033ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian
34ARG RELEASE=ReleaseFOUR-daily
35ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg
36ARG REPOSITORY=testing
37
38RUN curl ${REPOSITORY_BASE}/${RELEASE}/${REPOSITORY_KEY} | apt-key add -
yadavmrc0fcbb02019-07-08 19:19:11 +053039RUN add-apt-repository -y "deb ${REPOSITORY_BASE}/${RELEASE} ${REPOSITORY} devops osmclient IM" && apt update
Mike Marchettib8420852018-09-13 13:45:06 -040040
Mike Marchetti13d76c82018-09-19 15:00:36 -040041ARG OSMCLIENT_VERSION
42ARG DEVOPS_VERSION
yadavmr03a61342019-07-08 21:28:34 +053043ARG IM_VERSION
Mike Marchetti13d76c82018-09-19 15:00:36 -040044
yadavmr81b40a02019-11-19 18:02:23 +053045RUN apt-get update && apt-get -y install osm-devops${DEVOPS_VERSION} python-osm-im${IM_VERSION}
46RUN apt-get -y install python3-osm-im${IM_VERSION} python3-osmclient${OSMCLIENT_VERSION}
Mike Marchettib8420852018-09-13 13:45:06 -040047ENV OSM_SOL005=True
48ENV OSM_HOSTNAME=nbi:9999
49ENV OSM_RO_HOSTNAME=ro:9090