Skip to content

Commit 3f4714d

Browse files
author
hdsldv
committed
OLMIS-7568 Fix git and gradle installation
1 parent a6e12cd commit 3f4714d

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
*.iml
12
.gradle/
3+
.idea/

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ WORKDIR /root
55
COPY install_gradle.sh .
66
ENV GRADLE_USER_HOME /gradle
77
ENV GRADLE_OPTS -Dorg.gradle.daemon=true
8+
ENV GIT_PYTHON_GIT_EXECUTABLE /usr/bin/git
89

910
RUN apk update && \
1011
apk add libstdc++ && \
@@ -16,6 +17,7 @@ RUN apk update && \
1617
apk add wget && \
1718
apk add curl && \
1819
apk add py-pip && \
20+
apk add git && \
1921
pip install --upgrade pip && \
2022
pip install transifex-client && \
2123
mkdir bin && \

install_gradle.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/bin/sh
2+
set -xe
3+
4+
# SHA256 of gradle-4.10.2-bin.zip
5+
CHECKSUM=b49c6da1b2cb67a0caf6c7480630b51c70a11ca2016ff2f555eaeda863143a29
6+
7+
wget -O gradle.zip 'https://downloads.gradle-dn.com/distributions/gradle-4.10.2-bin.zip'
8+
echo "$CHECKSUM gradle.zip" | sha256sum -c -w -
29

3-
wget -O gradle.zip http://services.gradle.org/distributions/gradle-4.10.2-bin.zip
410
unzip gradle.zip
511
rm gradle.zip
612
ln -s "$HOME/gradle-4.10.2/bin/gradle" /sbin/gradle

0 commit comments

Comments
 (0)