Files
cta-archive/README.md
T
2026-07-18 18:37:43 +10:00

22 lines
807 B
Markdown

# 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://gitea.iosull.com/iosullivan/cta-archive
cd cta-archive
docker build -t cta-archive .
docker run --name cta-archive -d -e API_KEY=<APIKey> -v <outputdir>:/usr/cta-archive/output/ cta-archive
```
## 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.