Commit 7b1be30d authored by jwf's avatar jwf

微服务打包

parent 37781010
FROM openjdk:8-jdk-mysqldump
#设置时区
ARG FILE_NAME="default"
ENV PARAMS=""
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
COPY ${FILE_NAME} /app.jar
ENTRYPOINT ["/bin/sh","-c","java -Dfile.encoding=utf8 -Djava.security.egd=file:/dev/.urandom -jar app.jar ${PARAMS}" ]
......@@ -132,7 +132,14 @@ pipeline {
if(module.isUpdate && module.isEncryption){
sh "cd ${module.dir}/${module.path} && mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml clean package install"
sh "cd ${module.dir}/${module.path} && mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml classfinal:classFinal"
sh "docker build -f Docker/encryption/Dockerfile -t ${push_path}/${module.name}:${module.version} --build-arg FILE_NAME=${module.dir}/${module.path}/target/*-encrypted.jar ${workspace}"
if(module.name == 'qrcode-modules-data-sharing'){
sh "docker build -f Docker/mysqldump/Dockerfile -t ${push_path}/${module.name}:${module.version} --build-arg FILE_NAME=${module.dir}/${module.path}/target/*-encrypted.jar ${workspace}"
} else {
sh "docker build -f Docker/encryption/Dockerfile -t ${push_path}/${module.name}:${module.version} --build-arg FILE_NAME=${module.dir}/${module.path}/target/*-encrypted.jar ${workspace}"
}
sh "echo Qrcode@2022 | docker login https://192.168.31.201 --username admin --password-stdin"
sh "docker push ${push_path}/${module.name}:${module.version}"
sh "docker images -f 'dangling=true' -q | xargs -r docker rmi"
......
......@@ -57,7 +57,7 @@ core:
- name: qrcode-modules-data-sharing
path: factory-tobacco-qrcode-modules-data-sharing
isEncryption: false
version: v25.04.30.1
version: v25.04.30.2
isUpdate: true
#
# - name: factory-tobacco-qrcode-modules-gen
......@@ -164,5 +164,5 @@ web:
url: "http://114.116.202.8:18369/factory-tobacco/factory-tobacco-qrcode-htj-vue.git"
# isEncryption: false
version: v25.04.30.1
isUpdate: true
isUpdate: false
#
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment