Skip to content

Commit

Permalink
Merge pull request #1279 from input-output-hk/jpraynaud/1185-spo-tick…
Browse files Browse the repository at this point in the history
…er-deployment

Deploy infrastructure for SPO tickers
  • Loading branch information
jpraynaud authored Oct 4, 2023
2 parents 924a3d0 + 0048dc2 commit 1a62870
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ inputs:
mithril_aggregator_zstandard_parameters_workers:
description: Mithril aggregator snapshot zstandard number of workers.
required: false
mithril_aggregator_cexplorer_pools_url:
description: CExplorer url of the list of pools that is used by the mithril aggregator.
required: false
prometheus_auth_username:
description: Prometheus metrics endpoint username.
required: false
Expand Down Expand Up @@ -152,6 +155,7 @@ runs:
mithril_aggregator_snapshot_compression_algorithm = "${{ inputs.mithril_aggregator_snapshot_compression_algorithm }}"
mithril_aggregator_zstandard_parameters_level = "${{ inputs.mithril_aggregator_zstandard_parameters_level }}"
mithril_aggregator_zstandard_parameters_workers = "${{ inputs.mithril_aggregator_zstandard_parameters_workers }}"
mithril_aggregator_cexplorer_pools_url = "${{ inputs.mithril_aggregator_cexplorer_pools_url }}"
prometheus_auth_username = "${{ inputs.prometheus_auth_username }}"
prometheus_auth_password = "${{ inputs.prometheus_auth_password }}"
prometheus_ingest_host = "${{ inputs.prometheus_ingest_host }}"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ jobs:
mithril_aggregator_snapshot_compression_algorithm: ${{ vars.AGGREGATOR_SNAPSHOT_COMPRESSION_ALGORITHM }}
mithril_aggregator_zstandard_parameters_level: ${{ vars.AGGREGATOR_SNAPSHOT_ZSTANDARD_LEVEL }}
mithril_aggregator_zstandard_parameters_workers: ${{ vars.AGGREGATOR_SNAPSHOT_ZSTANDARD_WORKERS }}
mithril_aggregator_cexplorer_pools_url: ${{ vars.AGGREGATOR_CEXPLORER_POOLS_URL }}
prometheus_auth_username: ${{ secrets.PROMETHEUS_AUTH_USERNAME }}
prometheus_auth_password: ${{ secrets.PROMETHEUS_AUTH_PASSWORD }}
prometheus_ingest_host: ${{ vars.PROMETHEUS_INGEST_HOST }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ jobs:
mithril_aggregator_snapshot_compression_algorithm: ${{ vars.AGGREGATOR_SNAPSHOT_COMPRESSION_ALGORITHM }}
mithril_aggregator_zstandard_parameters_level: ${{ vars.AGGREGATOR_SNAPSHOT_ZSTANDARD_LEVEL }}
mithril_aggregator_zstandard_parameters_workers: ${{ vars.AGGREGATOR_SNAPSHOT_ZSTANDARD_WORKERS }}
mithril_aggregator_cexplorer_pools_url: ${{ vars.AGGREGATOR_CEXPLORER_POOLS_URL }}
prometheus_auth_username: ${{ secrets.PROMETHEUS_AUTH_USERNAME }}
prometheus_auth_password: ${{ secrets.PROMETHEUS_AUTH_PASSWORD }}
prometheus_ingest_host: ${{ vars.PROMETHEUS_INGEST_HOST }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ jobs:
mithril_aggregator_snapshot_compression_algorithm: ${{ vars.AGGREGATOR_SNAPSHOT_COMPRESSION_ALGORITHM }}
mithril_aggregator_zstandard_parameters_level: ${{ vars.AGGREGATOR_SNAPSHOT_ZSTANDARD_LEVEL }}
mithril_aggregator_zstandard_parameters_workers: ${{ vars.AGGREGATOR_SNAPSHOT_ZSTANDARD_WORKERS }}
mithril_aggregator_cexplorer_pools_url: ${{ vars.AGGREGATOR_CEXPLORER_POOLS_URL }}
prometheus_auth_username: ${{ secrets.PROMETHEUS_AUTH_USERNAME }}
prometheus_auth_password: ${{ secrets.PROMETHEUS_AUTH_PASSWORD }}
prometheus_ingest_host: ${{ vars.PROMETHEUS_INGEST_HOST }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ services:
- SERVER_PORT=8080
- ERA_READER_ADAPTER_TYPE=${ERA_READER_ADAPTER_TYPE}
- ERA_READER_ADAPTER_PARAMS=${ERA_READER_ADAPTER_PARAMS}
- CEXPLORER_POOLS_URL=${CEXPLORER_POOLS_URL}
volumes:
- ../data/${NETWORK}/mithril-aggregator/mithril:/mithril-aggregator/mithril
- ../data/${NETWORK}/mithril-aggregator/cardano/db:/db
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ services:
- SERVER_PORT=8080
- ERA_READER_ADAPTER_TYPE=${ERA_READER_ADAPTER_TYPE}
- ERA_READER_ADAPTER_PARAMS=${ERA_READER_ADAPTER_PARAMS}
- CEXPLORER_POOLS_URL=${CEXPLORER_POOLS_URL}
volumes:
- ../data/${NETWORK}/mithril-aggregator/mithril:/mithril-aggregator/mithril
- ../data/${NETWORK}/mithril-aggregator/cardano/db:/db
Expand Down
2 changes: 1 addition & 1 deletion mithril-infra/assets/infra.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.13
0.1.14
1 change: 1 addition & 0 deletions mithril-infra/mithril.aggregator.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ EOT
"export ERA_READER_ADAPTER_TYPE='${var.mithril_era_reader_adapter_type}'",
"export ERA_READER_ADAPTER_PARAMS=$(jq -nc --arg address $(wget -q -O - ${var.mithril_era_reader_address_url}) --arg verification_key $(wget -q -O - ${var.mithril_era_reader_verification_key_url}) '{\"address\": $address, \"verification_key\": $verification_key}')",
"export ERA_READER_SECRET_KEY='${var.mithril_era_reader_secret_key}'",
"export CEXPLORER_POOLS_URL='${var.mithril_aggregator_cexplorer_pools_url}'",
"export LOGGING_DRIVER='${var.mithril_container_logging_driver}'",
"export AUTH_USER_PASSWORD=$(htpasswd -nb ${var.mithril_aggregator_auth_username} ${var.mithril_aggregator_auth_password})",
"export CURRENT_UID=$(id -u)",
Expand Down
6 changes: 6 additions & 0 deletions mithril-infra/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ variable "mithril_aggregator_auth_password" {
default = ""
}

variable "mithril_aggregator_cexplorer_pools_url" {
type = string
description = "The CExplorer url of the list of pools that is used by the mithril aggregator"
default = ""
}

variable "prometheus_auth_username" {
type = string
description = "The username for authentication on local prometheus endpoint"
Expand Down

0 comments on commit 1a62870

Please sign in to comment.