This commit is contained in:
2026-05-08 11:40:23 +08:00
parent 9e08cc6d62
commit 60519c0d43
5 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
FROM registry.openanolis.cn/openanolis/anolisos:8.6
#javajdk path
ADD jdk-17_linux-x64_bin.tar.gz /usr/local/
ENV JAVA_HOME /usr/local/jdk-17.0.7
ENV PATH $PATH:/usr/local/jdk-17.0.7/bin
COPY dumb-init /usr/bin/
RUN yum -y install curl openssh unzip ca-certificates tzdata wget bash glibc-langpack-zh \
&& yum -y install fontconfig && fc-cache --force \
&& yum update -y libnghttp2 \
&& chmod +x /usr/bin/dumb-init \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& curl -o /opt/arthas-boot.jar https://arthas.aliyun.com/arthas-boot.jar \
&& echo "export LC_ALL=zh_CN.utf8" >> /etc/profile \
&& echo "export LC_CTYPE=zh_CN.utf8" >> /etc/profile \
&& mkdir -pv /storage/operation-platform/logs \
&& yum clean all \
&& rm -rf /tmp/* /var/cache/yum/* \
&& source /etc/profile
#setup language 解决中文乱码
ENV LANG zh_CN.utf8
ENV LC_ALL zh_CN.utf8
ENTRYPOINT ["/usr/bin/dumb-init", "--"]

View File

@@ -0,0 +1,10 @@
FROM harbor.wisetm.cn/base/anolisos-oraclejdk:371-1.0.1_fixed
COPY key/CFCA_OV_OCA.cer /var/lib/ca/CFCA_OV_OCA.cer
COPY key/CFCA_EV_ROOT.crt /var/lib/ca/CFCA_EV_ROOT.crt
COPY key/DigiCert-Global-Root-G2-Cross-G1.crt /var/lib/ca/DigiCert-Global-Root-G2-Cross-G1.crt
COPY key/globalsign-R1-R3.cer /var/lib/ca/globalsign-R1-R3.cer
RUN keytool -import -alias cfca_ov_oca -keystore /usr/local/java/jdk1.8.0_371/jre/lib/security/cacerts -storepass changeit -noprompt -file /var/lib/ca/CFCA_OV_OCA.cer \
&& keytool -import -alias cfca_ev_root -keystore /usr/local/java/jdk1.8.0_371/jre/lib/security/cacerts -storepass changeit -noprompt -file /var/lib/ca/CFCA_EV_ROOT.crt \
&& keytool -import -alias digicert-global-root-g2-cross-g1 -keystore /usr/local/java/jdk1.8.0_371/jre/lib/security/cacerts -storepass changeit -noprompt -file /var/lib/ca/DigiCert-Global-Root-G2-Cross-G1.crt \
&& keytool -import -alias globalsign-r1-r3 -keystore /usr/local/java/jdk1.8.0_371/jre/lib/security/cacerts -storepass changeit -noprompt -file /var/lib/ca/globalsign-R1-R3.cer

View File

@@ -0,0 +1,22 @@
FROM registry.openanolis.cn/openanolis/anolisos:8.10
ADD bellsoft-jdk21.0.10+10-linux-amd64.tar.gz /usr/local/
ENV JAVA_HOME /usr/local/jdk-21.0.10
ENV PATH $PATH:$JAVA_HOME/bin
COPY dumb-init /usr/bin/
RUN yum -y install curl unzip ca-certificates tzdata wget bash glibc-langpack-zh \
&& yum -y install fontconfig \
&& fc-cache --force \
&& yum update -y libnghttp2 \
&& chmod +x /usr/bin/dumb-init \
&& curl -o /opt/arthas-boot.jar https://arthas.aliyun.com/arthas-boot.jar \
&& yum clean all \
&& rm -rf /tmp/* /var/cache/yum/*
ENV LANG zh_CN.UTF-8
ENV LC_ALL zh_CN.UTF-8
ENV LC_CTYPE zh_CN.UTF-8
ENTRYPOINT ["/usr/bin/dumb-init", "--"]