From 686da44282e5859d8f79c5451771690604aebcc5 Mon Sep 17 00:00:00 2001 From: Manuel Vogel <8409778+mavogel@users.noreply.github.com> Date: Mon, 2 Mar 2026 19:29:51 +0100 Subject: [PATCH] fix: docs for capstone Signed-off-by: Manuel Vogel <8409778+mavogel@users.noreply.github.com> --- workshop/teams-management/cli/README.md | 3 +++ workshop/teams-management/keycloak/README.md | 10 ++++++++++ workshop/teams-management/keycloak/keycloak.yaml | 8 +++++--- workshop/teams-management/teams-app/README.md | 4 ++++ .../teams-app/src/environments/environment.ts | 4 +++- 5 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 workshop/teams-management/keycloak/README.md diff --git a/workshop/teams-management/cli/README.md b/workshop/teams-management/cli/README.md index 813d66f..3ea4830 100644 --- a/workshop/teams-management/cli/README.md +++ b/workshop/teams-management/cli/README.md @@ -34,6 +34,9 @@ curl -f http://localhost:8080/health || echo "Teams API not accessible" ### Step 1: Install Dependencies ```bash +# In coder install the deps +sudo apt install -y python3.12-venv python3-pip + # Install required Python packages pip install -r requirements.txt diff --git a/workshop/teams-management/keycloak/README.md b/workshop/teams-management/keycloak/README.md new file mode 100644 index 0000000..93dc616 --- /dev/null +++ b/workshop/teams-management/keycloak/README.md @@ -0,0 +1,10 @@ +# keykloak + +We deploy keycloak as our SSO provider + +- first adapt your `` in `keycloak.yaml` +- then run +```bash +kubectl apply -f keycloak.yaml +kubectl -n keycloak rollout status deployment keycloak +``` \ No newline at end of file diff --git a/workshop/teams-management/keycloak/keycloak.yaml b/workshop/teams-management/keycloak/keycloak.yaml index abe0e70..43ce827 100644 --- a/workshop/teams-management/keycloak/keycloak.yaml +++ b/workshop/teams-management/keycloak/keycloak.yaml @@ -209,17 +209,19 @@ # "redirectUris": [ # "http://platform-auth.127.0.0.1.sslip.io/*", # "http://engineering-platform.local/*", -# "http://localhost:4200/*" +# "http://localhost:4200/*", +# "http://.coder/*" # ], # "webOrigins": [ # "http://platform-auth.127.0.0.1.sslip.io", # "http://engineering-platform.local", -# "http://localhost:4200" +# "http://localhost:4200", +# "http://.coder:" # ], # "publicClient": true, # "protocol": "openid-connect", # "attributes": { -# "post.logout.redirect.uris": "http://platform-auth.127.0.0.1.sslip.io/*##http://localhost:4200/*" +# "post.logout.redirect.uris": "http://platform-auth.127.0.0.1.sslip.io/*##http://localhost:4200/*##http://.coder:*" # } # } # ], diff --git a/workshop/teams-management/teams-app/README.md b/workshop/teams-management/teams-app/README.md index 9533af5..5a37ad9 100644 --- a/workshop/teams-management/teams-app/README.md +++ b/workshop/teams-management/teams-app/README.md @@ -47,6 +47,10 @@ A modern Angular web application for managing engineering teams, designed to int git clone cd teams-app +# In coder install node first +curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash - +sudo apt install -y nodejs + # Install dependencies npm install ``` diff --git a/workshop/teams-management/teams-app/src/environments/environment.ts b/workshop/teams-management/teams-app/src/environments/environment.ts index d18633e..6df9399 100644 --- a/workshop/teams-management/teams-app/src/environments/environment.ts +++ b/workshop/teams-management/teams-app/src/environments/environment.ts @@ -1,7 +1,9 @@ export const environment = { production: false, - apiUrl: "http://teams-api.127.0.0.1.sslip.io", // Use proxy path instead of direct URL + // Use proxy path instead of direct URL or in coder use "http://.coder:" with the port of forward of the api service + apiUrl: "http://teams-api.127.0.0.1.sslip.io", keycloak: { + // same as above, but with keycloak forward port url: "http://platform-auth.127.0.0.1.sslip.io", realm: "teams", clientId: "teams-ui",