parent
00b26db59f
commit
831a5d42d4
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue