Skip to content

Instantly share code, notes, and snippets.

@juanluisbaptiste
Created December 14, 2022 20:58
Show Gist options
  • Save juanluisbaptiste/cbddffedf5e24cd99f5969f5ca723fa8 to your computer and use it in GitHub Desktop.
Save juanluisbaptiste/cbddffedf5e24cd99f5969f5ca723fa8 to your computer and use it in GitHub Desktop.
Example of a static binary Nomad job
job "ping_test" {
datacenters = ["dc1"]
group "ping_test" {
task "ping" {
driver = "raw_exec"
config {
# When running a binary that exists on the host, the path must be absolute/
command = "/usr/bin/ping"
args = ["www.google.com", "-c 1000"]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment