An open API service indexing awesome lists of open source software.

https://github.com/githubfoam/nomad-sandbox

Nomad Consul Docker Vagrant pipeline
https://github.com/githubfoam/nomad-sandbox

consul docker nomad pipeline vagrant

Last synced: 11 months ago
JSON representation

Nomad Consul Docker Vagrant pipeline

Awesome Lists containing this project

README

          

Nomad Consul Docker Redis Vagrant Sandbox

Travis (.com) :
[![Build Status](https://travis-ci.com/githubfoam/nomad-sandbox.svg?branch=master)](https://travis-ci.com/githubfoam/nomad-sandbox)

~~~~
# This means that this server will manage state and make scheduling decisions but will not run any tasks
- nomad agent -config /vagrant/server.hcl &>/dev/null &

# start an agent in server only mode and have it elected as a leader
- nomad server members

# view the members of the gossip ring
- nomad agent -config /vagrant/client1.hcl &>/dev/null &
- nomad agent -config /vagrant/client2.hcl &>/dev/null &

# need some agents to run tasks
- nomad node status

# see the registered nodes of the Nomad cluster
- nomad job init

# use the job init command which generates a skeleton job file
# a single task 'redis' which is using the Docker driver to run the task
- nomad job run example.nomad

# register example job
- nomad status example

# inspect the status of example job
- curl -Is http://localhost:4646 | head -n 1

# Opening the Web UI
# hosted at the same address and port as the Nomad HTTP API under the /ui namespace.
# http://localhost:4646/ui/clients
# HTTP/1.1 307 Temporary Redirect

~~~~

~~~~

KVM/Installation
https://help.ubuntu.com/community/KVM/Installation

Jobs
https://learn.hashicorp.com/nomad/getting-started/jobs

~~~~