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

[FEAT] Database persistence between Compose rebuilds #35

Open
HolecekM opened this issue Nov 29, 2024 · 0 comments
Open

[FEAT] Database persistence between Compose rebuilds #35

HolecekM opened this issue Nov 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@HolecekM
Copy link
Collaborator

HolecekM commented Nov 29, 2024

Is your feature request related to a problem? Please describe.
Whenever a challenge/class is updated, the user is instructed to run docker compose up --build after pulling. If this causes a recreation of the hackerlab container, all data stored in the database is lost, including task solves. This is frustrating because the user loses (records of) their progress.

Describe the solution you'd like
Persistent storage of the db.sqlite3 file, e.g. using a Docker volume or bind.

Additional context
The solution must consider the fact that database schemas may evolve, and should reflect such scenarios without sacrificing the data. Database migrations are a way to overcome this concern, either RYO or using an existing tool like pyway or yoyo.

@HolecekM HolecekM added the enhancement New feature or request label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant