From acf876f4b232d5d7aa6377be3d62b99c1a288e3f Mon Sep 17 00:00:00 2001 From: malinero Date: Sun, 11 Jul 2021 00:30:09 +0200 Subject: [PATCH] Docker android: avoid gradle auto download --- Dockerfile.android | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dockerfile.android b/Dockerfile.android index b077fb3f..3ea401d7 100644 --- a/Dockerfile.android +++ b/Dockerfile.android @@ -206,6 +206,16 @@ RUN git clone -b v3.24.2 --depth 1 https://github.com/Kitware/CMake \ && PATH=${HOST_PATH} make -j${THREADS} install \ && rm -rf $(pwd) +RUN GRADLE_VERSION=5.6.4 \ + && GRADLE_HASH=1f3067073041bc44554d0efe5d402a33bc3d3c93cc39ab684f308586d732a80d \ + && wget -q https\://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip \ + && echo "${GRADLE_HASH} gradle-${GRADLE_VERSION}-bin.zip" | sha256sum -c \ + && GRADLE_LOCAL_PATH=gradle/wrapper/dists/gradle-${GRADLE_VERSION}-bin/bxirm19lnfz6nurbatndyydux \ + && mkdir -p ${GRADLE_LOCAL_PATH} \ + && mv gradle-${GRADLE_VERSION}-bin.zip ${GRADLE_LOCAL_PATH} + +ENV GRADLE_USER_HOME=${WORKDIR}/gradle + CMD set -ex \ && cd /monero-gui \ && mkdir -p build/Android/release \