open-nomad/dev/docker-clients
Seth Hoenig 889e7ddd0c build: use hashicorp hclfmt
We have been using fatih/hclfmt which is long abandoned. Instead, switch
to HashiCorp's own hclfmt implementation. There are some trivial changes in
behavior around whitespace.
2020-05-24 18:31:57 -05:00
..
build spelling: hashicorp 2018-03-11 18:11:14 +00:00
README.md Rename 2017-08-02 13:33:46 -07:00
client.nomad build: use hashicorp hclfmt 2020-05-24 18:31:57 -05:00
docker-privileged.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
persistent.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00

README.md

This package provides a convenient way to create a local Nomad cluster for testing and development.

Server

In order to create the cluster, first start the Nomad agent as follows from this directory:

Non-persistent server

nomad agent -dev -config docker-privileged.hcl

The configuration allows the Docker driver to start containers with Privileged parameter.

Persistent Server

To start a server that can be shutdown and restarted run the following:

nomad agent -config persistent.hcl

Clients

Next, modify the count of client.nomad to run the desired number of Nomad clients and then run the job.

nomad run client.nomad

After a few seconds, you will be able to run:

nomad node-status

And see the clients have started up.