switch jenkins to BlueOcean builds and add healthcheck and Jenkinsfile.
not sure we can actually complete a pipeline deployment successfully, because of restart
This commit is contained in:
@@ -10,7 +10,8 @@ services:
|
||||
app:
|
||||
# restart: always
|
||||
# privileged: true
|
||||
image: "jenkins/jenkins:lts"
|
||||
# image: "jenkins/jenkins:lts"
|
||||
image: "jenkinsci/blueocean"
|
||||
|
||||
volumes:
|
||||
- jenkins_home:/var/jenkins_home
|
||||
@@ -25,12 +26,23 @@ services:
|
||||
restart_policy:
|
||||
condition: any
|
||||
delay: "5s"
|
||||
max_attempts: 1
|
||||
max_attempts: 3
|
||||
update_config:
|
||||
parallelism: 1
|
||||
delay: 2s
|
||||
order: start-first
|
||||
resources:
|
||||
limits:
|
||||
cpus: '2'
|
||||
memory: 1536M
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/metrics/ejkxeVI-iKLy968ji9AnfYmOHGIh1kYd3gA500JqrRxzTeenT06ynR5Dqo0CQplO/ping"]
|
||||
interval: 1m30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 3m
|
||||
|
||||
logging:
|
||||
driver: fluentd
|
||||
options:
|
||||
|
||||
Reference in New Issue
Block a user