docker 文件中 添加时区

This commit is contained in:
wanggeng 2021-08-19 18:34:29 +08:00
parent 99209da1a2
commit 23f51c406d
2 changed files with 12 additions and 11 deletions

View File

@ -1,4 +1,7 @@
FROM openjdk:8u292-jre-buster FROM openjdk:8u292-jre-buster
ARG JAR_FILE=/target/*.jar ARG JAR_FILE=/target/*.jar
COPY ${JAR_FILE} system-inspection.jar COPY ${JAR_FILE} system-inspection.jar
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=jnhb","/system-inspection.jar"] ENTRYPOINT ["java","-jar","-Dspring.profiles.active=jnhb","/system-inspection.jar"]
# 时区问题
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

View File

@ -21,13 +21,11 @@ spring:
datasource: datasource:
druid: druid:
# url: jdbc:mysql://49.233.36.36:6688/db_cloud_inspection?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false # url: jdbc:mysql://49.233.36.36:6688/db_cloud_inspection?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
url: jdbc:mysql://127.0.0.1:3306/db_cloud_inspection?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false url: jdbc:mysql://106.12.218.237:8668/db_cloud_inspection?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
db-type: mysql db-type: mysql
driver-class-name: com.mysql.jdbc.Driver driver-class-name: com.mysql.jdbc.Driver
# username: wanggeng username: wanggeng
username: root password: TSkj@0471.123
# password: WenG>2132997
password: root
initial-size: 2 initial-size: 2
min-idle: 2 min-idle: 2
max-active: 5 max-active: 5
@ -85,11 +83,11 @@ file:
# 安全 # 安全
security: security:
oauth2: oauth2:
oauth-server: http://192.168.0.103:7001/usercenter oauth-server: http://106.12.218.237:8001/usercenter
oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url} oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url}
client: client:
client-id: 44a8dc867f7f4465b7ba6065d87e30d7 client-id: 8d1a7e1da9884fbbaa6aadc285f79113
client-secret: bTRCTEw1TEZkL284bVhLOXJ2NDYrSUlGdU1DSlNGaGdLTWhEb1l1VHZHMG1ac2wwZTJHWk5NbXh3L3h3U2c4Rg== client-secret: dHVuaTEvbzY1S3hHbzAzMFRhcTNkK1FsZDFUYVU0MjdzdUg1ZW9JT1NNd21ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
user-authorization-uri: ${security.oauth2.oauth-server}/oauth_client/authorize user-authorization-uri: ${security.oauth2.oauth-server}/oauth_client/authorize
access-token-uri: ${security.oauth2.oauth-server}/oauth_client/token access-token-uri: ${security.oauth2.oauth-server}/oauth_client/token
grant-type: authorization_code grant-type: authorization_code
@ -102,8 +100,8 @@ security:
check-token-access: ${security.oauth2.oauth-server}/oauth_client/token_key check-token-access: ${security.oauth2.oauth-server}/oauth_client/token_key
api-path: api-path:
user-center: http://127.0.0.1:7001/usercenter user-center: http://106.12.218.237:8001/usercenter
notice-url: http://127.0.0.1:7001/usercenter notice-url: http://106.12.218.237:8001/usercenter
version: 2 version: 2
report-form: report-form:
check-detail: false check-detail: false