Added CACHE_DATE arg to force recreating the docker layer during docker build of... 34/10434/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 2 Mar 2021 17:21:36 +0000 (17:21 +0000)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 2 Mar 2021 17:22:04 +0000 (17:22 +0000)
Change-Id: Icbe3c76be7618c557b461227c61463cfcc34d0ac
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
docker/mk/Makefile.include
docker/tests/Dockerfile

index 4105295..f31d2ca 100644 (file)
@@ -76,6 +76,7 @@ build: $(MKBUILD) $(DEPS_TARGETS)
                    --build-arg LWUI_VERSION==$(shell cat $(MKBUILD)/.dep_lightui) \
                    --build-arg NGUI_VERSION==$(shell cat $(MKBUILD)/.dep_ngui) \
                    --build-arg TESTS_VERSION==$(shell cat $(MKBUILD)/.dep_tests) \
+                   --build-arg CACHE_DATE==$(shell date -uI) \
                    $(DOCKER_ARGS) .
 
 clean:
index 023bd84..18ebe8e 100644 (file)
@@ -56,6 +56,7 @@ RUN mv /usr/share/osm-tests/charm.sh /usr/sbin/charm
 
 WORKDIR /robot-systest
 
+ARG CACHE_DATE=2021-03-01
 RUN git clone https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages.git --recurse-submodules /robot-systest/osm-packages
 
 # Folder where Robot tests are stored