Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process-compose dbsync and node stacks #28

Merged
merged 7 commits into from
Jan 22, 2024
Merged

Conversation

johnalotoski
Copy link
Collaborator

@johnalotoski johnalotoski commented Jan 19, 2024

Overview:

Adds some useful process compose stacks for running cardano-node or a full dbsync stack for testnets and mainnet

Example process compose node stack running:
image

Example process compose dbsync stack running for sanchonet:
image

Details:

  • Bump node to 8.7.3 from capkgs
  • Bump process-compose to v0.80.0
  • Add process-compose-flake and services-flake for support of process-compose run jobs
  • To run, nix >= 2.17.0 is required as well as experimental-features = nix-command flakes fetch-closure in addition to flakes support
  • Add process-compose stacks of:
    • Dbsync stack for each testnet plus mainnet as nix run .#run-process-compose-dbsync-$NETWORK
    • Node stack for testnets plus mainnet as nix run .#run-process-compose-node-stack

Caveats:

  • State directories prefixes default to $CWD/.run and in the case of postgresql sockets $TMPDIR/process-compose
  • Multiple dbsync process-compose stacks can be run concurrently without interfering with each other
  • To avoid doubling node storage, node jobs and dbsync jobs for a given network use the same node state path
  • In this case, only 1 of a node job from the node stack or a dbsync stack for the same network can be run at a time

@johnalotoski johnalotoski changed the title Next PR 2024-01-10 Process-compose dbsync and node stacks Jan 22, 2024
@johnalotoski johnalotoski merged commit ad0d236 into main Jan 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant