Skip to content

Commit

Permalink
FiX for CI, issue with docker id collision
Browse files Browse the repository at this point in the history
  • Loading branch information
B-a-S committed Oct 8, 2024
1 parent e5cb294 commit e99a5e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .ci/job_matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ steps:
echo "INFO: Start docker containers"
DOCKER_IMAGE_NAME="${UCC_DOCKER_IMAGE_NAME}:${BUILD_ID}"
docker pull ${DOCKER_IMAGE_NAME}
docker create -ti --rm $DOCKER_OPT ${DOCKER_IMAGE_NAME} /bin/bash > ${WORKSPACE}/ucc_docker.id
docker start $(cat ${WORKSPACE}/ucc_docker.id)
docker create -ti --rm $DOCKER_OPT ${DOCKER_IMAGE_NAME} /bin/bash > /tmp/ucc_docker-"${BUILD_TAG}".id
docker start $(cat /tmp/ucc_docker-"${BUILD_TAG}".id)
#============================================================================
- name: Run Coverity
credentialsId: "bc9a18d3-1153-449c-b924-7fc9249c9cc0"
Expand All @@ -85,9 +85,9 @@ steps:
run: |
echo "INFO: Run UCC tests"
hostname
docker exec $(cat ${WORKSPACE}/ucc_docker.id) bash -c "\${SRC_DIR}/ucc/.ci/scripts/run_tests_ucc.sh"
docker exec $(cat /tmp/ucc_docker-"${BUILD_TAG}".id) bash -c "\${SRC_DIR}/ucc/.ci/scripts/run_tests_ucc.sh"
always: |
docker rm --force $(cat ${WORKSPACE}/ucc_docker.id)
docker rm --force $(cat /tmp/ucc_docker-"${BUILD_TAG}".id)
#============================================================================
- name: Run docker containers
agentSelector: "{nodeLabel: 'swx-clx01'}"
Expand Down
2 changes: 1 addition & 1 deletion .ci/scripts/run_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ for HOST in $(cat "$HOSTFILE"); do
ssh "$HOST" "docker run \
${DOCKER_RUN_ARGS} \
${DOCKER_IMAGE_NAME} \
bash -c 'sudo /usr/sbin/sshd -p ${DOCKER_SSH_PORT}; sleep infinity'"
sudo /usr/sbin/sshd -D -p 12345"
echo "INFO: start docker container on $HOST ... DONE"

sleep 5
Expand Down

0 comments on commit e99a5e8

Please sign in to comment.