Docs: Add command consul agent & fix nomad command

`sudo` is required to enable other drivers like rkt and java while the
`-dev` flag enables the agent to run in a standalone mode.
This commit is contained in:
Indradhanush Gupta
2018-01-17 12:09:57 +05:30
parent 96e00a57eb
commit e18f03e401

View File

@@ -102,9 +102,18 @@ Nomad binary in the `bin` and `$GOPATH/bin` folders:
```sh
$ make dev
...
$ bin/nomad
...
```
Optionally run Consul to enable service discovery and health checks:
```sh
$ sudo consul agent -dev
```
And finally start the nomad agent:
```sh
$ sudo bin/nomad agent -dev
```
If the Nomad UI is desired in the development version, run `make dev-ui`. This will build the UI from source and compile it into the dev binary.