github.com/hernad/nomad@v1.6.112/e2e/workload_id/input/nobody.nomad (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 job "nobodyid" { 5 datacenters = ["dc1"] 6 type = "batch" 7 8 constraint { 9 attribute = "${attr.kernel.name}" 10 value = "linux" 11 } 12 13 group "nobodyid" { 14 15 # nobody task should have a file owned by nobody with -rw------- perms 16 task "nobody" { 17 user = "nobody" 18 19 identity { 20 file = true 21 } 22 23 driver = "docker" 24 25 config { 26 image = "bash:5" 27 args = ["-c", "stat -c 'perms=%#a username=%U' secrets/nomad_token; echo done"] 28 } 29 resources { 30 cpu = 16 31 memory = 32 32 disk = 64 33 } 34 } 35 } 36 }