Skip to content

Commit

Permalink
Sleep for 10 seconds before checking if container is still running
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaSBrown committed Feb 11, 2024
1 parent 81c0a27 commit c60c64f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ end-to-end-ws-setup:
-v "${CI_DATAFED_WEB_KEY_PATH}:/datafed/install/keys/${KEY_FILE_NAME}"
-t "${REGISTRY}/${IMAGE_TAG}${BRANCH_LOWER}"
</dev/null &>/dev/null &
- sleep 10
- ./scripts/container_run_test.sh -e -c "1" -t "${REGISTRY}/${IMAGE_TAG}${BRANCH_LOWER}"

# Note here we use network=host to run the docker container this is
Expand Down Expand Up @@ -413,16 +414,19 @@ end-to-end-core-setup:
-v "$CI_DATAFED_CORE_PRIV_KEY":/source/install/keys/datafed-core-key.priv
-t "${REGISTRY}/${IMAGE_TAG}${BRANCH_LOWER}"
</dev/null &>/dev/null &
- sleep 10
- ./scripts/container_run_test.sh -e -c "1" -t "${REGISTRY}/${IMAGE_TAG}${BRANCH_LOWER}"


# Repo server currently will crash on startup if it cannot connect to the core
# server.
end-to-end-repo-setup:
variables:
IMAGE_TAG: "datafed/repo-"
GIT_STRATEGY: clone
HOST_LOG_FILE_PATH: "$CI_PROJECT_DIR/logs"
CONTAINER_LOG_FILE_PATH: "/datafed/logs"
stage: end-to-end-setup
needs: ["end-to-end-core-setup"]
tags:
- ci-datafed-globus
- docker
Expand All @@ -448,6 +452,7 @@ end-to-end-repo-setup:
-v "$CI_DATAFED_REPO_PRIV_KEY":/source/install/keys/datafed-repo-key.priv
-t "${REGISTRY}/${IMAGE_TAG}${BRANCH_LOWER}"
</dev/null &>/dev/null &
- sleep 10
- ./scripts/container_run_test.sh -e -c "1" -t "${REGISTRY}/${IMAGE_TAG}${BRANCH_LOWER}"

end-to-end-gcs-authz-setup:
Expand Down Expand Up @@ -482,6 +487,7 @@ end-to-end-gcs-authz-setup:
-v "$CI_DATAFED_REPO_PRIV_KEY":/source/install/keys/datafed-repo-key.priv
-t "${REGISTRY}/${IMAGE_TAG}${BRANCH_LOWER}"
</dev/null &>/dev/null &
- sleep 10
- ./scripts/container_run_test.sh -e -c "1" -t "${REGISTRY}/${IMAGE_TAG}${BRANCH_LOWER}"

end-to-end-arango-setup:
Expand Down

0 comments on commit c60c64f

Please sign in to comment.