Fixes for more universal crontab usage
This commit is contained in:
1 parent
8f77efd226
commit
c4962a671d
4 files changed
+13
-2
No files matched your search
+1
-1
@@ -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" ]
|
||||
@@ -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 @@
|
||||
2 * * * * /usr/cta-archive/archive.py
|
||||
2 * * * * /usr/cta-archive/archive.py > /proc/1/fd/1 2>/proc/1/fd/2
|
||||
Binary file not shown.
Reference in new issue
Block a user