From a0ee681ab0c7c736209f218e6cb3154ca8d3675a Mon Sep 17 00:00:00 2001 From: Snehal Adsule <19539903+SnehalA@users.noreply.github.com> Date: Wed, 26 Aug 2020 15:23:16 -0700 Subject: [PATCH 1/2] Create build.sh --- build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 00000000..697a4bb7 --- /dev/null +++ b/build.sh @@ -0,0 +1,14 @@ + dep(){ + curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash + sudo yum install -y git-lfs + git lfs install + sudo yum install -y java-1.8.0-openjdk-devel git cmake patch libtool automake yasm zlib-devel centos-release-scl + sudo yum install -y devtoolset-7-gcc-* +} +echo "Installing dependencies" +dep +source scl_source enable devtoolset-7 +# export JAVA_PROXY="-Dhttp.proxyHost=proxy.example.com -Dhttp.proxyPort=1234 -Dhttps.proxyHost=proxy.example.com -Dhttps.proxyPort=1234" +# gcc --version +./gradlew $JAVA_PROXY clean +./gradlew $JAVA_PROXY build From 1f9352af24b3e68b608186f1c5e662919cffbc41 Mon Sep 17 00:00:00 2001 From: Snehal Adsule <19539903+SnehalA@users.noreply.github.com> Date: Wed, 26 Aug 2020 15:26:28 -0700 Subject: [PATCH 2/2] Update build.sh --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 697a4bb7..04f72adb 100644 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ - dep(){ + install_dep(){ curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash sudo yum install -y git-lfs git lfs install @@ -6,7 +6,7 @@ sudo yum install -y devtoolset-7-gcc-* } echo "Installing dependencies" -dep +install_dep source scl_source enable devtoolset-7 # export JAVA_PROXY="-Dhttp.proxyHost=proxy.example.com -Dhttp.proxyPort=1234 -Dhttps.proxyHost=proxy.example.com -Dhttps.proxyPort=1234" # gcc --version