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

Support Ephemeral / Temp Mode #10

Closed
srilman opened this issue Jun 19, 2024 · 0 comments · Fixed by #15
Closed

Support Ephemeral / Temp Mode #10

srilman opened this issue Jun 19, 2024 · 0 comments · Fixed by #15

Comments

@srilman
Copy link
Contributor

srilman commented Jun 19, 2024

One useful use-case for Denali is as an ephemeral catalog for testing purposes. So a temporary database and warehouse. Right now, we can kind of replicate it with the following flags / environment variables:

DENALI_API_PORT=5000 DENALI_WAREHOUSE_PATH=/tmp/iceberg DENALI_DATABASE_URL=":memory:" DENALI_DATABASE_TYPE="sqlite3" denali start

It would be convenient if instead there was a flag that did this automatically, something like (or maybe --ephemeral:

denali start --temp

Some additional nice features to include:

  • Randomly choose port, retrying if port is occupied
  • Randomly generated local warehouse path, cleanup on exit
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 a pull request may close this issue.

1 participant