Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump json-schema and jsprim in /Day-1/demo-traefik-docker/front-test #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Day-1/demo-traefik-docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ You will use traefik to show what a service discovery does.
```sh
cd traefik

docker-compose up -d
docker compose up -d
cd -
```

Expand All @@ -30,7 +30,7 @@ npm run build

cd ../infra
# Start the application
docker-compose up -d
docker compose up -d
```

Now, if you consult the Traefik HTTP services[http://BASTION_IP:8080/dashboard/#/http/services](http://BASTION_IP:8080/dashboard/#/http/services), you should see two more entries: **front-infra** and **webservice-infra**.
Expand All @@ -51,7 +51,7 @@ Then open a browser on [http://front-infra:8000](http://front-infra:8000)
### Scale some services

```sh
docker-compose up --scale webservice=2 -d
docker compose up --scale webservice=2 -d
```

You should see the additional containers in the Traefik admin UI.
Expand Down
40 changes: 13 additions & 27 deletions Day-1/demo-traefik-docker/front-test/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Day-1/demo-traefik-docker/infra/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ services:

networks:
web:
external:
name: traefik_webgateway
name: traefik_webgateway
6 changes: 3 additions & 3 deletions Day-1/demo-traefik-docker/launch-infra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

cd traefik

docker-compose up -d
docker compose up -d

cd ../front-test
npm install
npm run build

cd ../infra

docker-compose up -d
docker compose up -d

docker-compose scale webservice=2
docker compose scale webservice=2

cd ..

Expand Down
4 changes: 2 additions & 2 deletions Day-1/demo-traefik-docker/terminate-infra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

cd infra

docker-compose down
docker compose down


cd ../traefik

docker-compose down
docker compose down
22 changes: 22 additions & 0 deletions Day-1/demo-traefik-docker/webservice-test/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module wescale.fr/webservice-test

go 1.18

require (
github.com/gorilla/handlers v1.5.1
github.com/gorilla/mux v1.8.0
github.com/prometheus/client_golang v1.14.0
)

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/felixge/httpsnoop v1.0.1 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
google.golang.org/protobuf v1.28.1 // indirect
)
Loading