first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled

This commit is contained in:
2025-09-06 16:08:15 +08:00
commit 63285f61aa
2624 changed files with 88491 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
FROM eclipse-temurin:8u412-b08-jre-jammy
LABEL maintainer="phithon <root@leavesongs.com>"
RUN set -ex \
&& apt-get update \
&& apt-get install -y --no-install-recommends unzip wait-for-it \
&& mkdir -p /opt/aj-report \
&& wget -O /tmp/aj-report-1.4.0.zip https://gitee.com/anji-plus/report/releases/download/V1.4.0/aj-report-1.4.0.zip \
&& unzip /tmp/aj-report-1.4.0.zip -d /opt/aj-report \
&& rm -rf /tmp/aj-report-1.4.0.zip
WORKDIR /opt/aj-report/aj-report-1.4.0.RELEASE
COPY bootstrap.yml /opt/aj-report/aj-report-1.4.0.RELEASE/conf/bootstrap.yml
COPY docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT [ "bash", "/docker-entrypoint.sh" ]
CMD [ "java", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005", "-Xbootclasspath/a:lib/*.jar", "-Dspring.config.location=conf/bootstrap.yml", "-jar", "lib/aj-report-1.4.0.RELEASE.jar" ]

View File

@@ -0,0 +1,101 @@
server:
port: 9095
servlet:
encoding:
charset: UTF-8
force: true
enabled: true
spring:
profiles:
active: dev
application:
name: aj-report
servlet:
multipart:
max-file-size: 10MB #上传图片大小限制为10MB
jackson:
date-format: yyyy-MM-dd HH:mm:ss
messages:
basename: i18n/messages
datasource:
url: jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DB}?characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
username: ${MYSQL_USERNAME}
password: ${MYSQL_PASSWORD}
type: com.zaxxer.hikari.HikariDataSource
hikari:
connection-timeout: 300000 # 连接超时时间 - 默认值30秒。
validation-timeout: 5000 # 连接被测试活动的最长时间 - 默认值5秒。
idle-timeout: 60000 # 连接池中允许闲置的最长时间 - 默认值10分钟
max-lifetime: 1800000 # 一个连接生命时长(毫秒),超时而没被使用则被释放 - 默认值30分钟
maximum-pool-size: 10 #连接池中允许的最大连接数,包括闲置和使用中的连接 - 默认值10
minimum-idle: 5 # 连接池中允许的最小空闲连接数 - 默认值10。
#如果要使用redis请参考report-core目录下的README.md文件中写的进行调整
# redis:
# host: 127.0.0.1
# port: 6379
# password: root
# database: 1
flyway:
enabled: true #是否开启flyway默认true.
baseline-on-migrate: true
#数据库连接配置
url: ${spring.datasource.url}
user: ${spring.datasource.username}
password: ${spring.datasource.password}
placeholder-replacement: false
init-sqls:
- CREATE DATABASE IF NOT EXISTS `aj_report` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
gaea:
subscribes:
oss: #文件存储 都配置的情况下优先级minio->amazonS3->nfs
enabled: true
##允许上传的文件后缀
file-type-while-list: .png|.jpg|.gif|.icon|.pdf|.xlsx|.xls|.csv|.mp4|.avi|.jpeg|.aaa|.svg
# 用于文件上传成功后生成文件的下载公网完整URLhttp://serverip:9095/file/download注意填写IP必须填写后端服务所在的机器IP
downloadPath: http://10.108.26.197:9095/file/download
nfs:
#上传对应本地全路径,注意目录不会自动创建,注意 Win是 \ 且有盘符linux是 / 无盘符,注意目录权限问题
path: /app/disk/upload/
#若要使用minio文件存储请启用以下配置
#minio:
# url: http://127.0.0.1
# port: 9000
# access-key: minioreport
# secret-key: minioreport
# bucket-name: aj-report
#若要使用amazonS3文件存储请启用以下配置
#amazonS3:
# url: http://127.0.0.1
# access-key: access-key
# secret-key: secret-key
# bucket-name: AJ-Report
#若minio和amazonS3都没有使用服务器高可用的nfs共享盘
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #开启sql打印
call-setters-on-nulls: true
mapperLocations:
- classpath*:/mapper/**/*.xml
- classpath*:/modeler-mybatis-mappings/**/*.xml
management:
endpoints:
web:
base-path: /
logging:
config: classpath:logback.xml
# 本应用自定义参数
customer:
# 跳过token验证和权限验证的url清单
skip-authenticate-urls: /gaeaDict/all, /login, /static, /file/download/, /index.html, /favicon.ico, /reportShare/detailByCode, /v2/api-docs
file:
#导入导出临时文件夹 默认.代表当前目录,拼接/tmp_zip/目录
tmpPath: .
user:
##新增用户默认密码
default:
password: 123456

View File

@@ -0,0 +1,8 @@
#!/bin/bash
set -ex
echo "Waiting for database to start..."
wait-for-it -t 0 "${MYSQL_HOST:-127.0.0.1}:${MYSQL_PORT:-3306}" -- echo "Daabase is up"
exec "$@"