2023-04-10 15:36:59 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2020-10-12 17:43:04 +00:00
|
|
|
//e2e:service script=validate.sh
|
|
|
|
job "networking" {
|
2020-10-16 14:13:16 +00:00
|
|
|
datacenters = ["dc1", "dc2"]
|
|
|
|
|
|
|
|
constraint {
|
|
|
|
attribute = "${attr.kernel.name}"
|
|
|
|
value = "linux"
|
|
|
|
}
|
|
|
|
|
2020-10-12 17:43:04 +00:00
|
|
|
group "basic" {
|
|
|
|
network {
|
|
|
|
mode = "bridge"
|
|
|
|
}
|
|
|
|
|
|
|
|
task "sleep" {
|
|
|
|
driver = "docker"
|
|
|
|
config {
|
|
|
|
image = "busybox:1"
|
|
|
|
command = "/bin/sleep"
|
2020-10-16 14:13:16 +00:00
|
|
|
args = ["300"]
|
2020-10-12 17:43:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-10-16 14:13:16 +00:00
|
|
|
}
|