-
-
Save avandeursen/8148fb2657864a382af2add1f96e83ad to your computer and use it in GitHub Desktop.
Vagrantfile for a Java dev. environment with Oracle Java 8, maven and git (and commands for Eclipse).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.provider "virtualbox" do |vb| | |
vb.gui = true | |
vb.memory = "8192" | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo echo "LANG=en_US.UTF-8" >> /etc/environment | |
sudo echo "LANGUAGE=en_US.UTF-8" >> /etc/environment | |
sudo echo "LC_ALL=en_US.UTF-8" >> /etc/environment | |
sudo echo "LC_CTYPE=en_US.UTF-8" >> /etc/environment | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections | |
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections | |
sudo apt-get -y install oracle-java8-installer | |
sudo apt-get install -y xfce4 virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 | |
sudo apt-get install gnome-icon-theme-full tango-icon-theme | |
sudo echo "allowed_users=anybody" > /etc/X11/Xwrapper.config | |
sudo apt-get install -y maven git | |
# sudo wget -O /opt/eclipse-java-luna-SR2-linux-gtk-x86_64.tar.gz http://ftp.fau.de/eclipse/technology/epp/downloads/release/luna/SR2/eclipse-java-luna-SR2-linux-gtk-x86_64.tar.gz | |
# cd /opt/ && sudo tar -zxvf eclipse-java-luna-SR2-linux-gtk-x86_64.tar.gz | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment