Fixes Bug 1436 - docker/tests/Dockerfile: cryptography dependencies 26/10326/2
authorJoão Fonseca <jpedrofonseca@av.it.pt>
Mon, 15 Feb 2021 15:57:51 +0000 (15:57 +0000)
committerfonsecaj <jpedrofonseca@av.it.pt>
Tue, 16 Feb 2021 20:09:19 +0000 (21:09 +0100)
Change-Id: I1c3fad357012407285e5ada403916b829312cd97
Signed-off-by: João Fonseca <jpedrofonseca@av.it.pt>
(cherry picked from commit b3daa3a5aa897ea1f0708c520e325bfd682d2a12)

docker/tests/Dockerfile

index 07a46cf..023bd84 100644 (file)
@@ -17,11 +17,24 @@ FROM ubuntu:18.04
 
 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install git software-properties-common \
     curl xz-utils gnupg2 apt-transport-https make python3 debhelper python3-setuptools python3-pip apt-utils \
-    ssh iputils-ping libcurl4-openssl-dev libssl-dev python3-openstackclient
+    ssh iputils-ping libcurl4-openssl-dev libssl-dev python3-yaml \
+    build-essential libssl-dev libffi-dev python3-dev
 RUN add-apt-repository -y ppa:rmescandon/yq && apt update && apt install yq -y
-RUN python3 -m pip install haikunator requests robotframework robotframework-seleniumlibrary \
+
+RUN python3 -m pip install --upgrade pip
+
+RUN DEBIAN_FRONTEND=noninteractive apt-get install -y cargo rustc
+
+RUN python3 --version && python3 -m pip --version
+RUN rustc --version && cargo --version
+
+RUN python3 -m pip install --upgrade setuptools setuptools-rust
+
+RUN python3 -m pip install --ignore-installed pyyaml
+
+RUN python3 -m pip install --upgrade haikunator requests robotframework robotframework-seleniumlibrary \
     robotframework-requests robotframework-jsonlibrary robotframework-sshlibrary charm-tools \
-    verboselogs pyangbind
+    verboselogs pyangbind python-openstackclient
 
 ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian
 ARG RELEASE=ReleaseNINE-daily