docker-run.sh: log command run and image digests

There's frequent confusion between image ID and image digest: display
both.

Show both sof and thesofproject/sof.

Use set -x to display the full command that is run.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2022-01-06 22:49:09 +00:00 committed by Liam Girdwood
parent 308a24a92b
commit f79d2341af
1 changed files with 5 additions and 3 deletions

View File

@ -16,14 +16,16 @@ set -e
SOF_TOP="$(cd "$(dirname "$0")"/.. && /bin/pwd)"
# Log the container version. Especially useful when forgetting to update
# the 'sof' shortcut.
docker images sof
# Log container versions
for rep in sof thesofproject/sof; do
docker images --digests "$rep"
done
if tty --quiet; then
SOF_DOCKER_RUN="$SOF_DOCKER_RUN --tty"
fi
set -x
docker run -i -v "${SOF_TOP}":/home/sof/work/sof.git \
-v "${SOF_TOP}":/home/sof/work/sof-bind-mount-DO-NOT-DELETE \
--env CMAKE_BUILD_TYPE \