Updated Dockerfiles to use ReleaseEIGHT-daily repo by default
[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:18.04
21
22 MAINTAINER Gerardo Garcia <gerardo.garciadeblas@telefonica.com>; Jayant Madavi <JM00553988@techmahindra.com>
23
24 RUN apt-get update && apt-get -y install curl software-properties-common
25
26 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install wget python3 python3-pip \
27     libcurl4-openssl-dev libssl-dev python3-openstackclient
28
29 RUN python3 -m pip install -U pip && python3 -m pip install pyyaml python-magic pyangbind pytest==4.6.3 verboselogs
30
31 ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian
32 ARG RELEASE=ReleaseEIGHT-daily
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 -
37 RUN add-apt-repository -y "deb ${REPOSITORY_BASE}/${RELEASE} ${REPOSITORY} devops osmclient IM" && apt-get update
38
39 ARG OSMCLIENT_VERSION
40 ARG DEVOPS_VERSION
41 ARG IM_VERSION
42
43 RUN apt-get update && apt-get -y install osm-devops${DEVOPS_VERSION} \
44     python3-osm-im${IM_VERSION} python3-osmclient${OSMCLIENT_VERSION}
45 ENV OSM_SOL005=True
46 ENV OSM_HOSTNAME=nbi:9999
47