Skip to content

Instantly share code, notes, and snippets.

@asrivascrealytee
Last active March 12, 2019 14:07
Show Gist options
  • Save asrivascrealytee/8cacba963564fa8177348bb8456d84e1 to your computer and use it in GitHub Desktop.
Save asrivascrealytee/8cacba963564fa8177348bb8456d84e1 to your computer and use it in GitHub Desktop.
spawn local nomad consul
default : nomad consul
.PHONY: nomad consul
nomad:
wget https://releases.hashicorp.com/nomad/0.9.0-beta3/nomad_0.9.0-beta3_linux_amd64.zip
unzip nomad_0.9.0-beta3_linux_amd64.zip
consul:
wget https://releases.hashicorp.com/consul/1.4.3/consul_1.4.3_linux_amd64.zip
unzip consul_1.4.3_linux_amd64.zip
launch_consul:
./consul agent -server -client 127.0.0.1 -advertise 127.0.0.1 -data-dir /tmp/consul -ui -bootstrap
launch_nomad:
./nomad agent -config nomad.conf
@asrivascrealytee
Copy link
Author

$ cat nomad.conf

bind_addr = "127.0.0.1"
data_dir  = "/tmp/nomad"

advertise {
  http = "127.0.0.1"
  rpc = "127.0.0.1"
  serf = "127.0.0.1"
}

server {
  enabled          = true
  bootstrap_expect = 1
}

client {
  enabled       = true
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment