Skip to content

Commit

Permalink
update dora
Browse files Browse the repository at this point in the history
  • Loading branch information
parithosh committed Jun 25, 2024
1 parent 8a21415 commit a2ba6f5
Show file tree
Hide file tree
Showing 7 changed files with 184 additions and 13 deletions.
10 changes: 5 additions & 5 deletions ansible/inventories/devnet-0/group_vars/all/all.sops.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
secret_nginx_shared_basic_auth:
name: ENC[AES256_GCM,data:bjlM,iv:DiOGlqfOfrDlt7X4OGY27OYlkDDEHguv+kg1zRhBek0=,tag:ZPlucwl2PNXeXcOc8PmCBQ==,type:str]
password: ENC[AES256_GCM,data:ZTpAAWj9,iv:R4YES0Nu4seGzS5ZE7UtkW6L1LI8QEQYVPDv06bUlrk=,tag:WD0VQNAITHfvdhWC4uytew==,type:str]
secret_zerossl:
ACME_EAB_KID: ENC[AES256_GCM,data:iSGb8MDO6A01Qy9DfN0gNO5P,iv:Iah50kN5GQPdoBT8CiVRXzOtCkEO1o9fBPZlsmrf3pk=,tag:qMLhC3zbdluljlos9EseYA==,type:str]
ACME_EAB_HMAC_KEY: ENC[AES256_GCM,data:r1K+yiYnVii4W4u6cA==,iv:EIw08gVo2CubUmkCUxFRuMh4f9Ui7v/5VZwLRSGpWFM=,tag:vGwPMk12IGAmenjO79g0Ug==,type:str]
secret_ethstats: ENC[AES256_GCM,data:sai7nuMTAtnMZ34=,iv:WHYxXgQ2LdLGMKxvagmT3UhmQl/dRucpyhYzZxHvLHc=,tag:dK0cqr61PwR6Yla8OKGjDg==,type:str]
secret_genesis_mnemonic: ENC[AES256_GCM,data:+u7MAFe+q119KV/cCTwgdtPAM1AYs1kvCffMi41fFQaQsCgeySHoX5sptmdNBn3YiAzE8X3LhaWab9Y8Tfg1q2NvqERbazf/4+ul8WMttR4NPRGQUbttIA08prdFIbfUwIXyI/b9Suluu7ImMW5sMsBOoDZAV6Rp6k9033aM50fiDjWYrgyib/acDY5uLQqN0m4rBzE=,iv:cJR7/s99h2HIHcztQLhWX+En7YZuO3D81nVLVxbYcho=,tag:CeaZj+1jhuIaE6Lt+2htXg==,type:str]
secret_mev_signingkey: ENC[AES256_GCM,data:yxPOKQAGSZq/WmSQS79A/lk30hwAMOoD+u6Xup5i88JLqy2253Bmb2em3uZzD4YLhRUrrFJVCyt5MMDg2fgXHQ==,iv:mnzUWxOaXT3Dy5mk3cLbFBbyo8xppvhJNN7h6hVehDo=,tag:1Ho3iLvpkjSDezXviVytow==,type:str]
Expand All @@ -15,8 +15,8 @@ sops:
azure_kv: []
hc_vault: []
age: []
lastmodified: "2024-06-20T12:22:06Z"
mac: ENC[AES256_GCM,data:ReWjzmccAiUgQLLHSbRsRt1/sW6nr+t9Mh+uUmvd+zlh96BOa0z7N3ZUpwaRG5gMHwg1JL6id7vJxoLEr52zRFe3f/pYTL4NI0XGaH+RQw3obFlAp5c5ORViFHchIhbtRVBFuA2oIz3U7JpXs8yXtqmNSJ7K6k9NpF63lUhzTCQ=,iv:emTAU3tLctnOu5Rpp1l2rexmD/b0tDsiKk8lmXhKsRU=,tag:tB556B1ajYYv1V1dw40ceQ==,type:str]
lastmodified: "2024-06-25T09:46:22Z"
mac: ENC[AES256_GCM,data:bc810w+cA/abVDoiWVKtSiuvh3JnMuxZSoUaItbbb47EFDM7qvmfj72RJx7UfCU4HzjNkv8Pmh1J90EFkNi4gla/3jZcHXNWUAvtH7rS6CxFjqdEw+/MM+6qu3Qr/Aq8MMsh/NlV6da4UtXOlJHPj8gfCHWJRDle4R0YZwOJb0s=,iv:gfz0qLPSlwL8wDXR+CFXkqLWlSWM7tgJ+IARjDsEekM=,tag:/4zBWtU0IZKsnoSQLrYANQ==,type:str]
pgp:
- created_at: "2023-09-28T11:48:21Z"
enc: |-
Expand Down
9 changes: 3 additions & 6 deletions ansible/inventories/devnet-0/group_vars/all/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ ethereum_network_deposit_contract: >-
ethereum_network_deposit_contract_block: >-
{{ lookup('file', eth_testnet_config_local_dir_src + '/deposit_contract_block.txt') }}
ethereum_node_rcp_hostname: "rpc.{{ server_fqdn }}"
ethereum_node_beacon_hostname: "bn.{{ server_fqdn }}"
ethereum_node_rcp_hostname: "rpc.helder-devnets.xyz"
ethereum_node_beacon_hostname: "bn.bootnode.helder-devnets.xyz"

ethstats_url: "ethstats.{{ ethereum_network_name }}.{{ domain }}"
ethstats_secret: "{{ secret_ethstats }}"

### Checkpoint sync specific for Ansible & Kubernetes
checkpoint_sync_node: bootnode-1
ethereum_node_cl_checkpoint_sync_enabled: false
checkpoint_sync_url: https://{{ secret_nginx_shared_basic_auth.name }}:{{ secret_nginx_shared_basic_auth.password }}@bn.{{ checkpoint_sync_node }}.srv.{{ ethereum_network_name }}.{{ domain }}
checkpoint_sync_url: https://bn.{{ checkpoint_sync_node }}.srv.{{ ethereum_network_name }}.{{ domain }}
checkpoint_sync_url_kube: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.dencun-devnets.node_ingress.combined}>@bn.{{ checkpoint_sync_node }}.srv.{{ ethereum_network_name }}.{{ domain }}
# ██████╗░░█████╗░██╗░░░░░███████╗  ██╗░░░██╗░█████╗░██████╗░░██████╗
# ██╔══██╗██╔══██╗██║░░░░░██╔════╝  ██║░░░██║██╔══██╗██╔══██╗██╔════╝
Expand Down Expand Up @@ -130,9 +130,6 @@ eth_testnet_config_dir: /data/ethereum-network-config/metadata
eth_testnet_config_local_dir_enabled: true
eth_testnet_config_local_dir_src: "{{ ethereum_genesis_generator_output_dir }}/metadata/"

# role: gen_basic_auth_nginx
gen_basic_auth_nginx_name: "{{ secret_nginx_shared_basic_auth.name }}"
gen_basic_auth_nginx_password: "{{ secret_nginx_shared_basic_auth.password }}"

# role: ethpandaops.general.docker_nginx_proxy
docker_nginx_proxy_container_name: nginx-proxy
Expand Down
165 changes: 165 additions & 0 deletions ansible/inventories/devnet-0/group_vars/dora.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
# explorer config
dora_beaconapi_endpoints:
- name: lighthouse-geth-1
url: "http://beacon:5052"
archive: false
priority: 0
headers: {}
- name: bootnode
url: "http://bn.bootnode.helder-devnets.xyz"
archive: false
priority: 0
headers: {}


dora_executionapi_endpoints:
- name: lighthouse-geth-1
url: "http://execution:8545"
archive: false
priority: 0
headers: {}


dora_mev_relays: []
# - index: 0
# name: "Relay 1"
# url: "http://mev-relay/"

dora_chain_name: helder-devnet-0
dora_chain_displayname: "helder-devnet-0"
dora_chain_config: "https://raw.githubusercontent.com/Commit-Boost/helder-devnets/master/network-configs/devnet-0/metadata/config.yaml"
dora_chain_genesistime: 1718967660
dora_frontend_title: "Dora the Explorer"
dora_frontend_subtitle: "helder-devnet-0"
dora_frontend_ethexplorer: ""
dora_frontend_validatornames: ""
dora_frontend_validatornames_inventory: ""


# ------------------------------------------------------------------

# dora
dora_enabled: true
dora_container_name: dora
dora_container_image: ethpandaops/dora:master
dora_container_env:
VIRTUAL_HOST: "dora.helder-devnets.xyz"
VIRTUAL_PORT: "8080"
LETSENCRYPT_HOST: "dora.helder-devnets.xyz"
dora_container_ports:
- "8080:8080"
dora_container_volumes:
- "{{ dora_datadir }}/explorer:/config"
dora_container_stop_timeout: "600"
dora_container_pull: true
dora_container_networks: "{{ dora_docker_networks }}"
dora_container_command: -config=/config/explorer.yaml

# dora-database
dora_db_enabled: true
dora_db_datadir: "{{ dora_datadir }}/database"
dora_db_container_name: dora-database
dora_db_container_image: bitnami/postgresql:15
dora_db_container_env:
POSTGRESQL_USERNAME: postgres
POSTGRESQL_PASSWORD: postgres
POSTGRESQL_DATABASE: dora
dora_db_custom_postgres_config: |
max_connections = 1024
dora_db_container_ports: []
dora_db_container_volumes:
- "{{ dora_db_datadir }}/db:/bitnami/postgresql"
- "{{ dora_db_datadir }}/conf.d://opt/bitnami/postgresql/conf/conf.d:ro"
dora_db_container_stop_timeout: "300"
dora_db_container_pull: false
dora_db_container_networks: "{{ dora_docker_networks }}"

dora_config: |
# Chain network configuration
chain:
name: "{{ dora_chain_name }}"
genesisTimestamp: {{ dora_chain_genesistime }}
configPath: "{{ dora_chain_config }}"
displayName: "{{ dora_chain_displayname }}"
# HTTP Server configuration
server:
host: "0.0.0.0" # Address to listen on
port: "8080" # Port to listen on
frontend:
enabled: true # Enable or disable to web frontend
debug: false
minimize: false # minimize html templates
# Name of the site, displayed in the title tag
siteName: "{{ dora_frontend_title }}"
siteSubtitle: "{{ dora_frontend_subtitle }}"
# link to EL Explorer
ethExplorerLink: "{{ dora_frontend_ethexplorer }}"
# file or inventory url to load validator names from
validatorNamesYaml: "{{ dora_frontend_validatornames }}"
validatorNamesInventory: "{{ dora_frontend_validatornames_inventory }}"
rateLimit:
enabled: true
proxyCount: {{ dora_proxy_count }}
rate: {{ dora_callrate_limit }}
burst: {{ dora_callrate_burst }}
beaconapi:
# CL Client RPC
endpoints:
{% for endpoint in dora_beaconapi_endpoints %}
- {{ endpoint | to_json }}
{% endfor %}
# local cache for page models
localCacheSize: 100 # 100MB
# remote cache for page models
redisCacheAddr: ""
redisCachePrefix: ""
executionapi:
# EL Client RPC
endpoints: {% if not dora_executionapi_endpoints %}[]{% endif %}
{% for endpoint in dora_executionapi_endpoints %}
- {{ endpoint | to_json }}
{% endfor %}
depositLogBatchSize: 10000
# indexer keeps track of the latest epochs in memory.
indexer:
# max number of epochs to keep in memory
inMemoryEpochs: 10
# disable synchronizing and everything that writes to the db (indexer just maintains local cache)
disableIndexWriter: false
# number of seconds to wait between each epoch (don't overload CL client)
syncEpochCooldown: 1
mevIndexer:
# list of mev relays to crawl mev blocks from
relays: {% if not dora_mev_relays %}[]{% endif %}
{% for relay in dora_mev_relays %}
- {{ relay | to_json }}
{% endfor %}
refreshInterval: 5m
database:
engine: "pgsql"
pgsql:
host: "dora-database"
port: 5432
user: "postgres"
password: "postgres"
name: "dora"
2 changes: 1 addition & 1 deletion ansible/inventories/devnet-0/group_vars/tx_fuzz_blobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tx_fuzz_blobs_container_name: tx_fuzz_blobs
tx_fuzz_blobs_container_command:
- blobs
- --no-al
- --rpc=https://{{ secret_nginx_shared_basic_auth.name }}:{{ secret_nginx_shared_basic_auth.password }}@rpc.bootnode-1.{{ network_subdomain }}
- --rpc=https://rpc.bootnode-1.{{ network_subdomain }}
- --sk={{ tx_fuzz_blobs_privkey }}
- --txcount=10

Expand Down
2 changes: 1 addition & 1 deletion ansible/inventories/devnet-0/group_vars/tx_fuzz_txs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tx_fuzz_txs_container_name: tx_fuzz_txs
tx_fuzz_txs_container_command:
- spam
- --no-al
- --rpc=https://{{ secret_nginx_shared_basic_auth.name }}:{{ secret_nginx_shared_basic_auth.password }}@rpc.bootnode-1.{{ network_subdomain }}
- --rpc=https://rpc.bootnode-1.{{ network_subdomain }}
- --sk={{ tx_fuzz_txs_privkey }}


Expand Down
3 changes: 3 additions & 0 deletions ansible/inventories/devnet-0/inventory.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ execution_node
;execution_node
#[beaconchain_explorer:children]
#lighthouse_erigon

[dora]
lighthouse-geth-1
6 changes: 6 additions & 0 deletions ansible/playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,9 @@
roles:
- role: ethpandaops.general.ethereum_post_network_setup
tags: [eth_post_network_setup, ethereum_post_network_setup]

- hosts: lighthouse-geth-1,bootnode-1
become: true
roles:
- role: ethpandaops.general.docker_nginx_proxy
tags: [ docker_nginx_proxy ]

0 comments on commit a2ba6f5

Please sign in to comment.