Update README.md
This commit is contained in:
1 parent
ac0eb74551
commit
565474ad1b
1 file changed
+6
@@ -8,9 +8,15 @@ 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.
|
||||
Reference in new issue
Block a user