Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDK 8u432-b06 11.0.25+9 17.0.13+11 21.0.5+11 23+7 support #267

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions library/openjdk/11-debian-10/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

FROM cr.loongnix.cn/library/debian:buster-slim

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata curl ca-certificates fontconfig locales binutils && \
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen en_US.UTF-8 && \
rm -rf /var/lib/apt/lists/*


ENV JAVA_VERSION jdk-11.0.25+9

RUN set -eux; \
ESUM='0b34676cbd865b73c6340fdcb4020e5e540eb03560432da77e5be30b5979d676'; \
BINARY_URL='http://ftp.loongnix.cn/Java/openjdk11/loongson11.12.20-fx-jdk11.0.25_9-linux-loongarch64.tar.gz'; \
curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; \
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \
mkdir -p /opt/java/openjdk; \
cd /opt/java/openjdk; \
tar -xf /tmp/openjdk.tar.gz --strip-components=1; \
rm -rf /tmp/openjdk.tar.gz;

ENV JAVA_HOME=/opt/java/openjdk \
PATH="/opt/java/openjdk/bin:$PATH"

RUN echo Verifying install ... \
&& echo javac -version && javac -version \
&& echo java -version && java -version \
&& echo Complete.

CMD ["jshell"]
31 changes: 31 additions & 0 deletions library/openjdk/11-debian-10/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This file is generated by the template.

REGISTRY?=cr.loongnix.cn
ORGANIZATION?=library
REPOSITORY?=openjdk

IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY)

default: image

image:
docker build \
-t $(IMAGE):11 \
-t $(IMAGE):11-debian-10 \
-t $(IMAGE):11.0.25_9 \
-t $(IMAGE):11.0.25_9-debian-10 \
-t $(IMAGE):11-debian \
-t $(IMAGE):11.0.25_9-debian \
-t $(IMAGE):11-debian-buster-slim \
-t $(IMAGE):11.0.25_9-debian-buster-slim \
.

push:
docker push $(IMAGE):11
docker push $(IMAGE):11-debian-10
docker push $(IMAGE):11.0.25_9
docker push $(IMAGE):11.0.25_9-debian-10
docker push $(IMAGE):11-debian
docker push $(IMAGE):11.0.25_9-debian
docker push $(IMAGE):11-debian-buster-slim
docker push $(IMAGE):11.0.25_9-debian-buster-slim
43 changes: 43 additions & 0 deletions library/openjdk/11-loongnix-server-8.4.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

FROM cr.loongnix.cn/loongson/loongnix-server:8.4.0

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

RUN yum install -y tzdata openssl curl ca-certificates fontconfig gzip tar binutils \
&& yum clean all


ENV JAVA_VERSION jdk-11.0.25+9

RUN set -eux; \
ESUM='0b34676cbd865b73c6340fdcb4020e5e540eb03560432da77e5be30b5979d676'; \
BINARY_URL='http://ftp.loongnix.cn/Java/openjdk11/loongson11.12.20-fx-jdk11.0.25_9-linux-loongarch64.tar.gz'; \
curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; \
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \
mkdir -p /opt/java/openjdk; \
cd /opt/java/openjdk; \
tar -xf /tmp/openjdk.tar.gz --strip-components=1; \
rm -rf /tmp/openjdk.tar.gz;

ENV JAVA_HOME=/opt/java/openjdk \
PATH="/opt/java/openjdk/bin:$PATH"

RUN echo Verifying install ... \
&& echo javac -version && javac -version \
&& echo java -version && java -version \
&& echo Complete.

CMD ["jshell"]
23 changes: 23 additions & 0 deletions library/openjdk/11-loongnix-server-8.4.0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This file is generated by the template.

REGISTRY?=cr.loongnix.cn
ORGANIZATION?=library
REPOSITORY?=openjdk

IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY)

default: image

image:
docker build \
-t $(IMAGE):11-loongnix-server-8.4.0 \
-t $(IMAGE):11.0.25_9-loongnix-server-8.4.0 \
-t $(IMAGE):11-loongnix-server \
-t $(IMAGE):11.0.25_9-loongnix-server \
.

push:
docker push $(IMAGE):11-loongnix-server-8.4.0
docker push $(IMAGE):11.0.25_9-loongnix-server-8.4.0
docker push $(IMAGE):11-loongnix-server
docker push $(IMAGE):11.0.25_9-loongnix-server
46 changes: 46 additions & 0 deletions library/openjdk/17-debian-10/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

FROM cr.loongnix.cn/library/debian:buster-slim

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata curl ca-certificates fontconfig locales binutils && \
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen en_US.UTF-8 && \
rm -rf /var/lib/apt/lists/*


ENV JAVA_VERSION jdk-17.0.13+11

RUN set -eux; \
ESUM='94c0fbbcfb39c0ae19869c6126c7807b3065e11a1fcb6e885632835c699c9da4'; \
BINARY_URL='http://ftp.loongnix.cn/Java/openjdk17/loongson17.12.16-fx-jdk17.0.13_11-linux-loongarch64.tar.gz'; \
curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; \
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \
mkdir -p /opt/java/openjdk; \
cd /opt/java/openjdk; \
tar -xf /tmp/openjdk.tar.gz --strip-components=1; \
rm -rf /tmp/openjdk.tar.gz;

ENV JAVA_HOME=/opt/java/openjdk \
PATH="/opt/java/openjdk/bin:$PATH"

RUN echo Verifying install ... \
&& echo javac -version && javac -version \
&& echo java -version && java -version \
&& echo Complete.

CMD ["jshell"]
32 changes: 32 additions & 0 deletions library/openjdk/17-debian-10/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This file is generated by the template.

REGISTRY?=cr.loongnix.cn
ORGANIZATION?=library
REPOSITORY?=openjdk

IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY)

default: image

image:
docker build \
-t $(IMAGE):17 \
-t $(IMAGE):17-debian-10 \
-t $(IMAGE):17.0.13_11 \
-t $(IMAGE):17.0.13_11-debian-10 \
-t $(IMAGE):17-debian \
-t $(IMAGE):17.0.13_11-debian \
-t $(IMAGE):17-debian-buster-slim \
-t $(IMAGE):17.0.13_11-debian-buster-slim \
.

push:
docker push $(IMAGE):17
docker push $(IMAGE):17-debian-10
docker push $(IMAGE):17.0.13_11
docker push $(IMAGE):17.0.13_11-debian-10
docker push $(IMAGE):latest
docker push $(IMAGE):17-debian
docker push $(IMAGE):17.0.13_11-debian
docker push $(IMAGE):17-debian-buster-slim
docker push $(IMAGE):17.0.13_11-debian-buster-slim
43 changes: 43 additions & 0 deletions library/openjdk/17-loongnix-server-8.4.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

FROM cr.loongnix.cn/loongson/loongnix-server:8.4.0

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

RUN yum install -y tzdata openssl curl ca-certificates fontconfig gzip tar binutils \
&& yum clean all


ENV JAVA_VERSION jdk-17.0.13+11

RUN set -eux; \
ESUM='94c0fbbcfb39c0ae19869c6126c7807b3065e11a1fcb6e885632835c699c9da4'; \
BINARY_URL='http://ftp.loongnix.cn/Java/openjdk17/loongson17.12.16-fx-jdk17.0.13_11-linux-loongarch64.tar.gz'; \
curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; \
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \
mkdir -p /opt/java/openjdk; \
cd /opt/java/openjdk; \
tar -xf /tmp/openjdk.tar.gz --strip-components=1; \
rm -rf /tmp/openjdk.tar.gz;

ENV JAVA_HOME=/opt/java/openjdk \
PATH="/opt/java/openjdk/bin:$PATH"

RUN echo Verifying install ... \
&& echo javac -version && javac -version \
&& echo java -version && java -version \
&& echo Complete.

CMD ["jshell"]
23 changes: 23 additions & 0 deletions library/openjdk/17-loongnix-server-8.4.0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This file is generated by the template.

REGISTRY?=cr.loongnix.cn
ORGANIZATION?=library
REPOSITORY?=openjdk

IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY)

default: image

image:
docker build \
-t $(IMAGE):17-loongnix-server-8.4.0 \
-t $(IMAGE):17.0.13_11-loongnix-server-8.4.0 \
-t $(IMAGE):17-loongnix-server \
-t $(IMAGE):17.0.13_11-loongnix-server \
.

push:
docker push $(IMAGE):17-loongnix-server-8.4.0
docker push $(IMAGE):17.0.13_11-loongnix-server-8.4.0
docker push $(IMAGE):17-loongnix-server
docker push $(IMAGE):17.0.13_11-loongnix-server
46 changes: 46 additions & 0 deletions library/openjdk/21-debian-10/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

FROM cr.loongnix.cn/library/debian:buster-slim

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata curl ca-certificates fontconfig locales binutils && \
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen en_US.UTF-8 && \
rm -rf /var/lib/apt/lists/*


ENV JAVA_VERSION jdk-21.0.5+11

RUN set -eux; \
ESUM='51f0debf40847081da827dee5afa956df6cbff25d1ee3365911e29fa5943279c'; \
BINARY_URL='http://ftp.loongnix.cn/Java/openjdk21/loongson21.5.15-fx-jdk21.0.5_11-linux-loongarch64.tar.gz'; \
curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; \
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \
mkdir -p /opt/java/openjdk; \
cd /opt/java/openjdk; \
tar -xf /tmp/openjdk.tar.gz --strip-components=1; \
rm -rf /tmp/openjdk.tar.gz;

ENV JAVA_HOME=/opt/java/openjdk \
PATH="/opt/java/openjdk/bin:$PATH"

RUN echo Verifying install ... \
&& echo javac -version && javac -version \
&& echo java -version && java -version \
&& echo Complete.

CMD ["jshell"]
33 changes: 33 additions & 0 deletions library/openjdk/21-debian-10/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This file is generated by the template.

REGISTRY?=cr.loongnix.cn
ORGANIZATION?=library
REPOSITORY?=openjdk

IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY)

default: image

image:
docker build \
-t $(IMAGE):21 \
-t $(IMAGE):21-debian-10 \
-t $(IMAGE):21.0.5_11 \
-t $(IMAGE):21.0.5_11-debian-10 \
-t $(IMAGE):latest \
-t $(IMAGE):21-debian \
-t $(IMAGE):21.0.5_11-debian \
-t $(IMAGE):21-debian-buster-slim \
-t $(IMAGE):21.0.5_11-debian-buster-slim \
.

push:
docker push $(IMAGE):21
docker push $(IMAGE):21-debian-10
docker push $(IMAGE):21.0.5_11
docker push $(IMAGE):21.0.5_11-debian-10
docker push $(IMAGE):latest
docker push $(IMAGE):21-debian
docker push $(IMAGE):21.0.5_11-debian
docker push $(IMAGE):21-debian-buster-slim
docker push $(IMAGE):21.0.5_11-debian-buster-slim
Loading
Loading