Skip to content

Instantly share code, notes, and snippets.

@xeroc
Created June 18, 2021 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xeroc/8e27577265018e25dfdce4783a6774d4 to your computer and use it in GitHub Desktop.
Save xeroc/8e27577265018e25dfdce4783a6774d4 to your computer and use it in GitHub Desktop.
job "bash" {
type = "service"
datacenters = ["de1"]
group "bash" {
count = 1
network {
mode = "bridge"
}
ephemeral_disk {
size = "5000"
sticky = true
migrate = false
}
task "bash" {
driver = "exec"
config {
command = "sh"
args = ["-c", "chown -R 1001:1001 /alloc/data"]
}
resources {
cpu = 100
memory = 100
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment