Skip to content

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Fix/docker setup #206

wants to merge 13 commits into from

Conversation

mfd2007
Copy link
Contributor

@mfd2007 mfd2007 commented May 6, 2025

Containers have been updated and some issues for the setup fixed.

@mfd2007 mfd2007 requested a review from rainer-exxcellent May 6, 2025 10:41
Copy link
Contributor

@rainer-exxcellent rainer-exxcellent left a 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?

Copy link
Contributor

Test Results

304 tests   304 ✅  37s ⏱️
 23 suites    0 💤
 23 files      0 ❌

Results for commit 0381790.

Copy link
Contributor

Overall Project 90.05% 🍏

There is no coverage information present for the Files changed

@mfd2007 mfd2007 requested a review from rainer-exxcellent May 15, 2025 07:53
@@ -4,6 +4,10 @@
"adminUrl": "http://localhost",
"bearerOnly": false,
"clientAuthenticatorType": "client-secret",
"secret": {
Copy link
Contributor

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

Copy link
Contributor

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
Copy link
Contributor

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

Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants