Skip to content

Commit

Permalink
Updating tests for wis2downloader.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Aug 20, 2024
1 parent 4db8129 commit 36060d8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/tests-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,20 @@ jobs:
docker version
docker compose version
python3 -V
- name: setup wis2downloader
run: |
# make sure user (uid=12135) exists and add to group docker
sudo useradd -l -u 12135 wis2downloader
sudo usermod -aG docker wis2downloader
# Add env parameters to tests/test.env
echo "DOCKER_GID=$(getent group docker | cut -d: -f3)" >> tests/test.env
echo "DOWNLOADER_ID=12135" >> tests/test.env
- name: setup wis2box configuration, replace localhost with IP on host 📦
run: |
export IP=$(hostname -I | awk '{print $1}')
cp tests/test.env wis2box.env
sed -i "s/localhost/$IP/g" wis2box.env
# add docker uid to env and user for wis2downloader
cat wis2box.env
python3 wis2box-ctl.py config
- name: build wis2box
Expand Down

0 comments on commit 36060d8

Please sign in to comment.