mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-05-21 08:12:49 +00:00
fixing healthcheck rollbacks, adding TAG to deploys, adding missing yml
This commit is contained in:
@@ -4620,9 +4620,9 @@ class: extra-details
|
||||
|
||||
---
|
||||
|
||||
name: healthchecks
|
||||
name: healthcheck
|
||||
|
||||
class: healthchecks
|
||||
class: healthcheck
|
||||
|
||||
# Health checks
|
||||
|
||||
@@ -4644,7 +4644,7 @@ class: healthchecks
|
||||
|
||||
---
|
||||
|
||||
class: healthchecks
|
||||
class: healthcheck
|
||||
|
||||
## Defining health checks
|
||||
|
||||
@@ -4748,7 +4748,7 @@ class: healthcheck
|
||||
|
||||
- Go to the `stacks` directory:
|
||||
```bash
|
||||
cd ~/orchestration-workshop/
|
||||
cd ~/orchestration-workshop/stacks
|
||||
```
|
||||
|
||||
- Deploy the updated stack:
|
||||
@@ -4777,10 +4777,10 @@ First, let's make an "innocent" change and deploy it.
|
||||
|
||||
- Build, ship, and run the new image:
|
||||
```bash
|
||||
docker-compose -f dockercoins+healthchecks.yml build
|
||||
export TAG=v0.3; docker-compose -f dockercoins+healthchecks.yml build
|
||||
docker-compose -f dockercoins+healthchecks.yml push
|
||||
docker service update dockercoins_hasher \
|
||||
--detach=false --image=127.0.0.1:5000/hasher:latest
|
||||
--detach=false --image=127.0.0.1:5000/hasher:$TAG
|
||||
```
|
||||
|
||||
]
|
||||
@@ -4802,10 +4802,10 @@ And now, a breaking change that will cause the health check to fail:
|
||||
|
||||
- Build, ship, and run the new image:
|
||||
```bash
|
||||
docker-compose -f dockercoins+healthchecks.yml build
|
||||
export TAG=v0.4; docker-compose -f dockercoins+healthchecks.yml build
|
||||
docker-compose -f dockercoins+healthchecks.yml push
|
||||
docker service update dockercoins_hasher \
|
||||
--detach=false --image=127.0.0.1:5000/hasher:latest
|
||||
--detach=false --image=127.0.0.1:5000/hasher:$TAG
|
||||
```
|
||||
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user