Lines Matching +full:docker +full:- +full:run
2 # SPDX-License-Identifier: BSD-3-Clause
5 # Runs a given script in the docker container you can generate from the
9 # ./scripts/docker-run.sh ./scripts/xtensa-build-all.sh tgl
11 # ./scripts/docker-run.sh ./scripts/build-tools.sh
13 # set -x
15 set -e
21 docker images --digests "$rep"
24 if tty --quiet; then
25 SOF_DOCKER_RUN="$SOF_DOCKER_RUN --tty"
28 # The --user option below can cause the command to run as a user who
30 # ever goes wrong try replacing --user with the newer
31 # scripts/sudo-cwd.sh script.
32 test "$(id -u)" = 1000 ||
33 >&2 printf "Warning: this script should be run as user ID 1000 to match the container's account\n"
35 set -x
36 docker run -i -v "${SOF_TOP}":/home/sof/work/sof.git \
37 -v "${SOF_TOP}":/home/sof/work/sof-bind-mount-DO-NOT-DELETE \
38 --env CMAKE_BUILD_TYPE \
39 --env PRIVATE_KEY_OPTION \
40 --env USE_XARGS \
41 --env NO_PROCESSORS \
42 --env VERBOSE \
43 --env http_proxy="$http_proxy" \
44 --env https_proxy="$https_proxy" \
45 --user "$(id -u)" \