All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s
23 lines
475 B
HCL
23 lines
475 B
HCL
job "check-firewall" {
|
|
datacenters = ["dc1"]
|
|
type = "batch"
|
|
|
|
group "check" {
|
|
count = 1
|
|
constraint {
|
|
attribute = "${attr.unique.hostname}"
|
|
value = "odroid7"
|
|
}
|
|
|
|
task "check" {
|
|
driver = "docker"
|
|
config {
|
|
image = "busybox"
|
|
network_mode = "host"
|
|
command = "sh"
|
|
args = ["-c", "echo 'UFW is not installed in busybox, checking port 20202 from outside'"]
|
|
}
|
|
}
|
|
}
|
|
}
|