-
Notifications
You must be signed in to change notification settings - Fork 5
Fix/docker setup #206
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
base: main
Are you sure you want to change the base?
Fix/docker setup #206
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please rebase this branch to main and fix the build?
Test Results304 tests 304 ✅ 37s ⏱️ Results for commit 0381790. |
|
@@ -4,6 +4,10 @@ | |||
"adminUrl": "http://localhost", | |||
"bearerOnly": false, | |||
"clientAuthenticatorType": "client-secret", | |||
"secret": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On my environment (Rancher Desktop on Windows) this leads to an error :
keycloak-1 | 2025-05-19 07:36:52,523 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to run import
keycloak-1 | 2025-05-19 07:36:52,524 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Cannot deserialize value of type java.lang.String
from Object value (token JsonToken.START_OBJECT
)
keycloak-1 | at [Source: REDACTED (StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION
disabled); line: 7, column: 17] (through reference chain: org.keycloak.representations.idm.RealmRepresentation["clients"]->java.util.ArrayList[0]->org.keycloak.representations.idm.ClientRepresentation["secret"])
keycloak-1 | 2025-05-19 07:36:52,524 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) For more details run the same command passing the '--verbose' option. Also you can use '--help' to see the details about the usage of the particular command.
Gracefully stopping... (press Ctrl+C again to force)
dependency failed to start: container csaf-cms-backend-keycloak-1 is unhealthy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The empty "validator": [] entries lead to an error when initializing keycloack
|
||
KEYCLOAK_EXTRA_ARGS: --import-realm | ||
volumes: | ||
- ./keycloak:/opt/bitnami/keycloak/data/import |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to change this entry to get the import work
volumes:
- ./keycloak/csaf-realm.json:/opt/keycloak/data/import/realm.json:ro
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to change the command in keycloak to get the real import to work
command:
- start-dev
- --import-realm
- --verbose
Containers have been updated and some issues for the setup fixed.