forked from github/dataease
refactor: 调整 healthcheck 检测脚本
This commit is contained in:
parent
e69e0322cd
commit
4d63c6b757
@ -13,11 +13,10 @@ ADD plugins/default/ /opt/dataease/plugins/default/
|
||||
ADD core/backend/target/backend-$IMAGE_TAG.jar /opt/apps
|
||||
|
||||
ENV JAVA_APP_JAR=/opt/apps/backend-$IMAGE_TAG.jar
|
||||
|
||||
ENV AB_OFF=true
|
||||
|
||||
ENV JAVA_OPTIONS=-Dfile.encoding=utf-8
|
||||
ENV RUNNING_PORT=8081
|
||||
|
||||
HEALTHCHECK --interval=15s --timeout=5s --retries=20 --start-period=30s CMD curl -f 127.0.0.1:8081
|
||||
HEALTHCHECK --interval=15s --timeout=5s --retries=20 --start-period=30s CMD nc -zv 127.0.0.1 $RUNNING_PORT
|
||||
|
||||
CMD ["/deployments/run-java.sh"]
|
||||
|
Loading…
Reference in New Issue
Block a user