From: Cristina Pauna Date: Fri, 21 Jun 2019 12:59:50 +0000 (+0300) Subject: [ui] Fix docker build for UI container X-Git-Tag: 2.0.0~69^2 X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=validation.git;a=commitdiff_plain;h=ab85d41128f49b2009913d18d669b633c8064381 [ui] Fix docker build for UI container The build is failing because it expects the java code to be built before copying the executable inside the ui container JIRA: VAL-31 Signed-off-by: Cristina Pauna Change-Id: I1f3d92bab9d1de8fbe93a2da0667c82aca44789f --- diff --git a/docker/ui/Dockerfile b/docker/ui/Dockerfile index ee710a1..cec47f9 100644 --- a/docker/ui/Dockerfile +++ b/docker/ui/Dockerfile @@ -14,5 +14,9 @@ # limitations under the License. # +FROM maven:3.6.1-jdk-11 as build +RUN git clone https://gerrit.akraino.org/r/validation /opt/akraino/validation/repo +RUN cd /opt/akraino/validation/repo/ui && mvn clean install + FROM tomcat:8.5.37 -COPY ./AECBlueprintValidationUI.war /usr/local/tomcat/webapps \ No newline at end of file +COPY --from=build /opt/akraino/validation/repo/ui/target/AECBlueprintValidationUI.war /usr/local/tomcat/webapps diff --git a/docker/ui/Makefile b/docker/ui/Makefile index 5e2d074..db91c1e 100644 --- a/docker/ui/Makefile +++ b/docker/ui/Makefile @@ -14,14 +14,10 @@ # limitations under the License. # ############################################################################## -.PHONY: prepare -prepare: - ln -f ../../ui/target/AECBlueprintValidationUI.war AECBlueprintValidationUI.war - .PHONY: all -all: prepare .push_image .push_manifest +all: .push_image .push_manifest .PHONY: build -build: prepare .build +build: .build -include ../build.mk \ No newline at end of file +include ../build.mk