Skip to content

Instantly share code, notes, and snippets.

@schmichael
Created November 18, 2020 17:29
Show Gist options
  • Save schmichael/2a9132537956c6c764461bb59671c45c to your computer and use it in GitHub Desktop.
Save schmichael/2a9132537956c6c764461bb59671c45c to your computer and use it in GitHub Desktop.
job "example" {
type = "service"
datacenters = ["dc1"]
group "cache" {
task "redis" {
driver = "raw_exec"
config {
command = "/bin/bash"
args = ["-c", "echo ${NOMAD_TASK_DIR} && sleep 100000"]
}
artifact {
source = "https://schmichael.com"
destination = "local/config/index.html"
}
template {
source = "${NOMAD_TASK_DIR}/config/index.html"
destination = "${NOMAD_SECRETS_DIR}/config/foo"
}
resources {
cpu = 500
memory = 256
}
}
}
}
@shizzgar
Copy link

Hello!)
Could you add please example job spec for raw_exec task driver with consul connect stanza?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment