forked from AdoptOpenJDK/adopt-openjdk-kiss-vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildValhallaOpenJDK9UsingVagrant.sh
executable file
·25 lines (22 loc) · 1.64 KB
/
buildValhallaOpenJDK9UsingVagrant.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export VAGRANT_BOX_CPUS=2
export VAGRANT_BOX_MEMORY=4096
export VAGRANT_BOX_NAME_SUFFIX=valhalla-openjdk9
export SETUP_SCRIPT_NAME=setupEnvForValhallaOpenJDK9.sh
echo "***************************************************************************************"
echo "* *"
echo "* Vagrant start the VM (if not active) *"
echo "* *"
echo "***************************************************************************************"
vagrant up
echo "***************************************************************************************"
echo "* *"
echo "* Vagrant ssh-ing into the box, to execute OpenJDK commands... *"
echo "* *"
echo "***************************************************************************************"
vagrant ssh -c "sh /vagrant/scripts/buildOpenJDK.sh $SETUP_SCRIPT_NAME"
echo "***************************************************************************************"
echo "* *"
echo "* Vagrant ssh into the box, into command prompt *"
echo "* *"
echo "***************************************************************************************"
vagrant ssh