Skip to content

Commit

Permalink
ensure directory is created
Browse files Browse the repository at this point in the history
  • Loading branch information
nedvedba committed Sep 3, 2024
1 parent 1a67869 commit 92bcec1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitlab/end_to_end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ end-to-end-core-setup:
- cat $CI_DATAFED_CORE_PUB_KEY > /shared/keys/datafed-core-key.pub
- cat $CI_DATAFED_CORE_PRIV_KEY > /shared/keys/datafed-core-key.priv
- random_string=$(bash -c "cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w "10" | head -n 1")
- mkdir -p $DATAFED_INSTALL_PATH
- ./scripts/generate_metadata_container_scripts.sh --core-image "${REGISTRY}/${IMAGE_TAG}${BRANCH_LOWER}" --docker-tag latest --core-name "core-${BRANCH_LOWER}-${CI_COMMIT_SHORT_SHA}-${random_string}"
- $DATAFED_INSTALL_PATH/scripts/create_datafed_network.sh
- $DATAFED_INSTALL_PATH/scripts/run_core_container.sh
Expand Down Expand Up @@ -138,6 +139,7 @@ end-to-end-ws-setup:
- env
- ./scripts/container_stop.sh -n "ws-" -p
- random_string=$(bash -c "cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w "10" | head -n 1")
- mkdir -p $DATAFED_INSTALL_PATH
- ./scripts/generate_metadata_container_scripts.sh --web-image "${REGISTRY}/${IMAGE_TAG}${BRANCH_LOWER}" --docker-tag latest --web-name "ws-${BRANCH_LOWER}-${CI_COMMIT_SHORT_SHA}-${random_string}"
- $DATAFED_INSTALL_PATH/scripts/create_datafed_network.sh
- $DATAFED_INSTALL_PATH/scripts/run_web_container.sh
Expand Down Expand Up @@ -177,6 +179,7 @@ end-to-end-repo-setup:
- random_string=$(bash -c "cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w "10" | head -n 1")
- cat $CI_DATAFED_CORE_PUB_KEY > /shared/datafed-repo-key.pub
- cat $CI_DATAFED_CORE_PRIV_KEY > /shared/datafed-repo-key.priv
- mkdir -p $DATAFED_INSTALL_PATH
- ./scripts/generate_repo_container_scripts.sh --repo-image "${REGISTRY}/${IMAGE_TAG}${BRANCH_LOWER}" --docker-tag latest --repo-name "repo-${BRANCH_LOWER}-${CI_COMMIT_SHORT_SHA}-${random_string}" --host-collection-mount "$DATAFED_HOST_COLLECTION_MOUNT"
- $DATAFED_INSTALL_PATH/scripts/run_repo_container.sh
- sleep 10
Expand Down Expand Up @@ -219,6 +222,7 @@ end-to-end-gcs-authz-setup:
- random_string=$(bash -c "cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w "10" | head -n 1")
- cat $CI_DATAFED_CORE_PUB_KEY > /shared/datafed-repo-key.pub
- cat $CI_DATAFED_CORE_PRIV_KEY > /shared/datafed-repo-key.priv
- mkdir -p $DATAFED_INSTALL_PATH
- ./scripts/generate_repo_container_scripts.sh --gcs-image "${REGISTRY}/${IMAGE_TAG}${BRANCH_LOWER}" --docker-tag latest --gcs-name "gcs-authz-${BRANCH_LOWER}-${CI_COMMIT_SHORT_SHA}-${random_string}" --host-collection-mount "$DATAFED_HOST_COLLECTION_MOUNT" --ip-address "$CI_DATAFED_GCS_IP" --repo-domain "$CI_DATAFED_REPO_DOMAIN"
- $DATAFED_INSTALL_PATH/scripts/run_gcs_container.sh
- while [ ! -f "${DATAFED_GLOBUS_DIR}/${CI_DATAFED_REPO_ID_AND_DIR}-repo-form.sh" ]; do echo "Waiting for ${DATAFED_GLOBUS_DIR}/${CI_DATAFED_REPO_ID_AND_DIR}-repo-form.sh"; sleep 10; done
Expand Down

0 comments on commit 92bcec1

Please sign in to comment.