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

Share files and folders between containers within a workspace #16197

Closed
svkr2k opened this issue Mar 2, 2020 · 8 comments
Closed

Share files and folders between containers within a workspace #16197

svkr2k opened this issue Mar 2, 2020 · 8 comments
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@svkr2k
Copy link

svkr2k commented Mar 2, 2020

I would like to share a large set of files between two containers in a workspace.

Currently, in order to share the certain files under a folder, I included the following mount paths in the plugin description yaml (which is referenced in devfile) for both the containers:

  containers:
     volumes:
         - mountPath: "/home/testFolder"
           name: myTestFolder

This seem to work when the testFolder is empty. so that the files generated by one container can be accessed by another container.

But, I would like to share the folders that are "pre-populated" or it already contains a large set of files and multiple containers with in a workspace needs to use them.

How can it be done ? mountPath doesnt seem to work. When I tried to mounth the path as shown above, the container sees an empty mounted folder. Please help.

@svkr2k svkr2k added the kind/question Questions that haven't been identified as being feature requests or bugs. label Mar 2, 2020
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Mar 2, 2020
@skabashnyuk
Copy link
Contributor

@svkr2k Thank you for your question. I think you can't do that at this moment.
Most likely this can help you.

@svkr2k
Copy link
Author

svkr2k commented Mar 2, 2020

Hi @skabashnyuk , thank you !
Kindly clarify:

In the example https://github.com/eclipse/che-plugin-registry/blob/master/v3/plugins/eclipse/che-theia/next/meta.yaml#L70, "/plugins" folder is mounted.

  1. So, can't this folder be "pre-populated" in the cheEditor while building it's image?
  2. Can this folder be shared with other container in the same workspace?

@ibuziuk ibuziuk added status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Mar 2, 2020
@tsmaeder
Copy link
Contributor

tsmaeder commented Mar 3, 2020

@svkr2k as far as I know, volumes always start empty in kubernetes/OpenShift. There were conversations in the past about cases where this is possible, but it sounded like not the thing to do.
What you can do is put the content in an init container and copy it to the persistent volume on startup. If you check for existence, you would only have to do this once.

@svkr2k
Copy link
Author

svkr2k commented Mar 5, 2020

Thank you, @tsmaeder . I shall try...

@nickboldt nickboldt added this to the 7.14 milestone May 26, 2020
@nickboldt nickboldt removed the status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach label May 26, 2020
@nickboldt
Copy link
Contributor

@ericwill can you add update here?

@ericwill
Copy link
Contributor

Documentation for mounting maven-settings instead of /projects has been merged. The remaining work is the last two bullet points from #16832:

I believe these items are belong to the platform team, cc @skabashnyuk

@nickboldt nickboldt modified the milestones: 7.14, Backlog - Plugins Jun 22, 2020
@nickboldt
Copy link
Contributor

4 weeks later... slip to backlog.

@ericwill ericwill removed this from the Backlog - Plugins milestone Jul 15, 2020
@ericwill
Copy link
Contributor

The issues at hand here have been documented already, there is nothing pending from the plugins side.

Please reopen the issue if you continue to experience a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

7 participants