From 00e1a1e160ce35aa64cf6613e78efc046ebd41bc Mon Sep 17 00:00:00 2001 From: Jim Toth Date: Tue, 3 Sep 2024 22:44:56 -0400 Subject: [PATCH] Fixes populate uptime job ops templates --- operations/populate-relay-uptime-live.hcl | 20 ++++++++++++++++++++ operations/populate-relay-uptime-stage.hcl | 6 +++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/operations/populate-relay-uptime-live.hcl b/operations/populate-relay-uptime-live.hcl index 6cd93f9..f235480 100644 --- a/operations/populate-relay-uptime-live.hcl +++ b/operations/populate-relay-uptime-live.hcl @@ -13,7 +13,21 @@ job "populate-relay-uptime-live" { task "populate-relay-uptime-live-task" { driver = "docker" + vault { + policies = ["valid-ator-live"] + } + env { + IS_LIVE="true" + CPU_COUNT="1" + DRE_REQUEST_TIMEOUT=60000 + DRE_REQUEST_MAX_REDIRECTS=3 + RELAY_REGISTRY_OPERATOR_MIN_BALANCE=1000000 + RELAY_REGISTRY_UPLOADER_MIN_BALANCE=1000000 + DISTRIBUTION_OPERATOR_MIN_BALANCE=1000000 + FACILITY_OPERATOR_MIN_BALANCE=1000000 + FACILITY_TOKEN_MIN_BALANCE=1000000 + IRYS_NODE="https://node2.irys.xyz" UPTIME_MINIMUM_RUNNING_COUNT="16" } @@ -22,6 +36,12 @@ job "populate-relay-uptime-live" { {{- range service "validator-live-mongo" }} MONGO_URI="mongodb://{{ .Address }}:{{ .Port }}/valid-ator-live-testnet" {{- end }} + DISTRIBUTION_CONTRACT_TXID="[[ consulKey "smart-contracts/live/distribution-address" ]]" + {{with secret "kv/valid-ator/live"}} + DISTRIBUTION_OPERATOR_KEY="{{.Data.data.DISTRIBUTION_OPERATOR_KEY}}" + DRE_HOSTNAME="{{.Data.data.DRE_HOSTNAME}}" + IRYS_NETWORK="{{.Data.data.IRYS_NETWORK}}" + {{end}} EOH destination = "secrets/file.env" env = true diff --git a/operations/populate-relay-uptime-stage.hcl b/operations/populate-relay-uptime-stage.hcl index 2186e6a..1ee705a 100644 --- a/operations/populate-relay-uptime-stage.hcl +++ b/operations/populate-relay-uptime-stage.hcl @@ -13,6 +13,10 @@ job "populate-relay-uptime-stage" { task "populate-relay-uptime-stage-task" { driver = "docker" + vault { + policies = ["valid-ator-stage"] + } + env { IS_LIVE="true" CPU_COUNT="1" @@ -44,7 +48,7 @@ job "populate-relay-uptime-stage" { } config { - image = "ghcr.io/ator-development/valid-ator:[[.deploy]]" + image = "ghcr.io/ator-development/valid-ator:stage" entrypoint = [ "node" ] args = [ "dist/cli/main.js", "populate-relay-uptime" ] }