浏览代码

utils/docker-run: hide docker run command

Since this is a helper script there is not much reason to show the
command that's been issued. Furthermore, the incantation has been
slightly extended since the script was introduced.

The only interesting reason to print the command is to know what image
it is being spawned into. However, this is prominently displayed by
docker the first time the script is run, as it can't find the image
locally and has to fetch it first. Afterwards, users can still use
'docker image ls' to see what images they have locally.

So let's remove 'set -x' before running docker.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
[yann.morin.1998@free.fr: reword and expand commit log]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Giulio Benetti 3 年之前
父节点
当前提交
cc9470c2d8
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      utils/docker-run

+ 0 - 1
utils/docker-run

@@ -6,7 +6,6 @@ MAIN_DIR=$(readlink -f "${DIR}/..")
 IMAGE=$(grep ^image: "${MAIN_DIR}/.gitlab-ci.yml" | \
 IMAGE=$(grep ^image: "${MAIN_DIR}/.gitlab-ci.yml" | \
         sed -e 's,^image: ,,g' | sed -e 's,\$CI_REGISTRY,registry.gitlab.com,g')
         sed -e 's,^image: ,,g' | sed -e 's,\$CI_REGISTRY,registry.gitlab.com,g')
 
 
-set -x
 exec docker run -it --rm \
 exec docker run -it --rm \
     --user $(id -u):$(id -g) \
     --user $(id -u):$(id -g) \
     --mount "type=bind,src=${MAIN_DIR},dst=${MAIN_DIR}" \
     --mount "type=bind,src=${MAIN_DIR},dst=${MAIN_DIR}" \