build-setup.sh: add extra docker run args
As was done in run-unit-test-docker.sh via 9c237f85, add an env
variable that users can set to pass in additional docker run parameters.
This is useful for mounting in a separate filesystem that has a local
reference repo for use during a clone (to improve clone performance).
Change-Id: Ia75a96e017588f85c33ad2eadf914a4e2098cb65
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/build-setup.sh b/build-setup.sh
index b4e678d..7830819 100755
--- a/build-setup.sh
+++ b/build-setup.sh
@@ -26,6 +26,7 @@
# DOCKER_REG: <optional, the URL of a docker registry to utilize
# instead of our default (public.ecr.aws/ubuntu)
# (ex. docker.io or public.ecr.aws/docker/library)
+# EXTRA_DOCKER_RUN_ARGS: Optional, pass arguments to docker run
#
# Docker Image Build Variables:
# BITBAKE_OPTS Set to "-c populate_sdk" or whatever other BitBake options
@@ -428,6 +429,7 @@
-e WORKSPACE="${WORKSPACE}" \
-w "${HOME}" \
-v "${HOME}:${HOME}" \
+ ${EXTRA_DOCKER_RUN_ARGS:-} \
${mount_obmc_dir} \
${mount_ssc_dir} \
${mount_workspace_dir} \