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

Easy setup&teardown: in-memory or temp data folder #398

Open
SebastienGllmt opened this issue Dec 16, 2024 · 0 comments
Open

Easy setup&teardown: in-memory or temp data folder #398

SebastienGllmt opened this issue Dec 16, 2024 · 0 comments

Comments

@SebastienGllmt
Copy link
Contributor

SebastienGllmt commented Dec 16, 2024

Right now in your dolos config you need to choose a path folder

example

[storage]
path = "data"
max_wal_history = 10000

However, when I'm running Dolos on a temporary localhost Cardano chain that deletes itself as soon as I press ctrl+c, I don't want a data folder to stick around since it can cause issues if it's not deleted

There are two ways to solve this imo:

  1. easier: add a way to have the storage path be in a temporary OS folder. This option requires little code change on the Dolos side (just fetch the temporary folder path depending on the OS)
  2. more complicated: add some switch in the code to use a virtual filesystem or keep things in-memory as an option. This is more complicated because it requires the entire Dolos codebase to be aware that things may be in-memory instead of on disk

Note: as a temporary workaround, you can run

rm -rf ./data && rm -rf dolos.socket && dolos bootstrap relay && dolos daemon

note: rm -f dolos.socket is required because of #293

@SebastienGllmt SebastienGllmt changed the title Temporary data folder Easy setup&teardown: in-memory or temp data folder Dec 20, 2024
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

No branches or pull requests

1 participant