Skip to content

Commit

Permalink
chore: fix build errors due to failing Keycloak service
Browse files Browse the repository at this point in the history
  • Loading branch information
VonDerBeck committed Apr 25, 2024
1 parent da6aae6 commit 7ece4f8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ jobs:
runs-on: ubuntu-22.04
services:
keycloak:
image: bitnami/keycloak:24.0.3
image: quay.io/keycloak/keycloak:19.0.3-legacy
env:
KEYCLOAK_ADMIN: keycloak
KEYCLOAK_ADMIN_PASSWORD: keycloak1!
KEYCLOAK_DATABASE_VENDOR: dev-mem
KEYCLOAK_HTTP_RELATIVE_PATH: /auth
ports: [ 8080/tcp ]
options: --health-cmd "curl -Iks http://localhost:8080" --health-interval 10s --health-timeout 5s --health-retries 5
KEYCLOAK_USER: keycloak
KEYCLOAK_PASSWORD: keycloak1!
DB_VENDOR: h2
ports: [ 8443/tcp ]
options: --health-cmd "curl -Iks https://localhost:8443" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -35,5 +34,6 @@ jobs:
${{ runner.os }}-maven-
- name: Run Maven
env:
KEYCLOAK_URL: http://localhost:${{ job.services.keycloak.ports[8080] }}/auth
KEYCLOAK_URL: https://localhost:${{ job.services.keycloak.ports[8443] }}/auth
KEYCLOAK_ENFORCE_SUBGROUPS_IN_GROUP_QUERY: false
run: mvn -B clean install com.mycila:license-maven-plugin:check
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,17 +427,19 @@ version: "3.9"
services:
jboss.keycloak:
image: bitnami/keycloak:24.0.3
image: quay.io/keycloak/keycloak:24.0.3
restart: unless-stopped
environment:
TZ: Europe/Berlin
KEYCLOAK_DATABASE_VENDOR: dev-mem
DB_VENDOR: h2
KEYCLOAK_ADMIN: keycloak
KEYCLOAK_ADMIN_PASSWORD: keycloak1!
KEYCLOAK_HTTP_RELATIVE_PATH: /auth
KC_HTTP_RELATIVE_PATH: /auth
ports:
- "8443:8443"
- "8080:8080"
command:
- start-dev
```

For details see documentation on [Running Keycloak in a container](https://www.keycloak.org/server/containers "Running Keycloak in a container").
Expand Down

0 comments on commit 7ece4f8

Please sign in to comment.