dockercloud-stack.yml
dockercloud-schedule:
image: 'daemonite/dockercloud-schedule:latest'
autoredeploy: true
environment:
- DOCKERCLOUD_APIKEY=***YOUR-API-KEY***
- DOCKERCLOUD_USER=***YOUR-USERNAME***
- NODECLUSTER=***YOUR-NODECLUSTER-UUID***
tags:
- prod
Docker Cloud PaaS scheduling service for staging cluster; Skunkworks.
Designed to restrict the staging node cluster and its services to business hours only; 8am-8pm weekdays (Australian Eastern Standard).
Schedule relies on the awesome Python schedule package created by dbader
. It implements a simple, Pythonic interface to schedule tasks.
To deploy this to DockerCloud, create your own dc-schedule.py
with your
desired configuration. Once you're ready, run:
docker build -t <username>/<image_name> .
docker push <username>/<image_name>
Go to your Docker Cloud account and deploy the Service. Be sure to assign the
global
role to the Service so it can use the Tutum API on your behalf.