GithubHelp home page GithubHelp logo

optionalg / nomadgen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smintz/nomadgen

0.0 2.0 0.0 22 KB

Configuration util in python syntax for Hashicorp's Nomad

License: MIT License

Makefile 2.14% Thrift 57.30% Python 40.56%

nomadgen's Introduction

nomadgen

Craft your Hashicorp's Nomad job specs in python.

Still under development.

Motivation

Nomad is a great job/task scheduler but HCL is pretty limited. This tool will allow you to easily create job specs in python. Its heavily inspired by Facebook's configerator.

Install and run

  1. pip install nomadgen
  2. See JSON output: python jobspec.py
  3. Apply to Nomad: python jobspec.py --run

Examples

  • Redis - See how to use same basic task spec config with different drivers (Docker, rkt, qemu).
  • Hashiapp - Blue/Green deployments made easy.
  • periodic - Periodic task example.
  • common/resources - How to simplfy your API even better.

Contribute:

  1. Clone the repo
  2. Install the thrift compiler
sudo apt-get install thrift-compiler
  1. Install requirements
  sudo pip install -r requirements.txt
  1. Build and install locally
  make
  1. Run the examples/hashiapp.py to validate output
  VAULT_TOKEN="<a vault token>" python examples/hashiapp.py
  1. Run examples/hashiapp.py against nomad agent to run it
  VAULT_TOKEN="<a vault token>" python examples/hashiapp.py --run

License: MIT

nomadgen's People

Contributors

smintz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.