Python Version update
[osm/devops.git] / docker / RO / Dockerfile
index 24b1425..09281be 100644 (file)
@@ -46,7 +46,12 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y python3-
     python3-osm-rovim-openstack${RO_VERSION} python3-osm-rovim-openvim${RO_VERSION} \
     python3-osm-rovim-vmware${RO_VERSION}
 
-# ensure right version is installed as pyhton3-ccryptography install an old version
+# ensure right version is installed as python3-cryptography install an old version
+# Since release 3.4 of python3-cryptography rust is an dependency
+
+RUN DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential libssl-dev libffi-dev \
+    python3-dev cargo
+
 RUN python3 -m pip install --upgrade "cryptography>=2.5"
 
 VOLUME /var/log/osm
@@ -94,5 +99,5 @@ HEALTHCHECK --start-period=130s --interval=10s --timeout=5s --retries=12 \
   CMD curl --silent --fail http://localhost:9090/ro || exit 1
   # CMD curl --silent --fail localhost:9090/openmano/tenants || exit 1
 # CMD /usr/bin/RO-start.sh
-CMD python3 -m osm_ng_ro.ro_main
+CMD ["python3", "-u", "-m", "osm_ng_ro.ro_main"]