Created
June 18, 2021 12:52
-
-
Save xeroc/8e27577265018e25dfdce4783a6774d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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