Giter VIP home page Giter VIP logo

nomadfiles's Introduction

nomadfiles

Continuous delivery examples for Nomad jobs.

This is a repository to hold the various Nomad job files I create and use. Included is also the corresponding Jenkinsfile for automated deployments and the Jenkins JobDSL file for configuring the Jenkins job.

This project sacrifices DRY in order to make the structure and usage clearer.

Levant

This example repository is configured to use Levant, an open source templating and deployment tool for HashiCorp Nomad jobs that provides realtime feedback and detailed failure messages upon deployment issues. Levant was written because Nomad does not support some important templating and deployment features, and this repository represents a simple way to use the tool in a large scale, multi-environment setup.

Directory Structure

The directory structure is designed to be easy to navigate, yet highly descriptive of your Nomad deployments throughout you environments.

Jobs Directory

The /jobs holds the Nomad job specification and deployment scripts. The directory is split into sub-directories named by the Nomad job.

  • job-name.groovy The .groovy files are Jenkins JobDSL which can be used to configure the deployment job correctly and in an automated, codified manner. Details about the JobDSL plugin and basic usage information can be found on the GitHub page.

  • job-name.nomad The Nomad job specification template file.

  • Jenkinsfile A Jenkinsfile is a text definition of the unit of work which the Jenkins deployment job will undertake.

Variables Directory

The /variables directory holds environment specific variables for each Nomad job. The directory can be split to better suit your needs, in this example, it is split by environment like /variables/prod. Within the subdirectory sits the variables files which correspond to a job that is held within the /jobs directory.

The variables configured for the nonprod environment should work in a local development setup when Nomad is run with nomad agent -dev.

Util Directory

The /util directory contains utility scripts which can be used from CI infrastructure to run common tasks on the desired job such as stop.

Contributing

Any contributions are much appreciated. Please submit Pull Requests and Issues to the nomadfiles project on GitHub.

nomadfiles's People

Contributors

jrasell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nomadfiles's Issues

Update all job to use Nomad 0.6.0 deployment features

All jobs should be updated to at least perform auto_revert and rolling deploys based on the Nomad 0.6.0 release features. It would also be ideal to have examples of jobs which utilise both rolling and more complex canary based deployment techniques.

Add Traefik Nomad job file

In order to provide an alternative to Fabio as a routing layer, a Traekif Nomad job file should be added with appropriate deployment files.

Add stop utility job

Add utility job that has the ability to job a user specified job on the cluster.

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.