»Nomad

»Builders

Nomad uses Docker images for building, which are generated by these builders:

»nomad (platform)

Deploy to a nomad cluster as a service using docker.

»Interface

»Examples

deploy {
        use "nomad" {
          region = "global"
          datacenter = "dc1"
          auth = {
            username = "username"
            password = "password"
          }
          static_environment = {
            "environment": "production",
            "LOG_LEVEL": "debug"
          }
          service_port = 3000
          replicas = 1
        }
}

»Required Parameters

These parameters are used in the use stanza for this plugin.

»auth

The credentials for docker registry.

  • Type: *nomad.AuthConfig

»Optional Parameters

These parameters are used in the use stanza for this plugin.

»datacenter

The Nomad datacenter to deploy the job to.

  • Type: string
  • Optional
  • Default: dc1

»namespace

The Nomad namespace to deploy the job to.

  • Type: string
  • Optional

»region

The Nomad region to deploy the job to.

  • Type: string
  • Optional
  • Default: global

»replicas

The replica count for the job.

  • Type: int
  • Optional
  • Default: 1

»service_port

TCP port the job is listening on.

  • Type: uint
  • Optional

»static_environment

Environment variables to add to the job.

  • Type: map[string]string
  • Optional

»Output Attributes

Output attributes can be used in your waypoint.hcl as variables via artifact or deploy.

»id

  • Type: string

»name

  • Type: string