Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parametrize forest tag #426

Merged
merged 2 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ inputs = {
chain = "butterflynet"
droplet_size = "s-1vcpu-2gb-amd"
service_name = "forest-butterflynet"
forest_tag = "2024-03-25-44c3331-fat"
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ inputs = {
chain = "butterflynet"
droplet_size = "s-1vcpu-2gb-amd"
service_name = "forest-butterflynet"
forest_tag = "2024-03-25-44c3331-fat"
}
2 changes: 1 addition & 1 deletion tf-managed/modules/forest-droplet/bootstrap.bash.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ sudo --user="${NEW_USER}" -- \
--publish=6116:6116 \
--publish=12345:12345 \
--restart=always \
ghcr.io/chainsafe/forest:latest \
ghcr.io/chainsafe/forest:${FOREST_TAG} \
--config=/home/"${NEW_USER}"/forest_data/config.toml \
--encrypt-keystore false \
--auto-download-snapshot \
Expand Down
1 change: 1 addition & 0 deletions tf-managed/modules/forest-droplet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ resource "local_sensitive_file" "bootstrap_script" {
NEW_RELIC_API_KEY = var.new_relic_api_key != null ? var.new_relic_api_key : ""
NEW_RELIC_ACCOUNT_ID = var.new_relic_account_id != null ? var.new_relic_account_id : ""
NEW_RELIC_REGION = "EU"
FOREST_TAG = var.forest_tag
}
)
}
Expand Down
6 changes: 6 additions & 0 deletions tf-managed/modules/forest-droplet/variable.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,9 @@ variable "new_relic_account_id" {
sensitive = true
type = string
}

# Tag of the Docker image to use for the Forest service
variable "forest_tag" {
default = "latest-fat"
type = string
}
Loading