aiidalab / aiidalab/aiidalab-docker-stack

Setting up the home directory in Kubernetes

Open
#460 1 comment 0 reactions 0 assignees View on GitHub
discussion
Dominant language
Python
Stars
10
Forks
15
Avg merge
1d 18h
Merged PRs (30d)
3

Description

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](https://kubernetes.io/docs/concepts/storage/volumes/#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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.