Skip to content

Commit

Permalink
configured production keycloak to copy theme archive directly into it…
Browse files Browse the repository at this point in the history
…s image
  • Loading branch information
Igor Kedzierawski committed Mar 9, 2024
1 parent 8f624f3 commit 910b3b8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions auth-server/keycloak/Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM corn-keycloak-theme-builder AS build

FROM quay.io/keycloak/keycloak:20.0.1

COPY --from=build /corn-theme.jar /opt/keycloak/providers/
1 change: 0 additions & 1 deletion auth-server/keycloak/artifacts/.gitignore

This file was deleted.

Empty file.
7 changes: 6 additions & 1 deletion docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,15 @@ services:

corn-keycloak:
container_name: corn-keycloak
image: quay.io/keycloak/keycloak:20.0.1
image: corn-keycloak
build:
context: auth-server/keycloak
dockerfile: Dockerfile.prod
depends_on:
corn-keycloak-postgres:
condition: service_healthy
corn-keycloak-theme:
condition: service_completed_successfully
environment:
- KC_DB=postgres
- KC_DB_URL=jdbc:postgresql://corn-keycloak-postgres:5432/keycloak
Expand Down

0 comments on commit 910b3b8

Please sign in to comment.