From 2d4082b259896d89acbf1479a6c977cf09d0172f Mon Sep 17 00:00:00 2001 From: "C.J. Collier" Date: Tue, 19 Jul 2016 15:15:09 -0700 Subject: prefetch maven * call maven install function * maven install function installs from file in /vagrant Jenkins will be modified to point to this pre-installed maven. This will eliminate many problems caused by an inability to fetch common files. Another solution would be to host a caching proxy within Vexxhost and set the http_proxy and https_proxy environment variables to use this host. Change-Id: I76d1f3c2526b45dbe0fa4b2a17d3e30d434092ce Signed-off-by: C.J. Collier --- vagrant/lib/bootstrap-functions.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'vagrant/lib') diff --git a/vagrant/lib/bootstrap-functions.sh b/vagrant/lib/bootstrap-functions.sh index 84e659593..027c69d04 100644 --- a/vagrant/lib/bootstrap-functions.sh +++ b/vagrant/lib/bootstrap-functions.sh @@ -5,14 +5,12 @@ do_setup() { } do_mvn_install() { - MAVEN_MIRROR=apache.mirrors.tds.net MAVEN_VERSION=3.3.9 - MAVEN_RELEASE=http://${MAVEN_MIRROR}/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz + MAVEN_FILENAME=apache-maven-${MAVEN_VERSION}-bin.tar.gz MAVEN_HOME=/opt/apache/maven - mkdir -p /opt/apache/maven - wget -O - ${MAVEN_RELEASE} | \ - tar xz -C ${MAVEN_HOME} --strip-components 1 + mkdir -p ${MAVEN_HOME} + tar -C ${MAVEN_HOME} --strip-components 1 -xzf /vagrant/${MAVEN_FILENAME} } @@ -223,7 +221,7 @@ rh_install_pkgs() { OUTPUT=$(rpm -qa epel-release) if [ -z "$OUTPUT" ] then - yum install -q -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm + yum install -q -y /vagrant/epel-release-latest-7.noarch.rpm fi # Install components to build Ganglia modules -- cgit 1.2.3-korg