blob: ab1a8ac61f8902cb73277424de39a1c5c1ee9d63 [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
garciadeblas39d42f82019-12-12 16:57:59 +010020FROM ubuntu:18.04
Mike Marchettib8420852018-09-13 13:45:06 -040021
garciadeblas39d42f82019-12-12 16:57:59 +010022MAINTAINER Gerardo Garcia <gerardo.garciadeblas@telefonica.com>; Jayant Madavi <JM00553988@techmahindra.com>
Mike Marchettib8420852018-09-13 13:45:06 -040023
24RUN apt-get update && apt-get -y install curl software-properties-common
25
garciadeblas39d42f82019-12-12 16:57:59 +010026RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install wget python3 python3-pip \
garciadeblas8abbc8c2020-01-14 15:32:36 +000027 libcurl4-openssl-dev libssl-dev python3-openstackclient
yadavmr58af6b12019-09-18 15:33:25 +053028
garciadeblas8abbc8c2020-01-14 15:32:36 +000029RUN python3 -m pip install -U pip && python3 -m pip install pyyaml python-magic pyangbind pytest==4.6.3 verboselogs
Mike Marchetti13d76c82018-09-19 15:00:36 -040030
Mike Marchettib8420852018-09-13 13:45:06 -040031ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian
garciadeblas8af7f0d2020-07-05 07:31:12 +000032ARG RELEASE=ReleaseEIGHT-daily
Mike Marchettib8420852018-09-13 13:45:06 -040033ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg
34ARG REPOSITORY=testing
35
36RUN curl ${REPOSITORY_BASE}/${RELEASE}/${REPOSITORY_KEY} | apt-key add -
garciadeblas39d42f82019-12-12 16:57:59 +010037RUN add-apt-repository -y "deb ${REPOSITORY_BASE}/${RELEASE} ${REPOSITORY} devops osmclient IM" && apt-get update
Mike Marchettib8420852018-09-13 13:45:06 -040038
Mike Marchetti13d76c82018-09-19 15:00:36 -040039ARG OSMCLIENT_VERSION
40ARG DEVOPS_VERSION
yadavmr03a61342019-07-08 21:28:34 +053041ARG IM_VERSION
Mike Marchetti13d76c82018-09-19 15:00:36 -040042
garciadeblas39d42f82019-12-12 16:57:59 +010043RUN apt-get update && apt-get -y install osm-devops${DEVOPS_VERSION} \
madavi2f3a6c32019-12-02 16:45:19 +053044 python3-osm-im${IM_VERSION} python3-osmclient${OSMCLIENT_VERSION}
Mike Marchettib8420852018-09-13 13:45:06 -040045ENV OSM_SOL005=True
46ENV OSM_HOSTNAME=nbi:9999
garciadeblas39d42f82019-12-12 16:57:59 +010047