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

Add VM mount to backup workspaces and prefs on host file system #1176

Merged
1 commit merged into from
May 5, 2016

Conversation

ghost
Copy link

@ghost ghost commented May 4, 2016

_1 Upvote_ @TylerJewell @riuvshin please take a look. This way we auto mount a current dir into ~/che-storage which is configured as storage for Che workspaces and prefs inside a VM. As a result, even when a box is destroyed, workspaces, projects and prefs are there.

Signed-off-by: Eugene Ivantsov eivantsov@codenvy.com

@riuvshin
Copy link
Contributor

riuvshin commented May 4, 2016

LGTMN

@TylerJewell
Copy link

Three basic changes proposed.

  1. Let's name the directory /home/vagrant/.che.
  2. Let's copy /conf/che.properties to .che/che.properties.
  3. Let's update the properties in that file instead of appending.

@riuvshin
Copy link
Contributor

riuvshin commented May 4, 2016

+1 on this

Signed-off-by: Eugene Ivantsov <eivantsov@codenvy.com>
@ghost ghost force-pushed the vagrant_mount_and_config branch from bc46c75 to 831a5d4 Compare May 5, 2016 05:44
@ghost
Copy link
Author

ghost commented May 5, 2016

@TylerJewell @riuvshin I have updated the PR. che.properties is copied and updated now in ~/.che which is set to be the location of CHE_LOCAL_CONF_DIR

@codenvy-ci
Copy link

Build finished.

@TylerJewell
Copy link

@eivantsov LGTM. Question - did you not need to source .bashrc after you modify the file? I am surprised that the modification to the environment variable was picked up.

@ghost
Copy link
Author

ghost commented May 5, 2016

It's picked up since I both export it in the command line and in .bashrc. So, it works for Vagrant because of export in the command line, and for user (when logged in) in .bashrc.

@ghost ghost merged commit 425c54c into master May 5, 2016
@ghost ghost deleted the vagrant_mount_and_config branch May 5, 2016 13:34
@TylerJewell
Copy link

Great - will you consider doing a similar PR for the ARTIK IDE Vagrantfile?

@ghost
Copy link
Author

ghost commented May 5, 2016

yes, sure

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants