Skip to content

Commit

Permalink
Merge pull request #66 from ATOR-Development/fix-populate-uptime-job-…
Browse files Browse the repository at this point in the history
…ops-templates

Fix populate uptime job ops templates
  • Loading branch information
jim-toth committed Sep 4, 2024
2 parents bf57acf + e380715 commit 36b6da7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
20 changes: 20 additions & 0 deletions operations/populate-relay-uptime-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand All @@ -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
Expand Down
6 changes: 5 additions & 1 deletion operations/populate-relay-uptime-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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" ]
}
Expand Down

0 comments on commit 36b6da7

Please sign in to comment.