mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 00:45:43 +03:00
* e2e: remove old metrics suite * e2e: install stress on e2e jammy image * e2e: overhaul metrics test to use nomad service discovery, workload identity * e2e: format metrics hcl files and copywrite * e2e: undo tf lock file * e2e: undo reg auth file perms * e2e: format cpustress.hcl
76 lines
1.2 KiB
HCL
76 lines
1.2 KiB
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
job "setup-podman-auth" {
|
|
type = "sysbatch"
|
|
|
|
constraint {
|
|
attribute = "${attr.kernel.name}"
|
|
value = "linux"
|
|
}
|
|
|
|
group "create-files" {
|
|
reschedule {
|
|
attempts = 0
|
|
unlimited = false
|
|
}
|
|
|
|
restart {
|
|
attempts = 0
|
|
mode = "fail"
|
|
}
|
|
|
|
task "create-auth-file" {
|
|
driver = "raw_exec"
|
|
user = "root"
|
|
|
|
config {
|
|
command = "cp"
|
|
args = ["${NOMAD_TASK_DIR}/auth.json", "/etc/auth.json"]
|
|
}
|
|
|
|
template {
|
|
destination = "local/auth.json"
|
|
perms = "644"
|
|
data = <<EOH
|
|
{}
|
|
EOH
|
|
}
|
|
|
|
resources {
|
|
cpu = 100
|
|
memory = 32
|
|
}
|
|
}
|
|
|
|
task "create-helper-file" {
|
|
driver = "raw_exec"
|
|
user = "root"
|
|
|
|
config {
|
|
command = "cp"
|
|
args = ["${NOMAD_TASK_DIR}/test.sh", "/usr/local/bin/docker-credential-test.sh"]
|
|
}
|
|
|
|
template {
|
|
destination = "local/test.sh"
|
|
perms = "755"
|
|
data = <<EOH
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
echo "{}"
|
|
|
|
exit 0
|
|
EOH
|
|
}
|
|
|
|
resources {
|
|
cpu = 100
|
|
memory = 32
|
|
}
|
|
}
|
|
}
|
|
}
|