chenyulin0719 commented on code in PR #409:
URL: https://github.com/apache/yunikorn-site/pull/409#discussion_r1527418351
##########
local-build.sh:
##########
@@ -73,23 +76,13 @@ function run_base() {
if ! docker run -it --name yunikorn-site-local -d \
-p 3000:3000 \
-v "$PWD":/yunikorn-site \
+ --mount type=volume,dst=/yunikorn-site/node_modules \
Review Comment:
It isolated the host's and docker's node_modules/ .
Could I confirm what is the previous weirdness in the old build? I wasn't
aware of it before.
> Most of the weirdness in the old build was due to node_modules being
(incorrectly) shared between the host and the Docker environment.
##########
local-build.sh:
##########
@@ -73,23 +76,13 @@ function run_base() {
if ! docker run -it --name yunikorn-site-local -d \
-p 3000:3000 \
-v "$PWD":/yunikorn-site \
+ --mount type=volume,dst=/yunikorn-site/node_modules \
Review Comment:
I think it would be better if we can explain the reason under run_base()'s
comments.
ex:
```
function run_base() {
# run docker container
# mount the repo root to the container working dir,
# so that changes made in the repo can trigger the web-server auto-update
# Alos prevent sharing node_modules/ between the host and the Docker
environment to avoid potential conflict.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]