Skip to content

Commit 110376e

Browse files
committed
Adds user-specific UID and simplifies script invocation
Updates Docker run script to use a fixed user ID (1000:1000) for consistent file permissions. Removes the `sudo-cwd.sh` script from the invocation, simplifying the command execution process. Improves usability and resolves permission issues in containerized environments. Signed-off-by: Christopher Turner <christopher.g.turner@intel.com>
1 parent 5229c72 commit 110376e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/docker-run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ test "$(id -u)" = 1000 ||
3535
set -x
3636
docker run -i -v "${SOF_TOP}":/home/sof/work/sof.git \
3737
-v "${SOF_TOP}":/home/sof/work/sof-bind-mount-DO-NOT-DELETE \
38+
--user 1000:1000
3839
--env CMAKE_BUILD_TYPE \
3940
--env PRIVATE_KEY_OPTION \
4041
--env USE_XARGS \
@@ -44,4 +45,4 @@ docker run -i -v "${SOF_TOP}":/home/sof/work/sof.git \
4445
--env https_proxy="$https_proxy" \
4546
--env SOF_WORKSPACE="/home/sof/work" \
4647
$SOF_DOCKER_RUN \
47-
thesofproject/sof:latest ./scripts/sudo-cwd.sh "$@"
48+
thesofproject/sof:latest "$@"

0 commit comments

Comments
 (0)