From 37176c8fe52692a93486b7ae4c9511ca39885135 Mon Sep 17 00:00:00 2001 From: "Deng, Qian" Date: Wed, 1 Aug 2018 17:14:43 +0800 Subject: [PATCH] Unlink harbor-ui after UI complling. After UI compilling should unlink harbor-ui. Because it create a link with root user in container that will cause permission issues next time you want to aceess this file. --- make/dev/nodeclarity/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/make/dev/nodeclarity/entrypoint.sh b/make/dev/nodeclarity/entrypoint.sh index d3eae1ec9..902bb531a 100644 --- a/make/dev/nodeclarity/entrypoint.sh +++ b/make/dev/nodeclarity/entrypoint.sh @@ -35,10 +35,14 @@ npm link cd /harbor_src/ui_ng npm link harbor-ui +## Rollup ./node_modules/.bin/ngc -p tsconfig-aot.json sed -i 's/* as//g' src/app/shared/gauge/gauge.component.js ./node_modules/.bin/rollup -c rollup-config.js +## Unlink +npm unlink harbor-ui + #Copy built js to the static folder cp ./dist/build.min.js ../ui/static/