mirror of https://github.com/thesofproject/sof.git
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:
parent
308a24a92b
commit
f79d2341af
|
@ -16,14 +16,16 @@ set -e
|
||||||
|
|
||||||
SOF_TOP="$(cd "$(dirname "$0")"/.. && /bin/pwd)"
|
SOF_TOP="$(cd "$(dirname "$0")"/.. && /bin/pwd)"
|
||||||
|
|
||||||
# Log the container version. Especially useful when forgetting to update
|
# Log container versions
|
||||||
# the 'sof' shortcut.
|
for rep in sof thesofproject/sof; do
|
||||||
docker images sof
|
docker images --digests "$rep"
|
||||||
|
done
|
||||||
|
|
||||||
if tty --quiet; then
|
if tty --quiet; then
|
||||||
SOF_DOCKER_RUN="$SOF_DOCKER_RUN --tty"
|
SOF_DOCKER_RUN="$SOF_DOCKER_RUN --tty"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -x
|
||||||
docker run -i -v "${SOF_TOP}":/home/sof/work/sof.git \
|
docker run -i -v "${SOF_TOP}":/home/sof/work/sof.git \
|
||||||
-v "${SOF_TOP}":/home/sof/work/sof-bind-mount-DO-NOT-DELETE \
|
-v "${SOF_TOP}":/home/sof/work/sof-bind-mount-DO-NOT-DELETE \
|
||||||
--env CMAKE_BUILD_TYPE \
|
--env CMAKE_BUILD_TYPE \
|
||||||
|
|
Loading…
Reference in New Issue