From 831a5d42d41368e8b01e283c960285e1bada6b1a Mon Sep 17 00:00:00 2001 From: Eugene Ivantsov Date: Thu, 5 May 2016 08:43:21 +0300 Subject: [PATCH] Sync Che conf Signed-off-by: Eugene Ivantsov --- Vagrantfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index b68a89cb3f..e3b000e701 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -17,6 +17,7 @@ Vagrant.configure(2) do |config| config.vm.box_download_insecure = true config.ssh.insert_key = false config.vm.network :private_network, ip: "192.168.28.30" + config.vm.synced_folder ".", "/home/vagrant/.che" config.vm.define "che" do |che| end config.vm.provider "virtualbox" do |vb| @@ -70,6 +71,12 @@ Vagrant.configure(2) do |config| sudo chown -R vagrant:vagrant * &>/dev/null export JAVA_HOME=/usr &>/dev/null + # exporting CHE_LOCAL_CONF_DIR, reconfiguring Che to store workspaces, projects and prefs outside the Tomcat + export CHE_LOCAL_CONF_DIR=/home/vagrant/.che &>/dev/null + cp /home/vagrant/eclipse-che-*/conf/che.properties /home/vagrant/.che/che.properties + sed -i "s/\${catalina.base}\/temp\/local-storage/\/home\/vagrant\/.che/g" /home/vagrant/.che/che.properties + sed -i "s|\${che.home}/workspaces|/home/vagrant/.che|" /home/vagrant/.che/che.properties + echo 'export CHE_LOCAL_CONF_DIR=/home/vagrant/.che' >> /home/vagrant/.bashrc echo "." echo "." echo "ECLIPSE CHE: PREPPING SERVER" @@ -85,7 +92,7 @@ Vagrant.configure(2) do |config| echo vagrant | sudo -S -E -u vagrant /home/vagrant/eclipse-che-*/bin/che.sh --remote:192.168.28.30 --skip:client -g start SHELL - config.vm.provision "shell" do |s| + config.vm.provision "shell" do |s| s.inline = $script s.args = [$http_proxy, $https_proxy] end