-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/AAE-26244-ecr-image-url-as-output-…
…value
- Loading branch information
Showing
47 changed files
with
385 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 5 additions & 74 deletions
79
.github/actions/dbp-charts/verify-compose/docker_compose.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,15 @@ | ||
#!/bin/bash -e | ||
|
||
COMPOSE_FILE=$(basename $COMPOSE_FILE_PATH) | ||
COMPOSE_PATH=$(dirname $COMPOSE_FILE_PATH) | ||
COMPOSE_BIN="docker compose" | ||
alf_port=8080 | ||
|
||
cd "$COMPOSE_PATH" || { | ||
echo "Error: docker compose dir not found" | ||
exit 1 | ||
} | ||
docker info | ||
$COMPOSE_BIN version | ||
$COMPOSE_BIN -f "${COMPOSE_FILE}" config | ||
echo "Starting Alfresco in docker compose" | ||
$COMPOSE_BIN ps | ||
$COMPOSE_BIN -f "${COMPOSE_FILE_PATH}" ps | ||
if [ "$COMPOSE_PULL" = "true" ]; then | ||
$COMPOSE_BIN -f "${COMPOSE_FILE}" pull --quiet | ||
$COMPOSE_BIN -f "${COMPOSE_FILE_PATH}" pull --quiet | ||
fi | ||
export COMPOSE_HTTP_TIMEOUT=120 | ||
$COMPOSE_BIN -f "${COMPOSE_FILE}" up -d --quiet-pull | ||
$COMPOSE_BIN -f "${COMPOSE_FILE_PATH}" up -d --quiet-pull --wait | ||
|
||
WAIT_INTERVAL=1 | ||
COUNTER=0 | ||
TIMEOUT=300 | ||
t0=$(date +%s) | ||
echo "Waiting for alfresco to start" | ||
response=$(curl --write-out '%{http_code}' --output /dev/null --silent http://localhost:"${alf_port}"/alfresco/ || true) | ||
until [[ "200" -eq "${response}" ]] || [[ "${COUNTER}" -eq "${TIMEOUT}" ]]; do | ||
printf '.' | ||
sleep "${WAIT_INTERVAL}" | ||
COUNTER=$((COUNTER + WAIT_INTERVAL)) | ||
response=$(curl --write-out '%{http_code}' --output /dev/null --silent http://localhost:"${alf_port}"/alfresco/ || true) | ||
done | ||
if (("${COUNTER}" < "${TIMEOUT}")); then | ||
t1=$(date +%s) | ||
delta=$(((t1 - t0) / 60)) | ||
echo "Alfresco Started in ${delta} minutes" | ||
else | ||
echo "Waited ${COUNTER} seconds" | ||
echo "Alfresco could not start in time." | ||
echo "The last response code from /alfresco/ was ${response}" | ||
exit 1 | ||
fi | ||
|
||
COUNTER=0 | ||
echo "Waiting for share to start" | ||
response=$(curl --write-out '%{http_code}' --output /dev/null --silent http://localhost:8080/share/page || true) | ||
until [[ "200" -eq "${response}" ]] || [[ "${COUNTER}" -eq "${TIMEOUT}" ]]; do | ||
printf '.' | ||
sleep "${WAIT_INTERVAL}" | ||
COUNTER=$((COUNTER + WAIT_INTERVAL)) | ||
response=$(curl --write-out '%{http_code}' --output /dev/null --silent http://localhost:8080/share/page || true) | ||
done | ||
if (("${COUNTER}" < "${TIMEOUT}")); then | ||
t1=$(date +%s) | ||
delta=$(((t1 - t0) / 60)) | ||
echo "Share Started in ${delta} minutes" | ||
else | ||
echo "Waited ${COUNTER} seconds" | ||
echo "Share could not start in time." | ||
echo "The last response code from /share/ was ${response}" | ||
exit 1 | ||
fi | ||
echo "All services are up and running... starting postman tests" | ||
|
||
COUNTER=0 | ||
TIMEOUT=20 | ||
echo "Waiting more time for SOLR" | ||
response=$(curl --write-out '%{http_code}' --user admin:admin --output /dev/null --silent http://localhost:"${alf_port}"/alfresco/s/api/solrstats || true) | ||
until [[ "200" -eq "${response}" ]] || [[ "${COUNTER}" -eq "${TIMEOUT}" ]]; do | ||
printf '.' | ||
sleep "${WAIT_INTERVAL}" | ||
COUNTER=$((COUNTER + WAIT_INTERVAL)) | ||
response=$(curl --write-out '%{http_code}' --user admin:admin --output /dev/null --silent http://localhost:"${alf_port}"/alfresco/s/api/solrstats || true) | ||
done | ||
|
||
cd .. | ||
docker run -a STDOUT --volume "${PWD}"/test/postman/docker-compose:/etc/newman --network host postman/newman:5.3 run "acs-test-docker-compose-collection.json" --global-var "protocol=http" --global-var "url=localhost:8080" | ||
retVal=$? | ||
if [ "${retVal}" -ne 0 ]; then | ||
# show logs | ||
$COMPOSE_BIN logs --no-color | ||
exit 1 | ||
fi | ||
docker run -a STDOUT --volume "$(realpath "${POSTMAN_PATH}"):/etc/newman" --network host postman/newman:5.3 run "${POSTMAN_JSON}" --global-var "protocol=http" --global-var "url=localhost:8080" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.