Setting up the home directory in Kubernetes

Open
#460 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, kubernetes

Research direction

No files, tests, or entry points are named. First locate the repository's Kubernetes volume and home-directory configuration, then verify whether an init container with an emptyDir is the adopted approach; done means documenting the confirmed setup and its handling of pre-existing /home/jovyan files.

Written by the indexing model from the issue text.

Description

discussion

Just as a followup to my question about how kubernetes mounts volume, indeed it doesn't seem possible to use overlay mount to preserve pre-existing files in the /home/jovyan directory in the image. I found this StackOverflow answer interesting. https://stackoverflow.com/a/63128564/3682277

A common solution for your use-case is, to use an init container to set up the emptyDir, before the main container is started. So basically you specify the emptyDir as a volume mount in both the init container and the main container and have the init container copy the files into the emptyDir.

Might be interesting to explore, in case you haven't already CC @unkcpz @superstar54

In any case, whatever solution you arrive at at the end, we should document it somewhere in this repo.

Dominant language
Python
Stars
10
Forks
15
Avg merge
1d 3h
Merged PRs (30d)
12

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aiidalab/aiidalab-docker-stack

All issues in aiidalab/aiidalab-docker-stack

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.