X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=docker%2Fosmclient%2FDockerfile;h=95515ec2ef03567827cad21cb23169b72d0125b0;hb=3f7f46ab7bf67ceb7d3c9a7f2c2aef5c2dea409d;hp=b8e768639da805cb0f23510d0ce286a48e0e1dd2;hpb=13d76c8224da1ff6ad5181a03af9f4085dae95d4;p=osm%2Fdevops.git diff --git a/docker/osmclient/Dockerfile b/docker/osmclient/Dockerfile index b8e76863..95515ec2 100644 --- a/docker/osmclient/Dockerfile +++ b/docker/osmclient/Dockerfile @@ -1,3 +1,22 @@ +## +# Copyright 2019 ETSI +# +# All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. +## + + FROM ubuntu:16.04 LABEL authors="Michael Marchetti" @@ -5,8 +24,11 @@ LABEL authors="Michael Marchetti" RUN apt-get update && apt-get -y install curl software-properties-common RUN apt-get update && apt-get -y install python \ - libcurl4-gnutls-dev libgnutls-dev iputils-ping python-pip -RUN pip install python-magic pytest + libcurl4-gnutls-dev libgnutls-dev iputils-ping python-pip \ + python-openstackclient wget python3-pip + +RUN pip install -U pip && python -m pip install python-magic pyangbind pytest==4.6.3 +RUN python3 -m pip install -U pip && python3 -m pip install pyyaml python-magic pyangbind pytest==4.6.3 ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian ARG RELEASE=ReleaseFOUR-daily @@ -14,13 +36,14 @@ ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg ARG REPOSITORY=testing RUN curl ${REPOSITORY_BASE}/${RELEASE}/${REPOSITORY_KEY} | apt-key add - -RUN add-apt-repository -y "deb ${REPOSITORY_BASE}/${RELEASE} ${REPOSITORY} devops osmclient" && apt update +RUN add-apt-repository -y "deb ${REPOSITORY_BASE}/${RELEASE} ${REPOSITORY} devops osmclient IM" && apt update ARG OSMCLIENT_VERSION ARG DEVOPS_VERSION +ARG IM_VERSION -RUN apt-get update && apt-get -y install osm-devops${DEVOPS_VERSION} python-osmclient${OSMCLIENT_VERSION} - +RUN apt-get update && apt-get -y install osm-devops${DEVOPS_VERSION} python-osm-im${IM_VERSION} +RUN apt-get -y install python3-osm-im${IM_VERSION} python3-osmclient${OSMCLIENT_VERSION} ENV OSM_SOL005=True ENV OSM_HOSTNAME=nbi:9999 ENV OSM_RO_HOSTNAME=ro:9090