mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-29 08:05:48 +03:00
STAM
61938a770d
bump versions updated `LazyGIT` to `0.40.2` converterd some envs to args sources.list fix + nextcloud updates python fix java fixes python fix java fixes bitbucket full images
78 lines
3.1 KiB
Docker
78 lines
3.1 KiB
Docker
FROM epicmorg/debian:stretch
|
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
##################################################################
|
|
# installing java8
|
|
##################################################################
|
|
RUN wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add - && \
|
|
echo 'deb https://packages.adoptium.net/artifactory/deb stretch main' > /etc/apt/sources.list.d/temurin-official.list && \
|
|
apt-get update && \
|
|
apt-get autoremove -y && \
|
|
apt-get install -y --allow-unauthenticated temurin-8-jdk && \
|
|
java -version
|
|
|
|
##################################################################
|
|
# Additional settings
|
|
##################################################################
|
|
ENV MAVEN_VERSION=3.9.6
|
|
ENV MAVEN_LINK=https://dlcdn.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.zip
|
|
ENV MAVEN_ROOT=/opt/maven
|
|
ENV MAVEN_PATH=${MAVEN_ROOT}/apache-maven-${MAVEN_VERSION}
|
|
ENV MAVEN_BIN=${MAVEN_PATH}/bin
|
|
ARG MAVEN_TEMP=/tmp/MAVEN.zip
|
|
|
|
ENV GRADLE_VERSION=8.6
|
|
ENV GRADLE_LINK=https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-all.zip
|
|
ENV GRADLE_ROOT=/opt/gradle
|
|
ENV GRADLE_PATH=${GRADLE_ROOT}/gradle-${GRADLE_VERSION}
|
|
ENV GRADLE_BIN=${GRADLE_PATH}/bin
|
|
ARG GRADLE_TEMP=/tmp/gradle.zip
|
|
|
|
ENV KTC_VERSION=1.9.22
|
|
ENV KTC_LINK=https://github.com/JetBrains/kotlin/releases/download/v${KTC_VERSION}/kotlin-compiler-${KTC_VERSION}.zip
|
|
ARG KTC_TEMP=/tmp/kotlinc.zip
|
|
ENV KTC_ROOT=/opt/kotlin
|
|
ENV KTC_PATH=${KTC_ROOT}/kotlinc
|
|
ENV KTC_BIN=${KTC_PATH}/bin
|
|
|
|
RUN mkdir -p ${MAVEN_PATH} ${KTC_PATH} ${GRADLE_PATH}
|
|
ENV PATH=${PATH}:${MAVEN_BIN}:${GRADLE_BIN}:${KTC_BIN}
|
|
|
|
##################################################################
|
|
# Maven
|
|
##################################################################
|
|
ENV MAVEN_HOME=${MAVEN_ROOT}
|
|
ENV M2_HOME=${MAVEN_ROOT}
|
|
|
|
RUN curl --insecure --progress-bar -L -o ${MAVEN_TEMP} --retry 10 --retry-delay 0 ${MAVEN_LINK}
|
|
RUN 7z x ${MAVEN_TEMP} -o${MAVEN_ROOT}
|
|
RUN chmod +x -R ${MAVEN_BIN}
|
|
RUN mvn -v
|
|
|
|
##################################################################
|
|
# GRADLE
|
|
##################################################################
|
|
RUN curl --insecure --progress-bar -L -o ${GRADLE_TEMP} --retry 10 --retry-delay 0 ${GRADLE_LINK}
|
|
RUN 7zz x ${GRADLE_TEMP} -o${GRADLE_ROOT}
|
|
RUN chmod +x -R ${GRADLE_BIN}
|
|
RUN gradle -v
|
|
|
|
##################################################################
|
|
# KOTLIN
|
|
##################################################################
|
|
RUN curl --insecure --progress-bar -L -o ${KTC_TEMP} --retry 10 --retry-delay 0 ${KTC_LINK}
|
|
RUN 7zz x $KTC_TEMP -o${KTC_ROOT}
|
|
RUN chmod +x -R ${KTC_BIN}
|
|
RUN kotlin -version
|
|
|
|
##################################################################
|
|
# cleanup
|
|
##################################################################
|
|
RUN apt-get purge policykit-1 -y && \
|
|
apt-get clean -y && \
|
|
apt-get autoclean -y && \
|
|
rm -rfv /var/lib/apt/lists/* && \
|
|
rm -rfv /tmp/* && \
|
|
rm -rfv /var/cache/apt/archives/*.deb
|