提交 f3c5b8b3 作者: 方治民

test: 测试 ffmpeg + jdk17 镜像构建

上级 cdbbaedb
# 指定基础镜像,在其上进行定制
FROM localhost:18500/jdk-17
FROM localhost:18500/jdk-17-ffmpeg
# 维护者信息
MAINTAINER ifzm <fangzhimin@yiring.com>
......@@ -16,6 +16,9 @@ COPY app/build/libs/app-0.0.1-SNAPSHOT.jar app.jar
# RUN新建立一层,在其上执行这些命令,执行结束后, commit 这一层的修改,构成新的镜像。
# RUN bash -c "touch /app.jar"
# 设置时区,解决时区问题
RUN echo "Asia/Shanghai" > /etc/timezone
# 声明运行时容器提供服务端口,这只是一个声明,在运行时并不会因为这个声明应用就会开启这个端口的服务
EXPOSE 8081
......
......@@ -4,15 +4,16 @@ env:
prod: false
extra:
username: admin
password: Hd)XZgtCa&NG~oe@
password: 123456
# ----------------------------------------------
spring:
datasource:
url: jdbc:postgresql://${env.host}:5432/basic_app
username: ${env.extra.username}
password: ${env.extra.password}
jpa:
database-platform: org.hibernate.dialect.PostgreSQL10Dialect
database-platform: org.hibernate.dialect.PostgreSQLDialect
open-in-view: true
hibernate:
ddl-auto: update
......@@ -20,12 +21,32 @@ spring:
properties:
hibernate:
format_sql: true
redis:
database: 5
host: ${env.host}
port: 6379
password: ${env.extra.password}
# https://stackoverflow.com/questions/49283069/columnunique-true-produces-a-warn-o-h-engine-jdbc-spi-sqlexceptionhelper
schema_update:
unique_constraint_strategy: RECREATE_QUIETLY
# https://github.com/spring-projects/spring-data-jpa/issues/2717
# https://hibernate.atlassian.net/browse/HHH-15827
jakarta:
persistence:
sharedCache:
mode: UNSPECIFIED
data:
redis:
database: 5
port: 6379
host: ${env.host}
password: ${env.extra.password}
# ----------------------------------------------
# ----------------------------------------------
# Spring Doc
springdoc:
default-consumes-media-type: "application/x-www-form-urlencoded"
default-produces-media-type: "application/json"
default-flat-param-object: false
override-with-generic-response: false
api-docs:
resolve-schema-properties: true
# knife4j
knife4j:
enable: true
......@@ -34,20 +55,26 @@ knife4j:
username: ${env.extra.username}
password: ${env.extra.password}
setting:
language: zh_cn
enableOpenApi: true
enableDebug: true
# ----------------------------------------------
# ----------------------------------------------
# minio
minio:
access-key: ${env.extra.username}
secret-key: ${env.extra.password}
access-key: minioadmin
secret-key: minioadmin
end-point: "http://${env.host}:18100"
bucket: public
domain: ${minio.end-point}
# ----------------------------------------------
# ----------------------------------------------
logging:
level:
# sql bind parameter
org.hibernate.type.descriptor.sql.BasicBinder: trace
# request log
com.yiring.common.aspect.RequestAspect: info
# ----------------------------------------------
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论