Skip to content

Commit

Permalink
Run the container with current uid/gid
Browse files Browse the repository at this point in the history
To avoid generated files owned by root
  • Loading branch information
Boris Maras committed Jul 20, 2021
1 parent db61038 commit 60993c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/compile_zstddec_with_docker_emscripten.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
REPO_DIR="$(dirname "$SCRIPT_DIR")"

# Run the emscripten compilation through docker
docker run -v "$REPO_DIR":/project -w /project emscripten/emsdk:2.0.25 /bin/sh -c 'cd emscripten/zstandard/; sh ./compile.sh'
docker run -v "$REPO_DIR":/project -w /project -u $(id -u):$(id -g) emscripten/emsdk:2.0.25 /bin/sh -c 'cd emscripten/zstandard/; sh ./compile.sh'

0 comments on commit 60993c2

Please sign in to comment.