Skip to content

Commit

Permalink
fix(tests): using acouvreur/whoami:v1.10.2 instead of containous/whoa…
Browse files Browse the repository at this point in the history
…mi:v1.5.0

This image simply retrieve the curl binary from curlimages/curl:8.8.0 to be able to add proper docker healthcheck commands.

Once this is merged with traefik/whoami, I'll update back to the original image.

See traefik/whoami#33
  • Loading branch information
acouvreur committed Jul 7, 2024
1 parent df61724 commit b71b8f8
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 29 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ services:
- traefik.http.middlewares.group.plugin.sablier.blocking.timeout=30s

whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
# Cannot use labels because as soon as the container is stopped, the labels are not treated by Traefik
# The route doesn't exist anymore. Use dynamic-config.yml file instead.
# labels:
Expand Down
8 changes: 4 additions & 4 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ services:
- ./Caddyfile:/etc/caddy/Caddyfile:ro

whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
```
#### **Caddyfile**
Expand Down Expand Up @@ -75,7 +75,7 @@ services:
- ./Caddyfile:/etc/caddy/Caddyfile:ro

whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2

sablier:
image: acouvreur/sablier:1.8.0-beta.8
Expand Down Expand Up @@ -110,7 +110,7 @@ services:
- ./Caddyfile:/etc/caddy/Caddyfile:ro

whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2

sablier:
image: acouvreur/sablier:1.8.0-beta.8
Expand Down Expand Up @@ -139,7 +139,7 @@ services:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
labels:
- sablier.enable=true
- sablier.group=demo
Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/traefik.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ You have to use the dynamic config file provider instead.

```yaml
whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
labels:
- traefik.enable
- traefik.http.routers.whoami.rule=PathPrefix(`/whoami`)
Expand Down Expand Up @@ -66,7 +66,7 @@ See also [`traefik.docker.lbswarm`](https://doc.traefik.io/traefik/routing/provi
```yaml
services:
whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
deploy:
replicas: 0
labels:
Expand Down
2 changes: 1 addition & 1 deletion docs/providers/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ You have to register your containers by opting-in with labels.
```yaml
services:
whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
labels:
- sablier.enable=true
- sablier.group=mygroup
Expand Down
2 changes: 1 addition & 1 deletion docs/providers/docker_swarm.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ You have to register your services by opting-in with labels.
```yaml
services:
whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
deploy:
labels:
- sablier.enable=true
Expand Down
2 changes: 1 addition & 1 deletion docs/providers/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ spec:
spec:
containers:
- name: whoami
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
```
## How does Sablier knows when a deployment is ready?
Expand Down
2 changes: 1 addition & 1 deletion plugins/caddy/e2e/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
- '/var/run/docker.sock:/var/run/docker.sock'

whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost" ]
interval: 5s
Expand Down
2 changes: 1 addition & 1 deletion plugins/caddy/e2e/docker_swarm/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
- '/var/run/docker.sock:/var/run/docker.sock'

whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost" ]
interval: 5s
Expand Down
2 changes: 1 addition & 1 deletion plugins/nginx/e2e/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
- '/var/run/docker.sock:/var/run/docker.sock'

whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost" ]
interval: 5s
Expand Down
2 changes: 1 addition & 1 deletion plugins/nginx/e2e/docker_swarm/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
- '/var/run/docker.sock:/var/run/docker.sock'

whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost" ]
interval: 5s
Expand Down
2 changes: 1 addition & 1 deletion plugins/nginx/e2e/kubernetes/manifests/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
spec:
containers:
- name: whoami
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
---
apiVersion: v1
kind: Service
Expand Down
2 changes: 1 addition & 1 deletion plugins/proxywasm/e2e/apacheapisix/docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
- '/var/run/docker.sock:/var/run/docker.sock'

whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost" ]
interval: 5s
Expand Down
2 changes: 1 addition & 1 deletion plugins/proxywasm/e2e/envoy/docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
- '/var/run/docker.sock:/var/run/docker.sock'

whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost" ]
interval: 5s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: whoami
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
---
apiVersion: v1
kind: Service
Expand Down
2 changes: 1 addition & 1 deletion plugins/proxywasm/e2e/nginx/docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
- '/var/run/docker.sock:/var/run/docker.sock'

whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost" ]
interval: 5s
Expand Down
4 changes: 2 additions & 2 deletions plugins/traefik/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ services:
- traefik.http.middlewares.dynamic.plugin.sablier.dynamic.sessionDuration=1m

whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
# Cannot use labels because as soon as the container is stopped, the labels are not treated by Traefik
# The route doesn't exist anymore. Use dynamic-config.yml file instead.
# labels:
Expand Down Expand Up @@ -130,7 +130,7 @@ http:
```yaml
services:
whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
deploy:
replicas: 0
labels:
Expand Down
2 changes: 1 addition & 1 deletion plugins/traefik/e2e/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ services:
- traefik.http.middlewares.group.plugin.sablier.dynamic.displayName=Group E2E

whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
# Cannot use labels because as soon as the container is stopped, the labels are not treated by Traefik
# The route doesn't exist anymore. Use dynamic-config.yml file instead.
healthcheck:
Expand Down
2 changes: 1 addition & 1 deletion plugins/traefik/e2e/docker_swarm/docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ services:
- traefik.http.services.sablier.loadbalancer.server.port=10000

whoami:
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost" ]
interval: 5s
Expand Down
10 changes: 4 additions & 6 deletions plugins/traefik/e2e/kubernetes/manifests/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ spec:
spec:
containers:
- name: whoami
image: containous/whoami:v1.5.0
image: acouvreur/whoami:v1.10.2
livenessProbe:
exec:
command:
- curl
- -f
- http://localhost
httpGet:
path: /health
port: 80
initialDelaySeconds: 5
periodSeconds: 5
---
Expand Down

0 comments on commit b71b8f8

Please sign in to comment.