update
This commit is contained in:
16
xxl-job/Dockerfile
Normal file
16
xxl-job/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
ARG ARCH
|
||||
FROM harbor.colben.cn/general/jdk$ARCH:8
|
||||
MAINTAINER Colben colbenlee@gmail.com
|
||||
ARG VERSION
|
||||
ARG ROOT
|
||||
ARG JAR
|
||||
ENV JAR="${JAR:?}"
|
||||
ADD --chown=root:root /ADD/ccmd /ADD/$JAR.jar /ADD/$JAR.properties /opt/
|
||||
RUN cd /opt && mkdir logs \
|
||||
&& sed -i \
|
||||
-e "/^spring\.datasource\.url *=/cspring.datasource.url=jdbc:mysql://mysql:3306/xxl_job?Unicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false" \
|
||||
-e "/^spring\.datasource\.username *=/cspring.datasource.username=cm_dwh" \
|
||||
-e "/^spring\.datasource\.password *=/cspring.datasource.password=Cm_dwh_1234" \
|
||||
$ROOT/$JAR.properties
|
||||
CMD ["/opt/ccmd"]
|
||||
|
Reference in New Issue
Block a user