Update Dockerfiles to install osm-common from git repo
Change-Id: I013357affd57cf8b56fea8e9746c332524db0428
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/docker/RO/Dockerfile b/docker/RO/Dockerfile
index 0d84dac..69d40b4 100644
--- a/docker/RO/Dockerfile
+++ b/docker/RO/Dockerfile
@@ -39,9 +39,18 @@
DEBIAN_FRONTEND=noninteractive apt-get --yes install \
genisoimage=9:1.1.* \
libmagic1 \
- netbase=6.*
+ netbase=6.* \
+ git
-ARG PYTHON3_OSM_COMMON_URL
+ARG COMMON_GERRIT_REFSPEC=master
+RUN git clone --filter=blob:none --tags https://osm.etsi.org/gerrit/osm/common.git /tmp/osm-common && \
+ cd /tmp/osm-common && \
+ git fetch origin ${COMMON_GERRIT_REFSPEC} && \
+ git checkout FETCH_HEAD && \
+ cd - && \
+ pip install --no-cache-dir -r /tmp/osm-common/requirements.txt && \
+ pip install /tmp/osm-common
+
ARG PYTHON3_OSM_NG_RO_URL
ARG PYTHON3_OSM_RO_PLUGIN_URL
ARG PYTHON3_OSM_ROSDN_ARISTA_CLOUDVISION_URL
@@ -62,7 +71,6 @@
ARG PYTHON3_OSM_ROVIM_VMWARE_URL
RUN for URL in \
- $PYTHON3_OSM_COMMON_URL \
$PYTHON3_OSM_NG_RO_URL \
$PYTHON3_OSM_RO_PLUGIN_URL \
$PYTHON3_OSM_ROSDN_ARISTA_CLOUDVISION_URL \
@@ -87,7 +95,6 @@
RUN dpkg -i *.deb
RUN pip3 install \
- -r /usr/lib/python3/dist-packages/osm_common/requirements.txt \
-r /usr/lib/python3/dist-packages/osm_ng_ro/requirements.txt
#######################################################################################