Skip to content

Commit

Permalink
adding comanage cron container
Browse files Browse the repository at this point in the history
  • Loading branch information
chubing committed Dec 8, 2020
1 parent 13acc4b commit 421ddc1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Workbench/comanage_cron/container_files/system/root-crontab
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* * * * * /usr/local/bin/runcomangejob.sh 1
* * * * * /usr/local/bin/runcomangejob.sh 2
# Deprecated job to run expirations, syncorgsources, and groupvalidity tasks (until Registry v4.0.0)
0 * * * * /usr/local/bin/runcomangejob.sh
12 changes: 12 additions & 0 deletions Workbench/comanage_cron/container_files/system/runcomangejob.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

if [ "$#" -ne 1 ];
then
echo Executing job to run expirations, syncorgsources, and groupvalidity tasks
cd /srv/comanage-registry/app && Console/cake job -q
exit
fi

echo Executing job shell for CO number $1
cd /srv/comanage-registry/app && Console/cake job -q -r -c $1
echo Done executing job shell for CO number $1
11 changes: 11 additions & 0 deletions Workbench/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,17 @@ services:
- source: c_sp-key.pem
target: shib_sp-key.pem

comanage-cron:
build:
context: ./comanage_cron/
args:
- CSPHOSTNAME
environment:
- ENV
- USERTOKEN
networks:
- net

networks:
net:
driver: bridge
Expand Down

0 comments on commit 421ddc1

Please sign in to comment.