Fixes for more universal crontab usage

This commit is contained in:
iosullivan committed 2026-07-18 14:44:42 +08:00
1 parent 8f77efd226
commit c4962a671d
4 files changed
+13 -2

No files matched your search

+1 -1
View File
@@ -26,4 +26,4 @@ RUN crontab /etc/cron.d/cronjob
RUN touch /var/log/cron.log
# Run the command on container startup
CMD cron && tail -f /var/log/cron.log
CMD ["cron","-f" ]
+11
View File
@@ -0,0 +1,11 @@
# Simple tool for archiving CTA data to flat files
## Installation
Clone this archive, build and run the image. Pass in your API_KEY and map the output directory to your folder.
```
git clone https://https://gitea.iosull.com/iosullivan/cta-archive
cd cta-archive
docker build -t cta-archive .
docker run cta-archive -d -e API_KEY=<APIKey> -v <outputdir>/usr/cta-archive/output/
```
By default, the script runs every 5 minutes to log. This can be modified by updating the cronjob file.
+1 -1
View File
@@ -1 +1 @@
2 * * * * /usr/cta-archive/archive.py
2 * * * * /usr/cta-archive/archive.py > /proc/1/fd/1 2>/proc/1/fd/2
BIN
View File
Binary file not shown.