github.com/hernad/nomad@v1.6.112/e2e/networking/inputs/basic.nomad (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 //e2e:service script=validate.sh 5 job "networking" { 6 datacenters = ["dc1", "dc2"] 7 8 constraint { 9 attribute = "${attr.kernel.name}" 10 value = "linux" 11 } 12 13 group "basic" { 14 network { 15 mode = "bridge" 16 } 17 18 task "sleep" { 19 driver = "docker" 20 config { 21 image = "busybox:1" 22 command = "/bin/sleep" 23 args = ["300"] 24 } 25 } 26 } 27 }