summaryrefslogtreecommitdiff
path: root/start-container-docker.sh
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2019-08-12 12:10:38 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2019-08-12 14:00:47 +0000
commitce73fcdf4f17c928b37ba22a401c3d1d89ed73bd (patch)
tree81f439d6b1c88b35f8b4cb3bf245ede01c756d19 /start-container-docker.sh
parent2e29b7cce7c6a27ed57f0610f1ffa564e91d77b6 (diff)
start-container-docker.sh: Make ssh verbose in more cases
to help catch random errors Change-Id: Ibb32a8b93de85baa8ac342f5d573b1cbcfee26db
Diffstat (limited to 'start-container-docker.sh')
-rwxr-xr-xstart-container-docker.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/start-container-docker.sh b/start-container-docker.sh
index 0e8b6d51..b61d15b8 100755
--- a/start-container-docker.sh
+++ b/start-container-docker.sh
@@ -210,7 +210,7 @@ fi
image=linaro/ci-${container_arch}-tcwg-${task}-ubuntu:${distro}
-DOCKER="ssh $session_host docker"
+DOCKER="ssh -v $session_host docker"
$DOCKER pull $image || ssh_error $?
SECURITY="--cap-add=SYS_PTRACE"
@@ -224,7 +224,7 @@ SECURITY="--cap-add=SYS_PTRACE"
SECURITY="${SECURITY} --security-opt seccomp:unconfined"
# Reserve resources according to weight and task
-nproc=$(ssh $session_host nproc --all)
+nproc=$(ssh -v $session_host nproc --all)
memory=$(print_memory_limit "$task" "$weight" "$nproc")
pids=$(print_pids_limit "$task" "$weight")
cpus=$(print_cpu_shares "$task" "$weight")
@@ -241,7 +241,7 @@ for bind_mount in "${bind_mounts[@]}"; do
# If a host bind-mount dir doesn't exist, then docker creates it on
# the host with root:root owner, which can't be removed by cleanup job.
dir="${bind_mount%%:*}"
- ssh $session_host mkdir -p "$dir"
+ ssh -v $session_host mkdir -p "$dir"
docker_dir=$(print_docker_path "$dir")
bind_mounts_opt=("${bind_mounts_opt[@]}" "-v" "$docker_dir:$bind_mount")