GithubHelp home page GithubHelp logo

nomad-compose's Introduction

nomad-compose

Use docker-compose yml files as input for Hashicorp's nomad

This script converts docker-compose yml files to nomad job templates

Usage: ./compose2nomad compose.yml [servicename]

This script resolves extends stanzas. You can add specific labels the compose file to influence some nomad-specific options, such as count, constraints, etc. The implementation depends on the setting. Examples:

    nomad.count: 1
    nomad.datacenters:
      - mydc
    nomad.constraints._cluster._type: constraint
    nomad.constraints._cluster.attribute: '${meta.role}'
    nomad.constraints._cluster.value: myrole
    nomad.constraints._distinct._type: constraint
    nomad.constraints._distinct.distinct_hosts: true

TODO:

  • currently only a single task is generated (while both compose and nomad support multiple tasks in a single file)
  • add more nomad-specific configuration options

nomad-compose's People

Contributors

jovandeginste avatar

Stargazers

Astor Palmeira avatar Roman avatar Josh avatar FZürker avatar Eric Platon avatar Cheng JIANG avatar Ole avatar  avatar  avatar Arto Bendiken avatar Petros Kolyvas avatar Jonathan Hult avatar Garett Dunn avatar Jevgenijs Ratobilskis avatar Alexander Trauzzi avatar David McKeone avatar  avatar Justin Campbell avatar Krzysztof Wilczyński avatar Jonathan Zalger avatar  avatar Ryan Baxter avatar Tom Lankhorst avatar  avatar Daniel Ransom avatar Christian Winther avatar John Whitman avatar p_b avatar Konstantin Novakovskii avatar  avatar Mayeu avatar Nick Sweeting avatar Emile Bosch avatar Julian Pistorius avatar Jakub Janarek avatar Michael Jett avatar  avatar Peter Jacobs avatar Camilo Aguilar avatar  avatar digger18 avatar Shikhir Arora avatar  avatar Tim Cowlishaw avatar Igor Anić avatar Raghav avatar Denys Pidlisnyi avatar

Watchers

Jean-François Roche avatar Bruce Lau avatar  avatar Caio Clementi avatar

nomad-compose's Issues

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.