Skip to content

Commit

Permalink
feat: add Dolos package
Browse files Browse the repository at this point in the history
Signed-off-by: Ales Verbic <verbotenj@blinklabs.io>
  • Loading branch information
verbotenj committed Apr 28, 2024
1 parent d89fb5b commit e8cbb66
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
36 changes: 36 additions & 0 deletions packages/dolos/dolos-0.7.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: dolos
version: 0.7.0
description: Description of dolos package
dependencies:
- cardano-node >= 8.9.1
installSteps:
- docker:
containerName: dolos
image: ghcr.io/txpipe/dolos:v0.7.0
command:
- dolos
- daemon
binds:
- '{{ .Paths.DataDir }}/:/etc/dolos/'
- '{{ .Paths.ContextDir }}/config/{{ .Context.Network }}:/config'
ports:
- "30013"
- "50051"
pullOnly: false
- file:
binary: true
filename: daemon.toml
source: files/daemon.toml.gotmpl
outputs:
- name: dolos-ouroboros
description: Dolos ouroboros service
value: 'http://localhost:{{ index (index .Ports "dolos") "50051" }}'
- name: dolos-grpc
description: Dolos ouroboros service
value: 'http://localhost:{{ index (index .Ports "dolos") "30013" }}'
tags:
- docker
- linux
- darwin
- amd64
- arm64
33 changes: 33 additions & 0 deletions packages/dolos/files/daemon.toml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# https://dolos.txpipe.io/configuration
[upstream]
peer_address = "{{ .Context.Network }}-node.world.dev.cardano.org:30000"
network_magic = {{ .Context.NetworkMagic }}
is_testnet = true

[storage]
path = "./tmp/data"
wal_size = 1000

[genesis]
byron_path = "/config/byron-genesis.json"
shelley_path = "/config/shelley-genesis.json"
alonzo_path = "/config/alonzo-genesis.json"

[sync]
pull_batch_size = 200

[submit]
prune_height = 10000
# validate_phase_1 = false
# validate_phase_2 = false

[serve.grpc]
listen_address = "[::]:50051"

[serve.ouroboros]
listen_address = "localhost:30013"
# https://github.com/txpipe/dolos/blob/main/examples/sync-mainnet/dolos.toml#L26
magic = 0

[logging]
max_level = "debug"

0 comments on commit e8cbb66

Please sign in to comment.