Skip to content
Snippets Groups Projects
Commit 89f2f421 authored by Mike Marchetti's avatar Mike Marchetti
Browse files

Use LWUI version to allow caching


- use time/seconds to break cache until lwui packaging is supported
- avoids usings --no-cache due to upstream npm install delays
Signed-off-by: default avatarMike Marchetti <mmarchetti@sandvine.com>

Change-Id: I5f037a955b2091e0477c7fe22674f43458436145
parent 7abb18b1
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,9 @@ WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y npm git python-pip nginx supervisor
RUN npm install -g bower
RUN git clone https://osm.etsi.org/gerrit/osm/LW-UI /usr/src/app
ARG LWUI_VERSION=
RUN git clone https://osm.etsi.org/gerrit/osm/LW-UI /usr/src/app && echo LWUI_VERSION
RUN ln -s /usr/bin/nodejs /usr/bin/node
RUN bower install --allow-root
......
include ../mk/Makefile.include
# Currently LW-UI needs no-cache (binary version packages not yet available)
DOCKER_ARGS += $(NO_CACHE)
MDG=$(shell basename $(CURDIR))
......@@ -44,6 +44,7 @@ build: $(MKBUILD) $(DEPS_TARGETS)
--build-arg NBI_VERSION==$(shell cat $(MKBUILD)/.dep_NBI) \
--build-arg POL_VERSION==$(shell cat $(MKBUILD)/.dep_POL) \
--build-arg DEVOPS_VERSION==$(shell cat $(MKBUILD)/.dep_devops) \
--build-arg LWUI_VERSION==$(shell date +%s) \
$(DOCKER_ARGS) .
clean:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment