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

Describe persistent storage of notebook files and credential store #78

Closed
2 tasks done
ckunki opened this issue Nov 28, 2023 · 0 comments · Fixed by #117
Closed
2 tasks done

Describe persistent storage of notebook files and credential store #78

ckunki opened this issue Nov 28, 2023 · 0 comments · Fixed by #117
Assignees
Labels
documentation User guides, tutorials, specifications

Comments

@ckunki
Copy link
Contributor

ckunki commented Nov 28, 2023

Ticket #51 investigated how to store the Notebooks persistent, in case of Docker Container removal, resulting in the proposal to use Docker VOLUMES for notebook files and secret store entries.

The current idea is to support 2 scenarios

  • S1) AI-Lab manages the data anonymously and encapsulated
  • S2) user (partially) modifies the data, keeps a copy of the data and provides the data when using the AI-Lab

Following the results of ticket #51:

  • By default, Ai-Lab will create an anonymous Docker Volume and mount it to $MOUNT inside the Docker Container, which implements scenario S1.
  • For scenario S2
    • The user
      • Creates an empty Docker Volume (either by docker volume create or simply by using in docker -v)
      • mounts the empty volume to $MOUNT when starting the Docker Container
    • On Container start
      • Ai_lab will call entrypoint.py (as always)
      • entrypoint.py copies the data from $BACKUP to $MOUNT
      • hence, into the user's Docker volume, which is empty at that point in time
    • If the user runs the Container again

The current ticket therefore requests to

  • add a VOLUME directive to Dockerfile
  • Document the usage so that end users can choose between scenario S1 and S2
    • How to create a docker volume?
    • How to access files in it?
    • How to mount it to the DSS Docker container?
    • How to backup it?

For mounting a Docker volume please do not add a slash as prefix to the volume name.

  • -v /host:/container mounts host directory /host
  • while -v vol:/container mounts Docker volume vol

The mount point inside the Docker container in both cases is /container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation User guides, tutorials, specifications
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants