Skip to content

Commit

Permalink
Tidyup, fix on linting error.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Aug 19, 2024
1 parent 49bd27c commit 461a2cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ jobs:
docker exec publisher pywis-pubsub publish --topic cache/a/wis2/my-centre/services/downloader \
--config /pywis-pubsub/config/config.yml \
-i test -u "http://subscriber:5000/openapi"
sleep 5s
echo $(pwd)
ls -R .
sleep 1s
# cat file contents (check the published file has been downloaded)
cat "./data/$(date +'%Y')/$(date +'%m')/$(date +'%d')/cache/a/wis2/my-centre/services/downloader/openapi.bin"
# test deleting subscriptions
Expand All @@ -62,7 +60,7 @@ jobs:
docker exec publisher pywis-pubsub publish --topic cache/a/wis2/my-centre/services/downloader \
--config /pywis-pubsub/config/config.yml \
-i test -u "http://subscriber:5000/metrics"
sleep 5s
sleep 1s
# cat file contents (check the published file has been downloaded)
cat "./data/$(date +'%Y')/$(date +'%m')/$(date +'%d')/cache/a/wis2/my-centre/services/downloader/metrics.bin"
# test deleting subscriptions
Expand Down
4 changes: 1 addition & 3 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/bin/bash
echo "Running as $(whoami)"
echo "Current directory: $(pwd)"
# print the download_dir
echo "Download directory in container: $DOWNLOAD_DIR"

Expand Down Expand Up @@ -28,7 +26,7 @@ fi
# print the config
echo "Config:"
cat /home/wis2downloader/app/config/config.json
echo "session-info"
echo "Initial session info:"
cat "$DOWNLOAD_DIR/.session-info.json"
# activate python env
# shellcheck source=/dev/null
Expand Down

0 comments on commit 461a2cc

Please sign in to comment.