mirror of
https://github.com/goharbor/harbor
synced 2025-04-17 16:26:45 +00:00
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.
This commit is contained in:
parent
a9792c9c9a
commit
37176c8fe5
|
@ -35,10 +35,14 @@ npm link
|
||||||
cd /harbor_src/ui_ng
|
cd /harbor_src/ui_ng
|
||||||
npm link harbor-ui
|
npm link harbor-ui
|
||||||
|
|
||||||
|
## Rollup
|
||||||
./node_modules/.bin/ngc -p tsconfig-aot.json
|
./node_modules/.bin/ngc -p tsconfig-aot.json
|
||||||
sed -i 's/* as//g' src/app/shared/gauge/gauge.component.js
|
sed -i 's/* as//g' src/app/shared/gauge/gauge.component.js
|
||||||
./node_modules/.bin/rollup -c rollup-config.js
|
./node_modules/.bin/rollup -c rollup-config.js
|
||||||
|
|
||||||
|
## Unlink
|
||||||
|
npm unlink harbor-ui
|
||||||
|
|
||||||
#Copy built js to the static folder
|
#Copy built js to the static folder
|
||||||
cp ./dist/build.min.js ../ui/static/
|
cp ./dist/build.min.js ../ui/static/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user