https://github.com/daemonite/dockercloud-schedule
Container for bringing up and down a staging cluster.
https://github.com/daemonite/dockercloud-schedule
docker-cloud python schedule
Last synced: about 2 months ago
JSON representation
Container for bringing up and down a staging cluster.
- Host: GitHub
- URL: https://github.com/daemonite/dockercloud-schedule
- Owner: Daemonite
- License: mit
- Created: 2016-03-27T01:19:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-28T00:41:55.000Z (about 9 years ago)
- Last Synced: 2025-01-19T07:25:14.045Z (3 months ago)
- Topics: docker-cloud, python, schedule
- Language: Python
- Size: 3.91 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Daemonite Schedule
**dockercloud-stack.yml**
```yaml
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.
- h/t https://github.com/alexdebrie/tutum-schedule
- h/t https://github.com/dbader/schedule### Introduction
Designed to restrict the staging node cluster and its services to business hours only; 8am-8pm weekdays (Australian Eastern Standard).
### Usage
Schedule relies on the awesome Python [schedule](https://github.com/dbader/schedule) package created by `dbader`. It implements a simple, Pythonic interface to schedule tasks.
### Deploy
To deploy this to DockerCloud, create your own `dc-schedule.py` with your
desired configuration. Once you're ready, run:docker build -t / .
docker push /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.__