fix:加入健康检查
This commit is contained in:
Vendored
+3
@@ -53,6 +53,9 @@ pipeline {
|
||||
docker rm -f $CONTAINER_NAME || true
|
||||
docker run -d --name $CONTAINER_NAME \\
|
||||
-p $HOST_PORT:$CONTAINER_PORT \\
|
||||
--health-cmd="curl -f http://localhost:80 || exit 1" \\
|
||||
--health-interval=5s \\
|
||||
--health-retries=3 \\
|
||||
$IMAGE_NAME
|
||||
'''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user