Skip to content

Commit

Permalink
print logs too
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Aug 13, 2024
1 parent ae9c27b commit f1e23a5
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions tests/hydrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

set -eou pipefail

# install workbench
git clone https://github.com/mjordan/islandora_workbench
cd islandora_workbench
docker build -t workbench:latest .
docker pull jcorall/islandora-workbench:latest

# setup a sample ingest
git clone https://github.com/DonRichards/islandora_workbench_demo_content
Expand All @@ -22,10 +19,22 @@ docker run \
--network="host" \
-v "$(pwd)":/workbench \
--name wb \
workbench:latest \
jcorall/islandora-workbench:latest \
bash -lc "python3 workbench --config /workbench/islandora_workbench_demo_content/example_content.yml"

# Wait for derivatives to be created
sleep 30

docker exec "$DRUPAL_CONTAINER" drush sqlq "SELECT filemime, COUNT(*) FROM file_managed GROUP BY filemime ORDER BY COUNT(*) DESC"
docker exec "$DRUPAL_CONTAINER" drush sqlq "SELECT filemime, COUNT(*) FROM file_managed GROUP BY filemime ORDER BY COUNT(*)"

SERVICES=(
"alpaca"
"crayfits"
"houdini"
"homarus"
"hypercube"
)
for SERVICE in "${SERVICES[@]}"; do
CONTAINER=$(docker container ls --format "{{ .Names }}" | grep "$SERVICE")
docker logs "$CONTAINER"
done

0 comments on commit f1e23a5

Please sign in to comment.