Compare commits
3 Commits
0ada82675d
...
cfee45c86d
Author | SHA1 | Date |
---|---|---|
Daniel Berteaud | cfee45c86d | |
Daniel Berteaud | e3eb17b2eb | |
Daniel Berteaud | 489bb0660b |
|
@ -1,4 +1,4 @@
|
|||
FROM danielberteaud/alpine:24.3-1
|
||||
FROM danielberteaud/alpine:24.5-1
|
||||
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>
|
||||
|
||||
ENV SSHD_PORT=2022 \
|
||||
|
|
|
@ -80,6 +80,8 @@ job "repo" {
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Use a template block instead of env {} so we can fetch values from vault
|
||||
template {
|
||||
data = <<_EOT
|
||||
|
@ -165,7 +167,7 @@ _EOF
|
|||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "danielberteaud/rsync-ssh:24.3-1"
|
||||
image = "danielberteaud/rsync-ssh:24.5-1"
|
||||
pids_limit = 100
|
||||
readonly_rootfs = true
|
||||
mount {
|
||||
|
@ -194,7 +196,7 @@ _EOF
|
|||
|
||||
template {
|
||||
data = <<-_EOF
|
||||
{{ with secret "/kv/service/repo" }}
|
||||
{{ with secret "kv/service/repo" }}
|
||||
{{- range $idx, $key := .Data.data.ssh_keys | split "," -}}
|
||||
SSH_AUTH_KEY_{{ $idx }}={{ $key }}
|
||||
{{ end }}{{ end }}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
path "/kv/data/service/repo" {
|
||||
path "kv/data/service/repo" {
|
||||
capabilities = ["read"]
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ repo:
|
|||
|
||||
rsync:
|
||||
# Image to use
|
||||
image: '[[ .docker.repo ]]rsync-ssh:24.3-1'
|
||||
image: '[[ .docker.repo ]]rsync-ssh:24.5-1'
|
||||
|
||||
# Resources to allocate
|
||||
resources:
|
||||
|
|
Loading…
Reference in New Issue