You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Do not edit individual Dockerfiles manually. Instead, please make changes to the Dockerfile.template, which will be used by the build script to generate Dockerfiles.
4
+
5
+
# By policy, the base image tag should be a quarterly tag unless there's a
6
+
# specific reason to use a different one. This means January, April, July, or
7
+
# October.
8
+
9
+
FROM cimg/base:2023.04
10
+
11
+
LABEL maintainer="Community & Partner Engineering Team <[email protected]>"
12
+
13
+
# Java 17 is default
14
+
RUN sudo apt-get update && sudo apt-get install -y \
15
+
ant \
16
+
openjdk-8-jdk \
17
+
openjdk-17-jdk \
18
+
ruby-full \
19
+
&& \
20
+
sudo rm -rf /var/lib/apt/lists/* && \
21
+
ruby -v && \
22
+
sudo gem install bundler && \
23
+
bundle version
24
+
25
+
ENV M2_HOME /usr/local/apache-maven
26
+
ENV MAVEN_OPTS -Xmx2048m
27
+
ENV PATH $M2_HOME/bin:$PATH
28
+
# Set JAVA_HOME (and related) environment variable. This will be set to our
29
+
# default Java version of 17 but the user would need to reset it when changing
30
+
# JAVA versions.
31
+
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
32
+
ENV JDK_HOME=${JAVA_HOME}
33
+
ENV JRE_HOME=${JDK_HOME}
34
+
ENV MAVEN_VERSION=3.9.1
35
+
RUN curl -sSL -o /tmp/maven.tar.gz http://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz && \
36
+
sudo tar -xz -C /usr/local -f /tmp/maven.tar.gz && \
0 commit comments