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 43dc7a3 commit 8d51905
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Run CLI tests
working-directory: docker/tests
run: |
sleep 30s
sleep 10s
docker logs subscriber
echo "Testing adding subscription"
docker ps
Expand Down
5 changes: 2 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,13 @@ RUN chown -R wis2downloader:wis2 /home/wis2downloader/app && \
chmod 600 /home/wis2downloader/app/clean_downloads.cron && \
usermod -aG sudo wis2downloader

ENTRYPOINT [ "/home/wis2downloader/app/entrypoint.sh" ]

USER wis2downloader
# Set the working directory to /app
WORKDIR /home/wis2downloader
RUN crontab ./app/clean_downloads.cron

USER root
ENTRYPOINT [ "/home/wis2downloader/app/entrypoint.sh" ]

# Add healthcheck
HEALTHCHECK --interval=1m --timeout=3s \
CMD curl -f http://localhost:5000/subscriptions || exit 1
Expand Down

0 comments on commit 8d51905

Please sign in to comment.