Run a crontab like scheduler as a (16MB) microservice on Cloud foundry. It knows how to trigger http
, amqp
, cartel
and iron
events.
Uses bound services for credentials retrieval.
Pick one and replace where you see HOST_HERE
Use the below template manifest and fill in above values, save as manifest.yml
applications:
- name: cf-crontab
disk_quota: 128M
docker:
image: loafoe/cf-standalone:0.0.8
env:
CF_CRONTAB_SECRET: PASSWORD_HERE
instances: 1
memory: 16M
routes:
- route: HOST_HERE.cloud.pcftest.com
Save the above template with your values and then deploy:
cf push -f manifest.yml
For now you can only inject the config via the ENV:
echo -n 'username:password'|base64
You define tasks using the below JSON. A more detailed description and of all supported and planned tasks will follow soon. For now we have http
:
[
{
"schedule": "*/5 * * * * *",
"job": {
"type": "http",
"command": {
"headers": {
"Authorization": "Basic BASE64"
},
"body": "{ \"countToProcess\": 0, \"serverName\": \"string\"}",
"method": "POST",
"url": "https://dm-sftp-poller.eu-west.philips-healthsuite.com/poll"
}
},
"entryID": 1
}
]
Add above JSON struct to CF_CRONTAB_CONFIG
environment variable
License is MIT