Владимир Томишинец 5 éve
szülő
commit
e4515354d2
1 módosított fájl, 4 hozzáadás és 3 törlés
  1. 4 3
      Dockerfile

+ 4 - 3
Dockerfile

@@ -1,14 +1,15 @@
 FROM registry.sdsys.ru/iru/iru-base:7.6 as build
 ENV JAVA_HOME=/usr/java/jdk1.8.0_191-amd64
 ARG branch=newPromoSpring
+ARG gradle_version=5.2.1
 RUN mkdir /root/.ssh
 COPY id_rsa /root/.ssh
 #WORKDIR /web-registration-cloud/promo/build/libs/
 RUN yum install -y https://centos7.iuscommunity.org/ius-release.rpm \
     && yum install -y wget unzip git2u figlet jdk1.8 maven \
-    && wget https://services.gradle.org/distributions/gradle-5.2.1-bin.zip -q -P /tmp \
-    && unzip -d /opt/gradle /tmp/gradle-*.zip \
-    && export GRADLE_HOME=/opt/gradle/gradle-5.2.1 \
+    && wget https://services.gradle.org/distributions/gradle-${gradle_version}-bin.zip -q -P /tmp \
+    && unzip -d /opt/gradle /tmp/gradle-${gradle_version}-bin.zip \
+    && export GRADLE_HOME=/opt/gradle/gradle-${gradle_version} \
     && export PATH=${GRADLE_HOME}/bin:${PATH} \
     && gradle -v \
     && printf "Host git.alfatell.ru \n\tStrictHostKeyChecking no" > /root/.ssh/config \