Skip to content

Commit

Permalink
feat: use blockscout chart (#199)
Browse files Browse the repository at this point in the history
* feat: use blockscout chart

* add blockscout dependency

* fix production file for blockscout

* lint

* adds ingress.BLOCKSCOUT_BACKEND_HOST to config.toml files

* disable SSL for blockscout devnet

* set the env in backend instead of front

* update blockscout chart

* update script create-env-files.sh with new blockscout values

* add env var for production.yaml file on blosckout chart

* add blockscout.yaml file on example folder

* update l1-explorer

* remove some env var from l1-explorer

* update scroll-sdk

* remove add banners on blockscout

* change l1-explorer image and uncomment nginx config in production.yaml file

* fix

* change the example

* update scroll-sdk to 0.0.59

---------

Co-authored-by: Daniel Helm <[email protected]>
  • Loading branch information
sbaizet-ledger and dghelm authored Oct 31, 2024
1 parent 2ca4bbf commit 32da821
Show file tree
Hide file tree
Showing 16 changed files with 381 additions and 536 deletions.
10 changes: 5 additions & 5 deletions charts/blockscout/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
apiVersion: v2
description: blockscout helm charts
description: blockscout scroll helm charts
name: blockscout
version: 0.0.3
version: 0.0.4
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
- name: scroll-tech
email: [email protected]
dependencies:
- name: common
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
version: 1.5.1
- name: external-secrets-lib
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
version: 0.0.3
- name: blockscout-stack
repository: https://blockscout.github.io/helm-charts
version: 1.6.8
164 changes: 55 additions & 109 deletions charts/blockscout/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# blockscout

![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
![Version: 0.0.4](https://img.shields.io/badge/Version-0.0.4-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)

blockscout helm charts
blockscout scroll helm charts

## Maintainers

Expand All @@ -16,119 +16,65 @@ Kubernetes: `>=1.22.0-0`

| Repository | Name | Version |
|------------|------|---------|
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | common | 1.5.1 |
| https://blockscout.github.io/helm-charts | blockscout-stack | 1.6.8 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | external-secrets-lib | 0.0.3 |

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| command[0] | string | `"/bin/sh"` | |
| command[1] | string | `"-c"` | |
| command[2] | string | `"/app/bin/blockscout start"` | |
| controller.replicas | int | `1` | |
| controller.strategy | string | `"Recreate"` | |
| controller.type | string | `"deployment"` | |
| defaultProbes.custom | bool | `true` | |
| defaultProbes.enabled | bool | `true` | |
| defaultProbes.spec.httpGet.path | string | `"/"` | |
| defaultProbes.spec.httpGet.port | int | `3000` | |
| envFrom[0].configMapRef.name | string | `"blockscout-env"` | |
| env[0].name | string | `"ECTO_USE_SSL"` | |
| env[0].value | bool | `false` | |
| env[10].name | string | `"LOGO"` | |
| env[10].value | string | `"/images/logo.svg"` | |
| env[11].name | string | `"WEBAPP_URL"` | |
| env[11].value | string | `"https://blockscout.scroll.tech"` | |
| env[12].name | string | `"BLOCKSCOUT_HOST"` | |
| env[12].value | string | `"test-blockscout.scroll.io"` | |
| env[13].name | string | `"JSON_RPC"` | |
| env[13].value | string | `"http://l2-sequencer:8545"` | |
| env[14].name | string | `"SUBNETWORK"` | |
| env[14].value | string | `"Scroll Sepolia Testnet"` | |
| env[15].name | string | `"SUPPORTED_CHAINS"` | |
| env[15].value | string | `"[{ \"title\": \"Etherscan (Sepolia)\", \"url\": \"https://sepolia.etherscan.io\", \"test_net?\": true }, { \"title\": \"Scroll Sepolia Testnet\", \"url\": \"http://test-blockscout.scroll.io\", \"test_net?\": true }]"` | |
| env[16].name | string | `"DISABLE_EXCHANGE_RATES"` | |
| env[16].value | bool | `true` | |
| env[17].name | string | `"BLOCKSCOUT_VERSION"` | |
| env[17].value | string | `"5.2.1"` | |
| env[18].name | string | `"FOOTER_GITHUB_LINK"` | |
| env[18].value | string | `"https://github.com/scroll-tech/blockscout"` | |
| env[19].name | string | `"RELEASE_LINK"` | |
| env[19].value | string | `"https://github.com/scroll-tech"` | |
| env[1].name | string | `"ETHEREUM_JSONRPC_HTTP_URL"` | |
| env[1].value | string | `"http://l2-sequencer:8545"` | |
| env[20].name | string | `"RELEASE_NODE"` | |
| env[20].value | string | `"l2_blockscout"` | |
| env[21].name | string | `"ETHEREUM_JSONRPC_DEBUG_TRACE_TRANSACTION_TIMEOUT"` | |
| env[21].value | string | `"10s"` | |
| env[22].name | string | `"INDEXER_MEMORY_LIMIT"` | |
| env[22].value | string | `"10gb"` | |
| env[23].name | string | `"BLOCK_TRANSFORMER"` | |
| env[23].value | string | `"clique"` | |
| env[24].name | string | `"MICROSERVICE_SC_VERIFIER_ENABLED"` | |
| env[24].value | bool | `true` | |
| env[25].name | string | `"MICROSERVICE_SC_VERIFIER_URL"` | |
| env[25].value | string | `"http://blockscout-sc-verifier:8080"` | |
| env[26].name | string | `"CHAIN_SPEC_PATH"` | |
| env[26].value | string | `"/app/genesis/genesis.json"` | |
| env[2].name | string | `"ETHEREUM_JSONRPC_TRACE_URL"` | |
| env[2].value | string | `"http://l2-sequencer:8545"` | |
| env[3].name | string | `"ETHEREUM_JSONRPC_VARIANT"` | |
| env[3].value | string | `"geth"` | |
| env[4].name | string | `"ETHEREUM_JSONRPC_WS_URL"` | |
| env[4].value | string | `"ws://l2-sequencer:8546"` | |
| env[5].name | string | `"INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER"` | |
| env[5].value | bool | `true` | |
| env[6].name | string | `"PORT"` | |
| env[6].value | int | `3000` | |
| env[7].name | string | `"NETWORK"` | |
| env[7].value[0] | string | `""` | |
| env[8].name | string | `"COIN"` | |
| env[8].value | string | `"ETH"` | |
| env[9].name | string | `"COIN_NAME"` | |
| env[9].value | string | `"ETH"` | |
| global.fullnameOverride | string | `"blockscout"` | |
| global.nameOverride | string | `"blockscout"` | |
| image.pullPolicy | string | `"Always"` | |
| image.repository | string | `"blockscout/blockscout"` | |
| image.tag | string | `"6.6.0"` | |
| ingress.main.annotations | object | `{}` | |
| ingress.main.enabled | bool | `true` | |
| ingress.main.hosts[0].host | string | `"blockscout.scrollsdk"` | |
| ingress.main.hosts[0].paths[0].path | string | `"/"` | |
| ingress.main.hosts[0].paths[0].pathType | string | `"Prefix"` | |
| ingress.main.ingressClassName | string | `"nginx"` | |
| ingress.main.labels | object | `{}` | |
| ingress.main.primary | bool | `true` | |
| initContainers.1-migrate-db.command[0] | string | `"/bin/sh"` | |
| initContainers.1-migrate-db.command[1] | string | `"-c"` | |
| initContainers.1-migrate-db.command[2] | string | `"/app/bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\""` | |
| initContainers.1-migrate-db.envFrom[0].configMapRef.name | string | `"blockscout-env"` | |
| initContainers.1-migrate-db.image | string | `"blockscout/blockscout:6.6.0"` | |
| persistence.env.enabled | bool | `true` | |
| persistence.env.mountPath | string | `"/config/"` | |
| persistence.env.name | string | `"blockscout-env"` | |
| persistence.env.type | string | `"configMap"` | |
| persistence.genesis.enabled | bool | `true` | |
| persistence.genesis.mountPath | string | `"/app/genesis/"` | |
| persistence.genesis.name | string | `"genesis-config"` | |
| persistence.genesis.type | string | `"configMap"` | |
| probes.liveness.<<.custom | bool | `true` | |
| probes.liveness.<<.enabled | bool | `true` | |
| probes.liveness.<<.spec.httpGet.path | string | `"/"` | |
| probes.liveness.<<.spec.httpGet.port | int | `3000` | |
| probes.readiness.<<.custom | bool | `true` | |
| probes.readiness.<<.enabled | bool | `true` | |
| probes.readiness.<<.spec.httpGet.path | string | `"/"` | |
| probes.readiness.<<.spec.httpGet.port | int | `3000` | |
| probes.startup.<<.custom | bool | `true` | |
| probes.startup.<<.enabled | bool | `true` | |
| probes.startup.<<.spec.httpGet.path | string | `"/"` | |
| probes.startup.<<.spec.httpGet.port | int | `3000` | |
| service.main.enabled | bool | `true` | |
| service.main.ports.http.enabled | bool | `true` | |
| service.main.ports.http.port | int | `3000` | |
| blockscout-stack.blockscout.env.BLOCK_TRANSFORMER | string | `"clique"` | |
| blockscout-stack.blockscout.env.CHAIN_TYPE | string | `"scroll"` | |
| blockscout-stack.blockscout.env.ECTO_USE_SSL | bool | `false` | |
| blockscout-stack.blockscout.env.ETHEREUM_JSONRPC_HTTP_INSECURE | bool | `true` | |
| blockscout-stack.blockscout.env.ETHEREUM_JSONRPC_HTTP_URL | string | `"http://l2-rpc:8545"` | |
| blockscout-stack.blockscout.env.ETHEREUM_JSONRPC_TRACE_URL | string | `"http://l2-rpc:8545"` | |
| blockscout-stack.blockscout.env.ETHEREUM_JSONRPC_VARIANT | string | `"geth"` | |
| blockscout-stack.blockscout.env.ETHEREUM_JSONRPC_WS_URL | string | `"ws://l2-rpc:8546"` | |
| blockscout-stack.blockscout.env.INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER | bool | `true` | |
| blockscout-stack.blockscout.env.INDEXER_SCROLL_L1_ETH_GET_LOGS_RANGE_SIZE | int | `500` | |
| blockscout-stack.blockscout.env.INDEXER_SCROLL_L2_ETH_GET_LOGS_RANGE_SIZE | int | `500` | |
| blockscout-stack.blockscout.env.INDEXER_SCROLL_L2_MESSENGER_START_BLOCK | int | `0` | |
| blockscout-stack.blockscout.env.SCROLL_L2_CURIE_UPGRADE_BLOCK | int | `0` | |
| blockscout-stack.blockscout.envFrom[0].configMapRef.name | string | `"blockscout-env"` | |
| blockscout-stack.blockscout.image.pullPolicy | string | `"IfNotPresent"` | |
| blockscout-stack.blockscout.image.repository | string | `"blockscout/blockscout-scroll"` | |
| blockscout-stack.blockscout.image.tag | string | `"6.9.0-alpha.1"` | |
| blockscout-stack.blockscout.ingress.annotations."nginx.ingress.kubernetes.io/cors-allow-headers" | string | `"updated-gas-oracle, Content-Type, Authorization"` | |
| blockscout-stack.blockscout.ingress.annotations."nginx.ingress.kubernetes.io/cors-allow-methods" | string | `"GET, POST, OPTIONS"` | |
| blockscout-stack.blockscout.ingress.annotations."nginx.ingress.kubernetes.io/cors-allow-origin" | string | `"http://blockscout.scrollsdk"` | |
| blockscout-stack.blockscout.ingress.annotations."nginx.ingress.kubernetes.io/cors-max-age" | string | `"86400"` | |
| blockscout-stack.blockscout.ingress.annotations."nginx.ingress.kubernetes.io/enable-cors" | string | `"true"` | |
| blockscout-stack.blockscout.ingress.className | string | `"nginx"` | |
| blockscout-stack.blockscout.ingress.enabled | bool | `true` | |
| blockscout-stack.blockscout.ingress.hostname | string | `"blockscout-backend.scrollsdk"` | |
| blockscout-stack.frontend.env.FAVICON_MASTER_URL | string | `"https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/favicons/scroll_180x180.png"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_AD_BANNER_PROVIDER | string | `"none"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_AD_TEXT_PROVIDER | string | `"none"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_API_HOST | string | `"blockscout-backend.scrollsdk"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_API_PROTOCOL | string | `"http"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL | string | `"ws"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_APP_PROTOCOL | string | `"http"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_HOMEPAGE_CHARTS | string | `"[\"daily_txs\"]"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_HOMEPAGE_HERO_BANNER_CONFIG | string | `"{'background':['rgba(255, 238, 218, 1)'],'text_color':['rgba(25, 6, 2, 1)']}"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_HOMEPAGE_STATS | string | `"[\"total_blocks\", \"average_block_time\", \"total_txs\", \"wallet_addresses\", \"gas_tracker\"]"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_NETWORK_ICON | string | `"https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/scroll.svg"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_NETWORK_ICON_DARK | string | `"https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/scroll-dark.svg"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_NETWORK_LOGO | string | `"https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-logos/scroll.svg"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_NETWORK_LOGO_DARK | string | `"https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-logos/scroll-dark.svg"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_OG_IMAGE_URL | string | `"https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/og-images/scroll-sepolia.png"` | |
| blockscout-stack.frontend.image.tag | string | `"v1.35.2"` | |
| blockscout-stack.frontend.ingress.annotations."nginx.ingress.kubernetes.io/cors-allow-headers" | string | `"updated-gas-oracle, Content-Type, Authorization"` | |
| blockscout-stack.frontend.ingress.annotations."nginx.ingress.kubernetes.io/cors-allow-methods" | string | `"GET, POST, OPTIONS"` | |
| blockscout-stack.frontend.ingress.annotations."nginx.ingress.kubernetes.io/cors-allow-origin" | string | `"http://blockscout.scrollsdk"` | |
| blockscout-stack.frontend.ingress.annotations."nginx.ingress.kubernetes.io/cors-max-age" | string | `"86400"` | |
| blockscout-stack.frontend.ingress.annotations."nginx.ingress.kubernetes.io/enable-cors" | string | `"true"` | |
| blockscout-stack.frontend.ingress.className | string | `"nginx"` | |
| blockscout-stack.frontend.ingress.enabled | bool | `true` | |
| blockscout-stack.frontend.ingress.hostname | string | `"blockscout.scrollsdk"` | |
| blockscout-stack.fullnameOverride | string | `"blockscout"` | |
| blockscout-stack.imagePullSecrets[0].name | string | `"docker-secret"` | |
| blockscout-stack.nameOverride | string | `"blockscout"` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
14 changes: 0 additions & 14 deletions charts/blockscout/templates/common.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,2 @@
---
{{- include "scroll.common.loader.init" . }}

{{- define "app-template.hardcodedValues" -}}
# Set the nameOverride based on the release name if no override has been set
{{ if not .Values.global.nameOverride }}
global:
nameOverride: "{{ .Release.Name }}"
{{ end }}
{{- end -}}
{{- $_ := mergeOverwrite .Values (include "app-template.hardcodedValues" . | fromYaml) -}}

{{/* Render the templates */}}
{{ include "scroll.common.loader.generate" . }}
---
{{- include "scrolllib.externalsecrets.tpl" . }}
Loading

0 comments on commit 32da821

Please sign in to comment.