Skip to content

Commit 975cba1

Browse files
committed
(CI) don't read from docker on start-up, could contain header
1 parent 728ab3a commit 975cba1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.ci/install.bash

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ then
6969
DOCKER_MOUNT_KNOWN_HOSTS_ARGS="--mount type=bind,source=${HOME}/.ssh/known_hosts,target=/tmp/known_hosts_extra"
7070
fi
7171

72-
DOCKER_HOME=$(docker run --name tue-env --rm "${IMAGE_NAME}:${BRANCH_TAG}" bash -c 'echo "${HOME}"' | tr -d '\r')
72+
# Docker container can show a header on start-up. We don't want to capture it
73+
docker run --detach --tty --name tue-env "${IMAGE_NAME}:${BRANCH_TAG}"
74+
DOCKER_HOME=$(docker exec -t tue-env bash -c 'echo "${HOME}"' | tr -d '\r')
75+
docker stop tue-env &> /dev/null || true
76+
docker rm tue-env &> /dev/null || true
7377

7478
# Make sure the ~/.ccache folder exists
7579
mkdir -p "$HOME"/.ccache

0 commit comments

Comments
 (0)