From cd2b9a392a6a77dd40703a861999144ee0b3413c Mon Sep 17 00:00:00 2001 From: Nicholas Soteropoulos Date: Tue, 29 Sep 2020 13:44:27 -0400 Subject: updating docker repository to onap nexus Change-Id: I542aa09dde0dbcd54b69e2bfbce593bfcfb849c6 Issue-ID: DCAEGEN2-2317 Signed-off-by: Nicholas Soteropoulos --- mod2/ui/Dockerfile | 2 +- mod2/ui/pom.xml | 48 ++++++++++++++++++++++++++++++++++-------------- 2 files changed, 35 insertions(+), 15 deletions(-) (limited to 'mod2') diff --git a/mod2/ui/Dockerfile b/mod2/ui/Dockerfile index 67744d4..904c656 100644 --- a/mod2/ui/Dockerfile +++ b/mod2/ui/Dockerfile @@ -1,5 +1,5 @@ # ---- Base Node ---- -FROM alpine:12.4.0 AS base +FROM node:12.4.0-alpine AS base #RUN fs.inotify.max_user_watches=524288 diff --git a/mod2/ui/pom.xml b/mod2/ui/pom.xml index 50122de..b2e887e 100644 --- a/mod2/ui/pom.xml +++ b/mod2/ui/pom.xml @@ -32,40 +32,60 @@ ui 1.0.0-SNAPSHOT + + 1.4.10 + onap/${project.groupId}.${project.artifactId} + + - com.github.eirslett - frontend-maven-plugin - 1.7.6 + com.spotify + dockerfile-maven-plugin + ${dockerfile-maven-plugin.version} - ./ - v12.16.1 - 6.13.4 + ${project.basedir} + ${onap.nexus.dockerregistry.daily}/${docker.image.name} + + target + ${project.build.finalName}.jar + - install node and npm + build-image + package - install-node-and-npm + build - npm install + tag-and-push-image-latest + package - npm + tag + push + + ${onap.nexus.dockerregistry.daily}/${docker.image.name} + latest + true + - npm run build + tag-and-push-image-with-version + package - npm + tag + push - run build + ${onap.nexus.dockerregistry.daily}/${docker.image.name} + ${project.version} + true - + -- cgit 1.2.3-korg