commit e010815dffb4ced10f420d95e58bb882534f2a0c parent f7c3ddb9be8472aea6b6d33a88f09b6fa2ea7e55 Author: Andreas Gruhler <andreas.gruhler@adfinis.com> Date: Sun, 4 Jun 2023 19:05:47 +0200 feat: force pull images Diffstat:
14 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/hcl/default/0x0/0x0.nomad b/hcl/default/0x0/0x0.nomad @@ -50,6 +50,7 @@ job "0x0" { config { image = "127.0.0.1:5000/0x0:latest" + force_pull = true command = "/bin/sh" args = ["-c", "flask db upgrade"] } @@ -71,6 +72,7 @@ job "0x0" { config { image = "nginx:stable-alpine" + force_pull = true ports = ["https", "http"] volumes = [ # mount the templated config from the task directory to the container @@ -100,6 +102,7 @@ job "0x0" { config { image = "127.0.0.1:5000/0x0:latest" + force_pull = true ports = ["fhost"] volumes = [ # mount the templated config from the task directory to the container diff --git a/hcl/default/aload/aload.nomad b/hcl/default/aload/aload.nomad @@ -26,6 +26,7 @@ job "aload" { config { image = "127.0.0.1:5000/aload:latest" + force_pull = true ports = ["http"] volumes = [ # mount the templated config from the task directory to the container diff --git a/hcl/default/ampache/ampache-catalog.nomad b/hcl/default/ampache/ampache-catalog.nomad @@ -27,6 +27,7 @@ job "ampache-catalog" { config { image = "ampache/ampache:nosql5.5.2" + force_pull = true command = "/bin/sh" # [-c|--cleanup] [-e|--verify] [-a|--add] [-g|--art] args = ["-c", "/var/www/bin/cli run:updateCatalog -ceag"] diff --git a/hcl/default/ampache/ampache.nomad b/hcl/default/ampache/ampache.nomad @@ -40,6 +40,7 @@ job "ampache" { config { image = "nginx:stable-alpine" + force_pull = true ports = ["https"] volumes = [ # mount the templated config from the task directory to the container @@ -69,6 +70,7 @@ job "ampache" { config { image = "ampache/ampache:nosql" + force_pull = true ports = ["ampache"] volumes = [ # mount the templated config from the task directory to the container diff --git a/hcl/default/certbot/certbot.nomad b/hcl/default/certbot/certbot.nomad @@ -59,6 +59,7 @@ job "certbot" { config { image = "certbot/certbot:arm64v8-latest" + force_pull = true ports = ["http", "https"] volumes = [ "local/certbot-request.sh:/opt/certbot/tools/certbot-request.sh" diff --git a/hcl/default/cv/cv.nomad b/hcl/default/cv/cv.nomad @@ -43,6 +43,7 @@ job "cv" { config { image = "nginx:stable-alpine" + force_pull = true ports = ["https"] volumes = [ # mount the templated config from the task directory to the container diff --git a/hcl/default/diary/diary.nomad b/hcl/default/diary/diary.nomad @@ -27,6 +27,7 @@ job "diary" { config { image = "127.0.0.1:5000/jekyll-diary:latest" + force_pull = true ports = ["jekyll"] } @@ -42,6 +43,7 @@ job "diary" { config { image = "nginx:stable-alpine" + force_pull = true ports = ["https"] volumes = [ # mount the templated config from the task directory to the container diff --git a/hcl/default/git/git.nomad b/hcl/default/git/git.nomad @@ -46,6 +46,7 @@ job "git" { config { image = "127.0.0.1:5000/git:latest" + force_pull = true ports = ["smarthttp"] volumes = [ # mount the templated config from the task directory to the container @@ -83,6 +84,7 @@ job "git" { config { image = "127.0.0.1:5000/git:latest" + force_pull = true ports = ["stagit"] volumes = [ # mount the templated config from the task directory to the container diff --git a/hcl/default/kanboard/kanboard.nomad b/hcl/default/kanboard/kanboard.nomad @@ -75,6 +75,7 @@ job "kanboard" { config { image = "nginx:stable-alpine" + force_pull = true ports = ["https"] volumes = [ # mount the templated config from the task directory to the container diff --git a/hcl/default/mastodon/mastodon.nomad b/hcl/default/mastodon/mastodon.nomad @@ -56,6 +56,7 @@ job "mastodon" { config { image = "tootsuite/mastodon:latest" + force_pull = true command = "/opt/ruby/bin/bundle" args = ["exec", "rake", "db:migrate"] } @@ -77,6 +78,7 @@ job "mastodon" { config { image = "nginx:stable-alpine" + force_pull = true ports = ["https"] volumes = [ # mount the templated config from the task directory to the container @@ -106,6 +108,7 @@ job "mastodon" { config { image = "tootsuite/mastodon:latest" + force_pull = true ports = ["mastodon_web"] command = "bash" args = ["-c", "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p ${NOMAD_PORT_mastodon_web}"] @@ -134,6 +137,7 @@ job "mastodon" { config { image = "tootsuite/mastodon:latest" + force_pull = true ports = ["mastodon_streaming"] command = "node" args = ["./streaming"] @@ -157,6 +161,7 @@ job "mastodon" { config { image = "tootsuite/mastodon:latest" + force_pull = true command = "/opt/ruby/bin/bundle" args = ["exec", "sidekiq"] } @@ -184,6 +189,7 @@ job "mastodon" { config { image = "redis:7-alpine" + force_pull = true ports = ["redis"] } diff --git a/hcl/default/myheats-demo/myheats-demo.nomad b/hcl/default/myheats-demo/myheats-demo.nomad @@ -32,6 +32,7 @@ job "myheats-demo" { config { image = "127.0.0.1:5000/myheats:latest" + force_pull = true ports = ["myheats"] } @@ -61,6 +62,7 @@ EOT config { image = "nginx:stable-alpine" + force_pull = true ports = ["https"] volumes = [ # mount the templated config from the task directory to the container diff --git a/hcl/default/myheats/myheats.nomad b/hcl/default/myheats/myheats.nomad @@ -43,6 +43,7 @@ job "myheats" { config { image = "nginx:stable-alpine" + force_pull = true ports = ["https"] volumes = [ # mount the templated config from the task directory to the container diff --git a/hcl/default/snibox/snibox.nomad b/hcl/default/snibox/snibox.nomad @@ -38,6 +38,7 @@ job "snibox" { config { image = "nginx:stable-alpine" + force_pull = true ports = ["https"] volumes = [ # mount the templated config from the task directory to the container @@ -86,6 +87,7 @@ EOT config { image = "127.0.0.1:5000/snibox:latest" + force_pull = true command = "/bin/sh" args = ["-c", "rm -rf tmp/pids && ./bin/rails s -p 3000 -b '0.0.0.0'"] ports = ["server"] diff --git a/hcl/default/writefreely/writefreely.nomad b/hcl/default/writefreely/writefreely.nomad @@ -38,6 +38,7 @@ job "writefreely" { config { image = "docker.io/arm64v8/mysql:latest" + force_pull = true command = "/bin/sh" args = ["-c", "mysql < $NOMAD_TASK_DIR/schema.sql"] volumes = [ @@ -79,6 +80,7 @@ job "writefreely" { config { image = "127.0.0.1:5000/writefreely:latest" + force_pull = true entrypoint = [""] command = "/bin/sh" args = ["-c", "cmd/writefreely/writefreely --gen-keys || true"] @@ -115,6 +117,7 @@ job "writefreely" { config { image = "127.0.0.1:5000/writefreely:latest" + force_pull = true ports = ["web"] volumes = [ # mount the templated config from the task directory to the container @@ -144,6 +147,7 @@ job "writefreely" { config { image = "nginx:stable-alpine" + force_pull = true ports = ["https"] volumes = [ # mount the templated config from the task directory to the container