-
Notifications
You must be signed in to change notification settings - Fork 120
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
Ways to mount folder inside host machine to auxiliary machine? #499
Comments
Yes - there is a way. But you need to have a small sense of adventure. Your workspace dev machine has sshd running inside of it. It is possible to use sshfs from within the auxiliary machine to connect to the workspace machine and then mount a specific You'd then need to make sure that the public / private key-pair between the dev & auxiliary machine is properly configured so that sshfs can work directly. If you need some specific code on how sshfs works between the containers, I will need some time to get that uploaded. It's currently in an unmarked branch for experimentation, though it seems to work very reliably. |
@soanni another option is to use rsync |
@soanni let me know if you need help with this - I have a few ready to use commands that you can try right away. |
@eivantsov thank you. i'm interested in everything new regarding Codenvy so i'm ready to try your commands. |
@eivantsov would you please provide these commands you have as I am now facing issue with this, I need to mount my container with a NAS server. |
@MuhamadSherif I do not think rsync commands will solve mounting problem. Perhaps, if you elaborate on the use case, I can be more explicit. |
@eivantsov @JamesDrummond - we are getting this question quite a bit, so its maybe time for us to start to prepare a list of ways to mount external folders into a workspace. This is my starting list. This may not be accurate or complete. 1: Install your own Codenvy Enterprise. Within CE, we give admins the ability to mount additional host directories into users workspaces. So this would be a situation where you have a closed environment and host mounting is allowed. 2: You can sshfs mount a workspace directory in 3: You can setup a unison command, which does a recurring synchronization between a workspace and another external drive. This also requires ssh access to the workspace. This is a scenario where the external system is reaching into the workspace. 4: In scenarios where the workspace wants to push out - then the full range of FTP / SFTP / rsynch / SSH commands from one system to another is available. |
@TylerJewell If we allow admin to mount extra volumes It will have effect per installation. Each user will have the same mounted directories. |
IMHO it make sense for CHE only. |
Yeah - we understand the risk and limits of this. There are some advantages temporarily though. |
So, user story will be: |
Yes. |
I'm still not clear on why volumes_from is critical here. From what I have read, volumes_from is just a way to allow a container to use a set of volumes already defined in another container. It seems like a shortcut to having to re-define volumes in each container of a compose environment. But I thought that in M1 we weren't going to be able to do the volume mount at all - is that wrong? What I'm trying to understand is that if we give 5.0.0-M1 to a customer can they try it and expect to be able to mount volumes in Codenvy? |
Postponed to 5.0.0-M3 |
@tolusha - the che issue (eclipse-che/che#2366) may get pushed to M3 (Alex is working on it now), but so far it's not clear to me that the Che issue is the full solution to this issue. I need more information or explanation. |
#728 Extra volume mounting. |
For instance:
|
@tolusha I believe we still need the fix for eclipse-che/che#2366 before we can close this. Your PR alone doesn't really let us do the second use case smoothly. |
They are two separated issues. |
I understand that your PR and the Che issue are separate and cover different use cases but this issue is about the two use cases outlined here: #499 (comment) So I don't want to close this issue until both are complete and smooth. |
Adjusted milestone to match the release where VOLUMES_FROM will be fixed. |
Closing issue as eclipse-che/che#2366 has been closed in M4 as well. |
Hello, Codenvy Team.
Is there any possible way to share the /projects folder inside workspace machine to auxiliary machine?
The picture is like that:
As far as i understand workspace machine is run like that
docker run - v /projects ...
How can i run the additional treatment machine the same way?
Thank you.
The text was updated successfully, but these errors were encountered: