From 64daf20470d666bacd9f65a4c3e130821d55392d Mon Sep 17 00:00:00 2001 From: tdrz Date: Mon, 21 Apr 2025 11:08:12 +0200 Subject: [PATCH 1/2] map local folder as readonly inside docker, use copy such that the output of the build will not polute the host --- wasm-build/build-with-docker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wasm-build/build-with-docker.sh b/wasm-build/build-with-docker.sh index 2da234e657338..59c111f796f1c 100755 --- a/wasm-build/build-with-docker.sh +++ b/wasm-build/build-with-docker.sh @@ -22,7 +22,7 @@ cat .buildconfig docker run \ --rm \ --env-file .buildconfig \ - -v .:/workspace:rw \ + -v .:/tmp-workspace:ro \ -v ./dist:/tmp/sdk/dist:rw \ $IMG_NAME:$IMG_TAG \ - bash -c "source ${SDKROOT}/wasm32-bi-emscripten-shell.sh && ./wasm-build.sh ${WHAT:-\"contrib extra\"}" + bash -c "cp -r /tmp-workspace /workspace && source ${SDKROOT}/wasm32-bi-emscripten-shell.sh && ./wasm-build.sh ${WHAT:-\"contrib extra\"}" From 0377fa8e894535e7e9d39e3eae598e68629ff0eb Mon Sep 17 00:00:00 2001 From: tdrz Date: Mon, 21 Apr 2025 11:25:48 +0200 Subject: [PATCH 2/2] fixes --- wasm-build/build-with-docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasm-build/build-with-docker.sh b/wasm-build/build-with-docker.sh index 59c111f796f1c..c56a5c079f4c7 100755 --- a/wasm-build/build-with-docker.sh +++ b/wasm-build/build-with-docker.sh @@ -25,4 +25,4 @@ docker run \ -v .:/tmp-workspace:ro \ -v ./dist:/tmp/sdk/dist:rw \ $IMG_NAME:$IMG_TAG \ - bash -c "cp -r /tmp-workspace /workspace && source ${SDKROOT}/wasm32-bi-emscripten-shell.sh && ./wasm-build.sh ${WHAT:-\"contrib extra\"}" + bash -c "cp -r /tmp-workspace/. /workspace && cd /workspace && source ${SDKROOT}/wasm32-bi-emscripten-shell.sh && ./wasm-build.sh ${WHAT:-\"contrib extra\"}"