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