X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docker%2FDockerfile;h=a0740ff2d80fb8de9cdb865cd61eae6bca1cb43b;hb=9092855cfdce1090bd6b716393ac6e32ded35b17;hp=7e0bbce5d516a7c0898976145b5405a46740a018;hpb=82f05de6c5c3abc018bd4a9639bbecf9dc2c2847;p=osm%2Ftests.git diff --git a/docker/Dockerfile b/docker/Dockerfile index 7e0bbce..a0740ff 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -19,13 +19,27 @@ FROM ubuntu:18.04 # Installing robot dependencies RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install git software-properties-common \ - make python3 debhelper python3-setuptools python3-pip apt-utils ssh iputils-ping libcurl4-openssl-dev libssl-dev \ - python3-openstackclient + make python3 debhelper python3-pip apt-utils ssh iputils-ping libcurl4-openssl-dev libssl-dev cargo rustc + +# Installing Juju +ARG JUJU_VERSION_M=2.8 +ARG JUJU_VERSION_R=11 +ARG JUJU_VERSION=$JUJU_VERSION_M.$JUJU_VERSION_R + +RUN curl --output /tmp/juju-$JUJU_VERSION-linux-amd64.tar.xz -LO \ + https://launchpad.net/juju/$JUJU_VERSION_M/$JUJU_VERSION/+download/juju-$JUJU_VERSION-linux-amd64.tar.xz && \ + tar -xf /tmp/juju-$JUJU_VERSION-linux-amd64.tar.xz -C /tmp && \ + install /tmp/juju /usr/local/bin/juju && \ + rm /tmp/juju /tmp/juju-$JUJU_VERSION-linux-amd64.tar.xz RUN add-apt-repository -y ppa:rmescandon/yq && apt update && apt install yq -y -RUN python3 -m pip install haikunator requests robotframework robotframework-seleniumlibrary robotframework-requests robotframework-jsonlibrary \ - robotframework-sshlibrary charm-tools git+https://osm.etsi.org/gerrit/osm/IM.git git+https://osm.etsi.org/gerrit/osm/osmclient.git +RUN python3 -m pip install -U pip + +RUN python3 -m pip install charm-tools haikunator python-openstackclient requests robotframework \ + robotframework-seleniumlibrary robotframework-requests robotframework-jsonlibrary robotframework-sshlibrary \ + setuptools setuptools-rust git+https://osm.etsi.org/gerrit/osm/IM.git \ + git+https://osm.etsi.org/gerrit/osm/osmclient.git # Preparing working environment WORKDIR /robot-systest @@ -53,6 +67,12 @@ ENV ROBOT_REPORT_FOLDER=/robot-systest/reports # Kubeconfig file ENV K8S_CREDENTIALS=/root/.kube/config +# Juju data folder +ENV JUJU_DATA=/root/.local/share/juju + +# OSM RSA file +ENV OSM_RSA_FILE=/root/osm_id_rsa + ENV LC_ALL=C.UTF-8 ENV LANG=C.UTF-8