Skip to content

Commit

Permalink
Testing permissions and uid/gid.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Aug 19, 2024
1 parent 0f4702f commit 3f85f64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ jobs:
working-directory: docker/tests
run: |
docker compose build
# make sure data directory exists has correct permissions
mkdir ./data
sudo chown -R "$(id -g)":"$(id -u)" ./data
- name: Run containers
working-directory: docker/tests
run: |
docker compose up -d
- name: Run CLI tests
working-directory: docker/tests
run: |
# make sure data directory has correct permissions
sudo chown -R 1001:1001 ./data
# test adding a subscription
docker exec subscriber bash -c "source /home/wis2downloader/.venv/bin/activate && wis2downloader add-subscription --topic cache/a/wis2/+/services/#"
# test listing subscriptions
Expand Down
2 changes: 1 addition & 1 deletion docker/tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ services:
- broker
volumes:
- ./data:/home/wis2downloader/app/data/downloads
user: 1001:1001
user: $GID:$UID

0 comments on commit 3f85f64

Please sign in to comment.