github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/dev/docker-dev-env/epic.nomad (about) 1 # There can only be a single job definition per file. This job is named 2 # "example" so it will create a job with the ID and Name "example". 3 4 # The "job" stanza is the top-most configuration option in the job 5 # specification. A job is a declarative specification of tasks that Nomad 6 # should run. Jobs have a globally unique name, one or many task groups, which 7 # are themselves collections of one or many tasks. 8 # 9 # For more information and examples on the "job" stanza, please see 10 # the online documentation at: 11 # 12 # https://www.nomadproject.io/docs/job-specification/job.html 13 # 14 job "example8" { 15 16 datacenters = ["dc1"] 17 18 type = "batch" 19 20 group "cache" { 21 # The "count" parameter specifies the number of the task groups that should 22 restart { 23 attempts = 0 24 delay = "30s" 25 mode = "fail" 26 } 27 28 task "miau" { 29 # The "driver" parameter specifies the task driver that should be used to 30 # run the task. 31 driver = "raw_exec" 32 33 config { 34 command = "/system/bin/curl" 35 args = ["-d", "i am a job on android", "-X", "POST", "http://ptsv2.com/t/miaaaau/post"] 36 37 } 38 39 resources { 40 cpu = 20 41 memory = 12 42 network { 43 mbits = 10 44 port "db" {} 45 } 46 } 47 48 } 49 } 50 }