6afddbba8dce446341bf35f277dde41f1f1fde3d
[osm/devops.git] / docker / osmclient / Dockerfile
1 ##
2 # Copyright 2019 ETSI
3 #
4 # All Rights Reserved.
5 #
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
19
20 FROM ubuntu:16.04
21
22 LABEL authors="Michael Marchetti"
23
24 RUN apt-get update && apt-get -y install curl software-properties-common
25
26 RUN apt-get update && apt-get -y install python \
27     libcurl4-gnutls-dev libgnutls-dev iputils-ping python-pip \
28     python-openstackclient wget
29
30 RUN pip install -U pip && python -m pip install python-magic pyangbind pytest==4.6.3
31
32 ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian
33 ARG RELEASE=ReleaseFOUR-daily
34 ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg
35 ARG REPOSITORY=testing
36
37 RUN curl ${REPOSITORY_BASE}/${RELEASE}/${REPOSITORY_KEY} | apt-key add -
38 RUN add-apt-repository -y "deb ${REPOSITORY_BASE}/${RELEASE} ${REPOSITORY} devops osmclient IM" && apt update
39
40 ARG OSMCLIENT_VERSION
41 ARG DEVOPS_VERSION
42 ARG IM_VERSION
43
44 RUN apt-get update && apt-get -y install osm-devops${DEVOPS_VERSION} python-osmclient${OSMCLIENT_VERSION} python-osm-im${IM_VERSION}
45
46 ENV OSM_SOL005=True
47 ENV OSM_HOSTNAME=nbi:9999
48 ENV OSM_RO_HOSTNAME=ro:9090