Files
nomad/e2e/docker/input/redis.hcl
Piotr Kazmierczak f9cbaaf6c7 docker: fix a bug where auth for private registries wasn't parsed correctly (#24215)
In #23966 we introduced an official Docker client and did not notice that in
contrast to our previous 3rd party client, the official SDK PullOptions object
expects a base64 encoded JSON with username and password, instead of username/
password pair.
2024-10-16 22:04:54 +02:00

36 lines
571 B
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
# This is a simple redis job using the docker task driver.
job "redis" {
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "cache" {
network {
port "db" {
to = 6379
}
}
task "redis" {
driver = "docker"
config {
image = "docker.io/library/redis:7"
ports = ["db"]
auth_soft_fail = true
}
resources {
cpu = 50
memory = 128
}
}
}
}