Fix. Update Dockerfile with osm-packages and remove type cache mount
Change-Id: If2f671958bbb1169f19fc7380a46408714106319
Signed-off-by: caviedesj <juancamilo.caviedesvalencia.ext@telefonica.com>
diff --git a/Dockerfile.production b/Dockerfile.production
index 4c06568..dcc1b84 100644
--- a/Dockerfile.production
+++ b/Dockerfile.production
@@ -102,8 +102,7 @@
COPY . /tmp/osm-tests/
# Install test requirements leveraging BuildKit cache
-RUN --mount=type=cache,target=/root/.cache/pip \
- cd /tmp/osm-tests && \
+RUN cd /tmp/osm-tests && \
pip install --no-cache-dir -r /tmp/osm-tests/requirements.txt && \
pip install /tmp/osm-tests && \
cd -
@@ -113,6 +112,13 @@
mv /tmp/osm-tests/conformance-tests/ /robot-systest/ && \
mv /tmp/osm-tests/charm.sh /usr/sbin/charm
+# Download osm-packages repository for tests
+ARG CACHE_DATE=not_a_date
+RUN git clone \
+ https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages.git \
+ --recurse-submodules \
+ /robot-systest/osm-packages
+
WORKDIR /robot-systest
# Folder where Robot tests are stored