github.com/hernad/nomad@v1.6.112/e2e/workload_id/input/api-win.nomad.hcl (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 job "api-win" { 5 type = "batch" 6 7 constraint { 8 attribute = "${attr.kernel.name}" 9 value = "windows" 10 } 11 12 constraint { 13 attribute = "${attr.cpu.arch}" 14 value = "amd64" 15 } 16 17 group "api-win" { 18 19 task "win" { 20 driver = "raw_exec" 21 config { 22 command = "powershell" 23 args = ["local/curl-7.87.0_4-win64-mingw/bin/curl.exe -H \"Authorization: Bearer $env:NOMAD_TOKEN\" --unix-socket $env:NOMAD_SECRETS_DIR/api.sock -v localhost:4646/v1/agent/health"] 24 } 25 artifact { 26 source = "https://curl.se/windows/dl-7.87.0_4/curl-7.87.0_4-win64-mingw.zip" 27 } 28 identity { 29 env = true 30 } 31 resources { 32 cpu = 16 33 memory = 32 34 disk = 64 35 } 36 } 37 } 38 }