Skip to content

Commit

Permalink
!232 v3.3.1.1
Browse files Browse the repository at this point in the history
Merge pull request !232 from 码匠君/develop
  • Loading branch information
herodotus-ecosystem authored and gitee-org committed Jun 24, 2024
2 parents 0f263db + 1487ffe commit b40bd4d
Show file tree
Hide file tree
Showing 46 changed files with 596 additions and 554 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<a href="https://nacos.io/zh-cn/index.html" target="_blank"><img src="https://img.shields.io/badge/Nacos-2.3.2-brightgreen.svg?logo=alibabadotcom" alt="Nacos 2.3.2"></a>
</p>
<p align="center">
<a href="#" target="_blank"><img src="https://img.shields.io/badge/Version-3.3.1.0-red.svg?logo=spring" alt="Version 3.3.1.0"></a>
<a href="https://www.herodotus.cn" target="_blank"><img src="https://img.shields.io/badge/Dante%20Engine-3.3.1.0-red.svg?logo=spring" alt="Dante Engine 3.3.1.0"></a>
<a href="https://gitee.com/herodotus/dante-oss" target="_blank"><img src="https://img.shields.io/badge/Dante%20OSS-3.3.1.0-red.svg?logo=spring" alt="Dante OSS 3.3.1.0"></a>
<a href="#" target="_blank"><img src="https://img.shields.io/badge/Version-3.3.1.1-red.svg?logo=spring" alt="Version 3.3.1.1"></a>
<a href="https://www.herodotus.cn" target="_blank"><img src="https://img.shields.io/badge/Dante%20Engine-3.3.1.1-red.svg?logo=spring" alt="Dante Engine 3.3.1.1"></a>
<a href="https://gitee.com/herodotus/dante-oss" target="_blank"><img src="https://img.shields.io/badge/Dante%20OSS-3.3.1.1-red.svg?logo=spring" alt="Dante OSS 3.3.1.1"></a>
<a href="https://bell-sw.com/pages/downloads/#downloads" target="_blank"><img src="https://img.shields.io/badge/JDK-17%2B-green.svg?logo=openjdk" alt="Java 17"></a>
<a href="./LICENSE"><img src="https://img.shields.io/badge/License-AGPL--3.0-blue.svg?logo=apache" alt="License AGPL 3.0"></a>
<a href="https://www.herodotus.cn"><img src="https://visitor-badge.laobi.icu/badge?page_id=dante-cloud&title=Total%20Visits" alt="Total Visits"></a>
Expand Down
38 changes: 24 additions & 14 deletions configurations/docker/context/development/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Docker image for dante-cloud application
# Docker image for herodotus-cloud application
# VERSION 1.0.0
# Author: gengwei.zheng
# Author: herodotus

### 基础镜像,使用debian操作系统,使用 liberica-openjdk
### 本系统涉及图形验证码,有字体需求,而且采用的是非系统字体。
Expand All @@ -9,32 +9,42 @@
### 在 debian 下则没有这问题。以目前了解的情况看,猜测 alpine 下,为了缩小体系,缺失的内容应该不只是字体库,还有其它内容。
### 当然也可能是个人能力有限,一直没有找到正确解决的办法。如果你有更好的解决办法,欢迎提 ISSUE 和 PR。

FROM bellsoft/liberica-openjdk-debian:17.0.9-11
#FROM openjdk:17-jdk
FROM quay.io/herodotus-cloud/liberica-openjdk-debian:17.0.11-10

# 作者
MAINTAINER 码匠君 <herodotus@aliyun.com>
MAINTAINER herodotus <herodotus@aliyun.com>

#工作目录
WORKDIR /usr/local/

# 声明一个挂载点,容器内此路径会对应宿主机的某个文件夹
VOLUME ["/usr/local/logs"]

#定义参数(build构建时使用)
ARG VERSION
ARG SERVICE_NAME
ARG SERVICE_PORT
ENV VERSION=$VERSION
ENV SERVICE_NAME=$SERVICE_NAME
ENV SERVICE_PORT=$SERVICE_PORT

# 系统编码
#设置环境变量(程序运行时使用)
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
# 运行参数
ENV JAVA_OPTS=""
ENV PARAMS=""
ENV VERSION=$VERSION
ENV SERVICE_NAME=$SERVICE_NAME
ENV SERVICE_PORT=$SERVICE_PORT

# 声明一个挂载点,容器内此路径会对应宿主机的某个文件夹
VOLUME /tmp
#声明了容器应该打开的端口并没有实际上将它打开
EXPOSE ${SERVICE_PORT}

# 应用构建成功后的jar文件被复制到镜像内,名字也改成了app.jar
ADD ./target/${SERVICE_NAME}-${VERSION}.jar app.jar

# 声明运行时端口
EXPOSE ${SERVICE_PORT}
# 康检查参数设置,每5秒检查一次,接口超时时间2秒,连续10次返回1就判定该容器不健康
HEALTHCHECK --interval=5s \
--timeout=3s \
--retries=10 \
CMD curl -fs http://localhost:${SERVICE_PORT}/actuator/health || exit 1

# 启动容器时的进程
ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar -Dfile.encoding=utf-8 /app.jar
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -Djava.awt.headless=true -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar app.jar $PARAMS"]
44 changes: 44 additions & 0 deletions configurations/docker/context/development/Dockerfile-Monitor
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Docker image for herodotus-cloud application
# VERSION 1.0.0
# Author: herodotus

### 基础镜像,使用debian操作系统,使用 liberica-openjdk
### 本系统涉及图形验证码,有字体需求,而且采用的是非系统字体。
### 在 alpine 下,尝试了包括打包字体库、自己拷贝字体、重新封装JDK,更换读取字体等多种方式。
### 不管是将字体打包进镜像直接读取,还是通过读取jar包中的 resources 目录,可以实现字体文件的读取。但是在 Font.createFont() 过程中,始终出现 sun.awt.FontConfiguration.getVersion NullPointerException 问题。
### 在 debian 下则没有这问题。以目前了解的情况看,猜测 alpine 下,为了缩小体系,缺失的内容应该不只是字体库,还有其它内容。
### 当然也可能是个人能力有限,一直没有找到正确解决的办法。如果你有更好的解决办法,欢迎提 ISSUE 和 PR。

FROM quay.io/herodotus-cloud/liberica-openjdk-debian:17.0.11-10
#FROM openjdk:17-jdk
# 作者
MAINTAINER herodotus <herodotus@aliyun.com>

#定义参数(build构建时使用)
ARG VERSION
ARG SERVICE_NAME
ARG SERVICE_PORT

# 系统编码
#设置环境变量(程序运行时使用)
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV JAVA_OPTS=""
ENV PARAMS=""
ENV VERSION=$VERSION
ENV SERVICE_NAME=$SERVICE_NAME
ENV SERVICE_PORT=$SERVICE_PORT

#工作目录
WORKDIR /usr/local/

# 声明一个挂载点,容器内此路径会对应宿主机的某个文件夹
VOLUME ["/usr/local/logs"]

# 应用构建成功后的jar文件被复制到镜像内,名字也改成了app.jar
ADD ./target/${SERVICE_NAME}-${VERSION}.jar app.jar

# 声明运行时端口
EXPOSE ${SERVICE_PORT}

# 启动容器时的进程
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar app.jar $PARAMS"]
39 changes: 27 additions & 12 deletions configurations/docker/context/production/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Docker image for dante-cloud application
# Docker image for herodotus-cloud application
# VERSION 1.0.0
# Author: gengwei.zheng
# Author: herodotus

### 基础镜像,使用debian操作系统,使用 liberica-openjdk
### 本系统涉及图形验证码,有字体需求,而且采用的是非系统字体。
Expand All @@ -9,36 +9,51 @@
### 在 debian 下则没有这问题。以目前了解的情况看,猜测 alpine 下,为了缩小体系,缺失的内容应该不只是字体库,还有其它内容。
### 当然也可能是个人能力有限,一直没有找到正确解决的办法。如果你有更好的解决办法,欢迎提 ISSUE 和 PR。

FROM bellsoft/liberica-openjdk-debian:17.0.9-11
#FROM openjdk:17-jdk
FROM quay.io/herodotus-cloud/liberica-openjdk-debian:17.0.11-10

# 作者
MAINTAINER 码匠君 <herodotus@aliyun.com>
MAINTAINER herodotus <herodotus@aliyuan.com>

# 外部传递参数
#工作目录
WORKDIR /usr/local/

# 声明一个挂载点,容器内此路径会对应宿主机的某个文件夹
VOLUME ["/usr/local/logs"]

#定义参数(build构建时使用)
ARG VERSION
ARG SERVICE_NAME
ARG SERVICE_PORT

# 系统编码
#设置环境变量(程序运行时使用)
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV JAVA_OPTS=""
ENV PARAMS=""
ENV VERSION=$VERSION
ENV SERVICE_NAME=$SERVICE_NAME
ENV SERVICE_PORT=$SERVICE_PORT

# 系统编码
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
# 运行参数
ENV JAVA_OPTS=""
ENV SW_AGENT_SERVICE_NAME=""
ENV SW_COLLECTOR_BACKEND_SERVICE=""

# 声明一个挂载点,容器内此路径会对应宿主机的某个文件夹
VOLUME /tmp
#声明了容器应该打开的端口并没有实际上将它打开
EXPOSE ${SERVICE_PORT}

# 应用构建成功后的jar文件被复制到镜像内,名字也改成了app.jar
ADD ./target/${SERVICE_NAME}-${VERSION}.jar /usr/local/app.jar
COPY ./agent/skywalking-agent-8.15.0.jar /usr/local/sw/agent.jar
COPY ./agent/plugins/ /usr/local/sw/plugins/
COPY ./agent/config/ /usr/local/sw/config/

# 声明运行时端口
EXPOSE ${SERVICE_PORT}
# 康检查参数设置,每5秒检查一次,接口超时时间2秒,连续10次返回1就判定该容器不健康
HEALTHCHECK --interval=5s \
--timeout=3s \
--retries=10 \
CMD curl -fs http://localhost:${SERVICE_PORT}/actuator/health || exit 1

# 启动容器时的进程
ENTRYPOINT java -javaagent:/usr/local/sw/agent.jar=agent.service_name=${SW_AGENT_SERVICE_NAME},collector.backend_service=${SW_COLLECTOR_BACKEND_SERVICE} ${JAVA_OPTS} -jar -Dfile.encoding=utf-8 /usr/local/app.jar
ENTRYPOINT ["sh", "-c", "java -javaagent:/usr/local/sw/agent.jar=agent.service_name=$SW_AGENT_SERVICE_NAME,collector.backend_service=$SW_COLLECTOR_BACKEND_SERVICE $JAVA_OPTS -jar -Djava.awt.headless=true -Dfile.encoding=utf-8 /usr/local/app.jar"]
22 changes: 13 additions & 9 deletions configurations/docker/context/production/Dockerfile-Monitor
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,30 @@
### 在 debian 下则没有这问题。以目前了解的情况看,猜测 alpine 下,为了缩小体系,缺失的内容应该不只是字体库,还有其它内容。
### 当然也可能是个人能力有限,一直没有找到正确解决的办法。如果你有更好的解决办法,欢迎提 ISSUE 和 PR。

FROM bellsoft/liberica-openjdk-debian:17.0.9-11
FROM quay.io/herodotus-cloud/liberica-openjdk-debian:17.0.11-10
#FROM openjdk:17-jdk

# 作者
MAINTAINER herodotus <herodotus@qq.com>
MAINTAINER herodotus <herodotus@aliyun.com>

#定义参数(build构建时使用)
ARG VERSION
ARG SERVICE_NAME
ARG SERVICE_PORT
ENV VERSION=$VERSION
ENV SERVICE_NAME=$SERVICE_NAME
ENV SERVICE_PORT=$SERVICE_PORT

# 系统编码
#设置环境变量(程序运行时使用)
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
# 运行参数
ENV JAVA_OPTS=""
ENV PARAMS=""
ENV VERSION=$VERSION
ENV SERVICE_NAME=$SERVICE_NAME
ENV SERVICE_PORT=$SERVICE_PORT

#工作目录
WORKDIR /usr/local/

# 声明一个挂载点,容器内此路径会对应宿主机的某个文件夹
VOLUME /tmp
VOLUME ["/usr/local/logs"]

# 应用构建成功后的jar文件被复制到镜像内,名字也改成了app.jar
ADD ./target/${SERVICE_NAME}-${VERSION}.jar app.jar
Expand All @@ -37,4 +41,4 @@ ADD ./target/${SERVICE_NAME}-${VERSION}.jar app.jar
EXPOSE ${SERVICE_PORT}

# 启动容器时的进程
ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /app.jar
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar app.jar $PARAMS"]
27 changes: 18 additions & 9 deletions configurations/docker/docker-compose/linux/herodotus/.env
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
VERSION=3.3.1.0
GATEWAY_SERVICE_NAME=dante-cloud-gateway
VERSION=3.3.1.1
SPRING_PROFILES_ACTIVE=alibaba
PROFILE=development
DATABASE=postgresql
ALIBABA_USERNAME=nacos
ALIBABA_PASSWORD=nacos
# ALIBABA_NAMESPACE=00a14001-348d-40a7-82aa-e2e032f6e03c
ALIBABA_CONFIG_SERVER_ADDR=192.168.101.10:8848
ALIBABA_DISCOVERY_SERVER_ADDR=192.168.101.10:8848
ALIBABA_SENTINEL_SERVER_ADDR=192.168.101.10:8858
GATEWAY_SERVICE_NAME=herodotus-cloud-gateway
GATEWAY_SERVICE_PORT=8847
UAA_SERVICE_NAME=dante-cloud-uaa
UAA_SERVICE_NAME=herodotus-cloud-uaa
UAA_SERVICE_PORT=8846
MONITOR_SERVICE_NAME=dante-cloud-monitor
MONITOR_SERVICE_NAME=herodotus-cloud-monitor
MONITOR_SERVICE_PORT=8845
MANAGEMENT_SERVICE_NAME=dante-cloud-management
MANAGEMENT_SERVICE_NAME=herodotus-cloud-management
MANAGEMENT_SERVICE_PORT=8843
UPMS_SERVICE_NAME=dante-cloud-upms
UPMS_SERVICE_NAME=herodotus-cloud-upms
UPMS_SERVICE_PORT=7070
MESSAGE_SERVICE_NAME=dante-cloud-message
MESSAGE_SERVICE_NAME=herodotus-cloud-message
MESSAGE_SERVICE_PORT=7071
BPMN_SERVICE_NAME=dante-cloud-bpmn-ability
BPMN_SERVICE_NAME=herodotus-cloud-bpmn-ability
BPMN_SERVICE_PORT=7072
OSS_SERVICE_NAME=dante-cloud-oss-ability
OSS_SERVICE_NAME=herodotus-cloud-oss-ability
OSS_SERVICE_PORT=7073
INFLUXDB_USERNAME=herodotus
INFLUXDB_PASSWORD=herodotus
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
- "9849:9849"

kafka:
image: apache/kafka:3.7.0
image: quay.io/herodotus-cloud/kafka:3.7.0
container_name: kafka
hostname: broker
environment:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
minio:
image: quay.io/minio/minio:RELEASE.2024-06-13T22-53-53Z
image: quay.io/minio/minio:RELEASE.2024-06-22T05-26-45Z
container_name: minio
hostname: minio
ports:
Expand Down
Loading

0 comments on commit b40bd4d

Please sign in to comment.