From e18f03e4012f78748bdd784e8b6a048caa594ea1 Mon Sep 17 00:00:00 2001 From: Indradhanush Gupta Date: Wed, 17 Jan 2018 12:09:57 +0530 Subject: [PATCH] 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. --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 877ce395b..0b990fa4a 100644 --- a/README.md +++ b/README.md @@ -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.