🐛 Fixing a bug. nacos 不支持 moxm/java:1.8-full 缺少 so

This commit is contained in:
jovlog 2020-11-15 17:37:06 +08:00
parent 21ceb75c1e
commit 8ee3bc5a39
4 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ ARG JAR_FILE=target/pig-register.jar
COPY ${JAR_FILE} app.jar COPY ${JAR_FILE} app.jar
RUN java -Djarmode=layertools -jar app.jar extract && rm app.jar RUN java -Djarmode=layertools -jar app.jar extract && rm app.jar
FROM moxm/java:1.8-full FROM openjdk:8-jre
LABEL maintainer="jclazz@outlook.com" LABEL maintainer="jclazz@outlook.com"
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom" ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"
WORKDIR pig-register WORKDIR pig-register

View File

@ -10,6 +10,6 @@ spring:
cloud: cloud:
nacos: nacos:
discovery: discovery:
server-addr: ${NACOS_HOST:pigx-register}:${NACOS_PORT:8848} server-addr: ${NACOS_HOST:pig-register}:${NACOS_PORT:8848}
profiles: profiles:
active: @profiles.active@ active: @profiles.active@

View File

@ -14,7 +14,7 @@ mybatis:
# spring # spring
spring: spring:
datasource: datasource:
url: jdbc:mysql://${MYSQL_HOST:pigx-mysql}:${MYSQL_PORT:3306}/${MYSQL_DB:pigxx_job}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true url: jdbc:mysql://${MYSQL_HOST:pig-mysql}:${MYSQL_PORT:3306}/${MYSQL_DB:pig_job}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
username: ${MYSQL-PWD:root} username: ${MYSQL-PWD:root}
password: ${MYSQL-PWD:root} password: ${MYSQL-PWD:root}

View File

@ -10,7 +10,7 @@ spring:
cloud: cloud:
nacos: nacos:
discovery: discovery:
server-addr: ${NACOS_HOST:pigx-register}:${NACOS_PORT:8848} server-addr: ${NACOS_HOST:pig-register}:${NACOS_PORT:8848}
metadata: metadata:
management.context-path: ${server.servlet.context-path}/actuator management.context-path: ${server.servlet.context-path}/actuator
profiles: profiles: