Skip to content

Commit

Permalink
Update Dockerfile to use noble basic mirroring and replace the apk co…
Browse files Browse the repository at this point in the history
…mmand with apt-get
  • Loading branch information
danbao committed Jan 9, 2025
1 parent 193dd84 commit a81f905
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
- name: Generate README Update
run: |
BASE_IMAGE="alpine"
BASE_IMAGE="noble"
IMAGE_NAME=ringcentral/maven
GH_DOCKER_PKG_IMAGE_NAME=ghcr.io/ringcentral-docker/maven/maven
Expand Down
10 changes: 5 additions & 5 deletions jdk11/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/ringcentral-docker/jdk/jdk:11.0.25-alpine
FROM ghcr.io/ringcentral-docker/jdk/jdk:11.0.25-noble
LABEL maintainer="[email protected]"

ENV MAVEN_VERSION=3.9.9 \
Expand All @@ -8,15 +8,15 @@ ENV MAVEN_VERSION=3.9.9 \
#==============
# Install and Setting Maven
#==============
RUN apk update \
&& apk add --no-cache --virtual=build-dependencies wget \
RUN apt-get update \
&& apt-get install -y --no-install-recommends wget \
&& cd /tmp \
&& mkdir -p /usr/share/maven \
&& wget "${MAVEN_BASE_URL}/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz" 2>/dev/null \
&& tar -xzf "apache-maven-${MAVEN_VERSION}-bin.tar.gz" -C /usr/share/maven --strip-components=1 \
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn \
&& apk del build-dependencies \
&& rm -rf /tmp/*
&& apt-get purge -y --auto-remove wget \
&& rm -rf /var/lib/apt/lists/* /tmp/*

COPY conf/settings.xml /usr/share/maven/conf/settings.xml

Expand Down
10 changes: 5 additions & 5 deletions jdk17/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/ringcentral-docker/jdk/jdk:17.0.13-alpine
FROM ghcr.io/ringcentral-docker/jdk/jdk:17.0.13-noble
LABEL maintainer="[email protected]"

ENV MAVEN_VERSION=3.9.9 \
Expand All @@ -8,15 +8,15 @@ ENV MAVEN_VERSION=3.9.9 \
#==============
# Install and Setting Maven
#==============
RUN apk update \
&& apk add --no-cache --virtual=build-dependencies wget \
RUN apt-get update \
&& apt-get install -y --no-install-recommends wget \
&& cd /tmp \
&& mkdir -p /usr/share/maven \
&& wget "${MAVEN_BASE_URL}/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz" 2>/dev/null \
&& tar -xzf "apache-maven-${MAVEN_VERSION}-bin.tar.gz" -C /usr/share/maven --strip-components=1 \
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn \
&& apk del build-dependencies \
&& rm -rf /tmp/*
&& apt-get purge -y --auto-remove wget \
&& rm -rf /var/lib/apt/lists/* /tmp/*

COPY conf/settings.xml /usr/share/maven/conf/settings.xml

Expand Down
10 changes: 5 additions & 5 deletions jdk21/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/ringcentral-docker/jdk/jdk:21.0.5-alpine
FROM ghcr.io/ringcentral-docker/jdk/jdk:21.0.5-noble
LABEL maintainer="[email protected]"

ENV MAVEN_VERSION=3.9.9 \
Expand All @@ -8,15 +8,15 @@ ENV MAVEN_VERSION=3.9.9 \
#==============
# Install and Setting Maven
#==============
RUN apk update \
&& apk add --no-cache --virtual=build-dependencies wget \
RUN apt-get update \
&& apt-get install -y --no-install-recommends wget \
&& cd /tmp \
&& mkdir -p /usr/share/maven \
&& wget "${MAVEN_BASE_URL}/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz" 2>/dev/null \
&& tar -xzf "apache-maven-${MAVEN_VERSION}-bin.tar.gz" -C /usr/share/maven --strip-components=1 \
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn \
&& apk del build-dependencies \
&& rm -rf /tmp/*
&& apt-get purge -y --auto-remove wget \
&& rm -rf /var/lib/apt/lists/* /tmp/*

COPY conf/settings.xml /usr/share/maven/conf/settings.xml

Expand Down
10 changes: 5 additions & 5 deletions jdk8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/ringcentral-docker/jdk/jdk:8u432-alpine
FROM ghcr.io/ringcentral-docker/jdk/jdk:8u432-noble
LABEL maintainer="[email protected]"

ENV MAVEN_VERSION=3.8.8 \
Expand All @@ -8,15 +8,15 @@ ENV MAVEN_VERSION=3.8.8 \
#==============
# Install and Setting Maven
#==============
RUN apk update \
&& apk add --no-cache --virtual=build-dependencies wget \
RUN apt-get update \
&& apt-get install -y --no-install-recommends wget \
&& cd /tmp \
&& mkdir -p /usr/share/maven \
&& wget "${MAVEN_BASE_URL}/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz" 2>/dev/null \
&& tar -xzf "apache-maven-${MAVEN_VERSION}-bin.tar.gz" -C /usr/share/maven --strip-components=1 \
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn \
&& apk del build-dependencies \
&& rm -rf /tmp/*
&& apt-get purge -y --auto-remove wget \
&& rm -rf /var/lib/apt/lists/* /tmp/*

COPY conf/settings.xml /usr/share/maven/conf/settings.xml

Expand Down

0 comments on commit a81f905

Please sign in to comment.