Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielwpz/deploy-service
A service that handles deployment of nomad jobs.
https://github.com/danielwpz/deploy-service
Last synced: 14 days ago
JSON representation
A service that handles deployment of nomad jobs.
- Host: GitHub
- URL: https://github.com/danielwpz/deploy-service
- Owner: danielwpz
- License: gpl-3.0
- Created: 2018-03-19T18:36:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T00:51:18.000Z (almost 2 years ago)
- Last Synced: 2023-08-02T20:13:50.641Z (over 1 year ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deploy-service
A service that handles deployment of nomad jobs.# Run locally
*You'll need a pair of AWS credentials that has access to your SQS deploy queue, and set them in environment variables*
- In another terminal window `nomad agent -dev`
- `pip3 install -r requirements.txt`
- `python3 -u main.py`# How
This services keeps fetching messages from a AWS SQS queue for new deployment message.
The message should be in the JSON form: `{ "action": "deploy", "definition": NOMAD_JSON_DEFINITION }`
(you can get the `NOMAD_JSON_DEFINITION` by running `nomad run -output job.hcl`)
Once a message is received, it will try to submit the job to local nomad cluster and delete the message from SQS.