Skip to content

Commit 26f3f3f

Browse files
committed
create deployment
1 parent 7fb0e1b commit 26f3f3f

File tree

15 files changed

+4570
-28
lines changed

15 files changed

+4570
-28
lines changed

.github/workflows/build_docker_image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Build Docker Images
33
on:
44
push:
55
- mainx
6+
- 39-setup-keycloak
67

78
jobs:
89
test:

.github/workflows/deploy-to-k8.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
- develop
8+
- 39-setup-keycloak
89

910
jobs:
1011
build-and-push:

client/.env.development

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
NEXT_PUBLIC_API_URL=http://localhost:9091
1+
NEXT_PUBLIC_API_URL=https://staging.api.whiteboard.student.k8s.aet.cit.tum.de
22
KEYCLOAK_CLIENT_ID=webclient
3-
KEYCLOAK_ISSUER=http://keycloak:8080/realms/development
4-
NEXTAUTH_URL=http://localhost:3000/api/auth/
5-
KEYCLOAK_END_SESSION_ENDPOINT=http://keycloak:8080/realms/development/protocol/openid-connect/logout
3+
KEYCLOAK_ISSUER=https://staging.auth.whiteboard.student.k8s.aet.cit.tum.de/realms/development
4+
NEXTAUTH_URL=https://staging.whiteboard.student.k8s.aet.cit.tum.de/api/auth/
5+
KEYCLOAK_END_SESSION_ENDPOINT=https://staging.auth.whiteboard.student.k8s.aet.cit.tum.de/realms/development/protocol/openid-connect/logout

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,17 @@ services:
66
build:
77
context: ./docker/keycloak
88
dockerfile: Dockerfile
9-
target: development
109
ports:
1110
- "8080:8080"
1211
command:
1312
- start-dev
14-
- --db=postgres
1513
- --import-realm
1614
- -Dkeycloak.migration.strategy=OVERWRITE_EXISTING
1715
- --transaction-xa-enabled=false
1816
depends_on:
1917
db:
2018
condition: service_healthy
2119
environment:
22-
KC_DB: postgres
2320
KC_DB_URL: jdbc:postgresql://db:5432/keycloak
2421
KC_DB_USERNAME: root
2522
KC_DB_PASSWORD: password
@@ -28,6 +25,7 @@ services:
2825
KEYCLOAK_ADMIN_PASSWORD: password
2926
KC_HTTP_ENABLED: true
3027
KC_HOSTNAME_STRICT: false
28+
KC_HEALTH_ENABLED: true
3129
volumes:
3230
- ./docker/keycloak/realm-export.json:/opt/keycloak/data/import/realm-export.json:ro
3331
networks:

docker/keycloak/Dockerfile

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1 @@
1-
FROM quay.io/keycloak/keycloak:24.0.1 AS development
2-
3-
ENV KC_HEALTH_ENABLED=true
4-
ENV KC_METRICS_ENABLED=true
5-
6-
WORKDIR /opt/keycloak
7-
8-
FROM quay.io/keycloak/keycloak:24.0.1
9-
10-
COPY --from=development /opt/keycloak/ /opt/keycloak/
11-
12-
COPY ./realm-export.json /opt/keycloak/data/import/realm-export.json
13-
14-
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]
15-
CMD ["start", "--db=postgres", "--import-realm", "-Dkeycloak.migration.strategy=OVERWRITE_EXISTING", "--transaction-xa-enabled=false"]
1+
FROM quay.io/keycloak/keycloak:24.0.1

infrastructure/whiteboard-app/Chart.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ dependencies:
22
- name: postgresql
33
repository: https://charts.bitnami.com/bitnami
44
version: 16.2.5
5-
digest: sha256:2ffb41a0475d032c590806208a55f9a623fb21c7cf03503634941073e9d6c044
6-
generated: "2025-05-29T20:11:27.037054742+02:00"
5+
- name: keycloak
6+
repository: https://charts.bitnami.com/bitnami
7+
version: 24.0.1
8+
digest: sha256:ca03de706441bf2b76805f940324b74bcc215f88b2631768e295552bfdf97378
9+
generated: "2025-06-20T18:58:50.076109+02:00"

infrastructure/whiteboard-app/Chart.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ appVersion: "1.0.0"
66
dependencies:
77
- name: postgresql
88
version: 16.2.5
9+
repository: "https://charts.bitnami.com/bitnami"
10+
- name: keycloak
11+
version: 24.0.1
912
repository: "https://charts.bitnami.com/bitnami"
131 KB
Binary file not shown.

0 commit comments

Comments
 (0)