-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #267 from Panxuefeng-loongson/jdk-init
JDK 8u432-b06 11.0.25+9 17.0.13+11 21.0.5+11 23+7 support
- Loading branch information
Showing
20 changed files
with
714 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.