Compare commits

...
3 Commits
Author SHA1 Message Date
iosullivan 565474ad1b Update README.md 2026-07-18 18:37:43 +10:00
iosullivan ac0eb74551 Update README.md 2026-07-18 18:36:37 +10:00
iosullivan 41b25aab53 Update README.md 2026-07-18 18:34:44 +10:00
+13 -2
View File
@@ -5,7 +5,18 @@ Clone this archive, build and run the image. Pass in your API_KEY and map the ou
git clone https://gitea.iosull.com/iosullivan/cta-archive git clone https://gitea.iosull.com/iosullivan/cta-archive
cd cta-archive cd cta-archive
docker build -t cta-archive . docker build -t cta-archive .
docker run cta-archive --name cta-archive -d -e API_KEY=<APIKey> -v <outputdir>/usr/cta-archive/output/ docker run --name cta-archive -d -e API_KEY=<APIKey> -v <outputdir>:/usr/cta-archive/output/ cta-archive
``` ```
By default, the script runs every 5 minutes to write json file to the <outputdir> above. This can be modified by updating the cronjob file. ## Configuration
By default, the script runs every 5 minutes to write json file to the <outputdir> above. This can be modified by updating the following line in the Dockerfile:
```
RUN echo ' */5 * * * * /usr/local/bin/python3 /usr/cta-archive/archive.py ' >> /usr/cta-archive/cronjob
# Where 5 indicates every 5th minute.
```
## Notes
This script runs as root within the container. It probably shouldn't.