feat: support build deb
This commit is contained in:
@@ -31,7 +31,6 @@ conf_dirs=" ${docker_work_dir}/conf
|
||||
${docker_work_dir}/wfc/modules/file/conf
|
||||
${docker_work_dir}/wfc/modules/payment/conf
|
||||
"
|
||||
|
||||
case "$1" in
|
||||
env)
|
||||
# prepare directory
|
||||
@@ -42,9 +41,11 @@ case "$1" in
|
||||
fi
|
||||
|
||||
# setup system serivce
|
||||
cp -rf ${src_service_dir}/wfccontrol.service ${dst_service_dir}/
|
||||
systemctl daemon-reload
|
||||
systemctl enable wfccontrol.service
|
||||
if [ -f ${src_service_dir}/wfccontrol.service ]; then
|
||||
cp -rf ${src_service_dir}/wfccontrol.service ${dst_service_dir}/
|
||||
systemctl daemon-reload
|
||||
systemctl enable wfccontrol.service
|
||||
fi
|
||||
|
||||
if [ ! -f ${docker_work_dir}/docker-compose.yml ]; then
|
||||
cp ${docker_work_dir}/compose/docker-compose.yml ${docker_work_dir}/docker-compose.yml
|
||||
|
||||
@@ -151,7 +151,7 @@ services:
|
||||
- SPRING_CONFIG_ADDITIONAL_LOCATION=optional:classpath:/,optional:file:/opt/wfc/conf/
|
||||
- TZ=${TZ}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:${AUTH_SERVER_PORT}/actuator/health || exit 1"]
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:${AUTH_SERVER_PORT}/actuator/health || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
|
||||
Reference in New Issue
Block a user