Skip to content

Commit

Permalink
snapshotter: add new config and new image (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
skylenet authored Jan 29, 2025
1 parent 8a5e8a3 commit e760df5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ ansible==10.1.0
molecule-containers==2.0.0
molecule==24.6.0
netaddr==1.3.0
pip==24.0
pip==25.0
requests==2.31 # Fix for not being able to run 'molecule test' using docker on mac. Issue: https://github.com/docker/docker-py/issues/3256
11 changes: 9 additions & 2 deletions roles/snapshotter/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ snapshotter_datadir: /data/snapshotter

snapshotter_cleanup: false # when set to "true" it will remove the container(s)

snapshotter_container_image: skylenet/snapshotter:latest
snapshotter_container_image: ghcr.io/ethpandaops/snapshotter:master
snapshotter_container_name: snapshotter
snapshotter_container_ports: []
snapshotter_container_restart_policy: always
snapshotter_container_networks: []
snapshotter_container_volumes_from: []
snapshotter_container_volumes:
- "{{ snapshotter_datadir }}:/etc/snapshotter:ro"
- "{{ snapshotter_datadir }}:/etc/snapshotter"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
snapshotter_container_env: {}
snapshotter_container_command:
Expand All @@ -30,9 +30,13 @@ snapshotter_ssh_known_hosts: ""
# Will be mounted within the container at:
# - /etc/snapshotter/config.yaml
snapshotter_config: |
server:
listen_addr: 0.0.0.0:5000
global:
logging: warn
chainID: "0x4268" # Holesky
database:
path: /etc/snapshotter/snapshots.db
ssh:
private_key_path: /etc/snapshotter/.ssh/id_rsa
private_key_passphrase_path: "/etc/snapshotter/.ssh/id_rsa.passphrase"
Expand All @@ -43,6 +47,7 @@ snapshotter_config: |
check_interval_seconds: 1
block_interval: 100000
run_once: false
dry_run: false
rclone:
version: "1.65.2"
env:
Expand Down Expand Up @@ -76,6 +81,7 @@ snapshotter_config: |
docker_containers:
engine_snooper: snooper-engine
execution: execution
beacon: beacon
endpoints:
beacon: http://localhost:5052
execution: http://localhost:8545
Expand All @@ -88,6 +94,7 @@ snapshotter_config: |
docker_containers:
engine_snooper: snooper-engine
execution: execution
beacon: beacon
endpoints:
beacon: http://localhost:5052
execution: http://localhost:8545
7 changes: 5 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/usr/bin/env bash

set -xe

# Install required tools using asdf

asdf plugin add shellcheck https://github.com/luizm/asdf-shellcheck.git
asdf plugin-add python
asdf plugin add shellcheck https://github.com/luizm/asdf-shellcheck.git || true
asdf plugin-add python || true

asdf install
asdf reshim

# Install python tools
pip install -r requirements.txt
Expand Down

0 comments on commit e760df5

Please sign in to comment.