From 1c4f829252676564eeaf28af177f7d2f7c6f92ef Mon Sep 17 00:00:00 2001 From: Gianluca Arbezzano Date: Thu, 12 Nov 2020 14:38:25 +0100 Subject: [PATCH] Bump tinkerbell stack to newest versions Signed-off-by: Gianluca Arbezzano --- deploy/docker-compose.yml | 24 ++++++++++++++++++++++++ generate-envrc.sh | 12 ++++++------ 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml index 06d54f8..2953d49 100644 --- a/deploy/docker-compose.yml +++ b/deploy/docker-compose.yml @@ -20,6 +20,8 @@ services: TINK_AUTH_USERNAME: ${TINKERBELL_TINK_USERNAME} TINK_AUTH_PASSWORD: ${TINKERBELL_TINK_PASSWORD} depends_on: + tink-server-migration: + condition: service_started db: condition: service_healthy healthcheck: @@ -33,6 +35,28 @@ services: - 42113:42113/tcp - 42114:42114/tcp + tink-server-migration: + image: ${TINKERBELL_TINK_SERVER_IMAGE} + restart: on-failure + environment: + ONLY_MIGRATION: "true" + FACILITY: ${FACILITY:-onprem} + PGDATABASE: tinkerbell + PGHOST: db + PGPASSWORD: tinkerbell + PGPORT: 5432 + PGSSLMODE: disable + PGUSER: tinkerbell + TINKERBELL_GRPC_AUTHORITY: :42113 + TINKERBELL_HTTP_AUTHORITY: :42114 + TINK_AUTH_USERNAME: ${TINKERBELL_TINK_USERNAME} + TINK_AUTH_PASSWORD: ${TINKERBELL_TINK_PASSWORD} + depends_on: + db: + condition: service_healthy + volumes: + - ./state/certs:/certs/${FACILITY:-onprem} + db: image: postgres:10-alpine restart: unless-stopped diff --git a/generate-envrc.sh b/generate-envrc.sh index a7eb7a2..83fa7c2 100755 --- a/generate-envrc.sh +++ b/generate-envrc.sh @@ -54,12 +54,12 @@ generate_envrc() ( cat <