blob: 3bf5fb3d2d16bc9bc96f820eb838a91dabf29508 [file] [log] [blame]
calvinosanchbfb77902019-07-31 13:31:16 +00001##
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 Marchettib8420852018-09-13 13:45:06 -040019FROM ubuntu:16.04
20
21LABEL authors="Michael Marchetti"
22
23RUN apt-get update && apt-get -y install curl software-properties-common
24
Mike Marchetti13d76c82018-09-19 15:00:36 -040025RUN apt-get update && apt-get -y install python \
Mike Marchettie31371a2018-09-21 16:56:54 -040026 libcurl4-gnutls-dev libgnutls-dev iputils-ping python-pip \
27 python-openstackclient wget
calvinosanchbfb77902019-07-31 13:31:16 +000028RUN pip install -U pip && python -m pip install python-magic pyangbind pytest==4.6.3
Mike Marchetti13d76c82018-09-19 15:00:36 -040029
Mike Marchettib8420852018-09-13 13:45:06 -040030ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian
31ARG RELEASE=ReleaseFOUR-daily
32ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg
33ARG REPOSITORY=testing
34
35RUN curl ${REPOSITORY_BASE}/${RELEASE}/${REPOSITORY_KEY} | apt-key add -
yadavmrc0fcbb02019-07-08 19:19:11 +053036RUN add-apt-repository -y "deb ${REPOSITORY_BASE}/${RELEASE} ${REPOSITORY} devops osmclient IM" && apt update
Mike Marchettib8420852018-09-13 13:45:06 -040037
Mike Marchetti13d76c82018-09-19 15:00:36 -040038ARG OSMCLIENT_VERSION
39ARG DEVOPS_VERSION
yadavmr03a61342019-07-08 21:28:34 +053040ARG IM_VERSION
Mike Marchetti13d76c82018-09-19 15:00:36 -040041
yadavmr03a61342019-07-08 21:28:34 +053042RUN apt-get update && apt-get -y install osm-devops${DEVOPS_VERSION} python-osmclient${OSMCLIENT_VERSION} python-osm-im${IM_VERSION}
Mike Marchettib8420852018-09-13 13:45:06 -040043
44ENV OSM_SOL005=True
45ENV OSM_HOSTNAME=nbi:9999
46ENV OSM_RO_HOSTNAME=ro:9090