Skip to content

Commit

Permalink
Sync Che conf
Browse files Browse the repository at this point in the history
Signed-off-by: Eugene Ivantsov <eivantsov@codenvy.com>
  • Loading branch information
Eugene Ivantsov committed May 5, 2016
1 parent 00b26db commit 831a5d4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 831a5d4

Please sign in to comment.