mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 01:15:43 +03:00
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.
36 lines
571 B
HCL
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
|
|
}
|
|
}
|
|
}
|
|
}
|