From 18b7ee689fb283e70b13be2168997195df2d4e5c Mon Sep 17 00:00:00 2001 From: Hal Rosenberg Date: Mon, 6 Nov 2017 21:19:56 -0500 Subject: [PATCH] Build executables in autoSetup script --- autoSetup.pl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/autoSetup.pl b/autoSetup.pl index 140a7e8c..c10cbe3f 100755 --- a/autoSetup.pl +++ b/autoSetup.pl @@ -103,6 +103,13 @@ sub forceLicenseAccept { print $fileout "Performing autoSetup for a $os host.\n"; runAndLog( $fileout, "setenforce 0" ); +print "Installing Java\n"; +runAndLog( $fileout, "yum install -y java-1.8.0-openjdk" ); +runAndLog( $fileout, "yum install -y java-1.8.0-openjdk-devel" ); + +print "Building Weathervane executables\n"; +runAndLog( $fileout, "./gradlew clean release" ); + print "Removing Network Manager if installed.\n"; print $fileout "Removing Network Manager if installed.\n"; runAndLog( $fileout, "systemctl disable NetworkManager" ); @@ -269,10 +276,6 @@ sub forceLicenseAccept { runAndLog( $fileout, "echo \"#LABEL=imageStore /mnt/imageStore ext4 defaults 1 1\" >> /etc/fstab" ); runAndLog( $fileout, "echo \"#LABEL=zookeeper /mnt/zookeeper ext4 defaults 1 1\" >> /etc/fstab" ); -print "Installing Java\n"; -runAndLog( $fileout, "yum install -y java-1.8.0-openjdk" ); -runAndLog( $fileout, "yum install -y java-1.8.0-openjdk-devel" ); - print "Fetching and installing Zookeeper\n"; print $fileout "Fetching and installing Zookeeper\n"; # Figure out the latest version of Zookeeper