Skip to content

[FEAT] Database persistence between Compose rebuilds #35

Description

@HolecekM

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions