Skip to content

Commit

Permalink
updated cron infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
julienchastang committed May 11, 2017
1 parent cef637b commit a47c842
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ RUN $HOME/install_ldm_root_actions.sh
# crontab for scouring
###

COPY crontab /var/spool/cron/ldm
COPY cron/ldm /var/spool/cron/ldm

RUN chown ldm:ldm /var/spool/cron/ldm

Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ In the `etc` directory, you will have to do the usual LDM configuration by editi

#### crontab

The [recommended LDM crontab entries](http://www.unidata.ucar.edu/software/ldm/ldm-current/basics/configuring.html#cron) have been installed inside the container. You can modify the LDM crontab by editing the `crontab` file. This `crontab` file is mounted outside the container with `docker-compose.yml`. For the new crontab to take effect, you will have to restart the container with

docker restart <container ID>

Where the container ID is obtained with `docker ps`. See below for more information about running the LDM Docker container.
The [recommended LDM crontab entries](http://www.unidata.ucar.edu/software/ldm/ldm-current/basics/configuring.html#cron) have been installed inside the container. You can modify the LDM crontab by editing the `cron/ldm` file. This file can be mounted over `/var/spool/cron/ldm` with `docker-compose.yml`. See the `docker-compose.yml` file herein for an example.

### Upstream Data Feed from Unidata or Elsewhere

Expand Down
2 changes: 1 addition & 1 deletion crontab → cron/ldm
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ MAILTO=""
0 0 * * 0 bash -l -c 'ldmadmin newmetrics'

# check the LDM
0,15,30,45 * * * * bash -l -c 'ldmadmin check >/dev/null'
0,15,30,45 * * * * bash -l -c 'ldmadmin check >/dev/null'
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ldm:
- ./data/:/home/ldm/var/data/
- ./data/:/home/ldm/var/queues/
- ./logs/:/home/ldm/var/logs/
- ./cron/:/var/spool/cron/
ports:
- "388:388"
ulimits:
Expand Down

0 comments on commit a47c842

Please sign in to comment.