Skip to content

Commit

Permalink
Build executables in autoSetup script
Browse files Browse the repository at this point in the history
  • Loading branch information
hrosenbe committed Nov 7, 2017
1 parent 98f7748 commit 18b7ee6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions autoSetup.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 18b7ee6

Please sign in to comment.