Skip to content
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

Keycloak #138

Merged
merged 2 commits into from
Aug 12, 2024
Merged

Keycloak #138

merged 2 commits into from
Aug 12, 2024

Conversation

Fosol
Copy link
Contributor

@Fosol Fosol commented Aug 12, 2024

The original keycloak image is no longer available. This would result in new developers unable to setup and run the application locally. I have updated to the new keycloak image. This required refactoring and resolving bugs.

@Fosol Fosol added the enhancement New feature or request label Aug 12, 2024
@Fosol Fosol self-assigned this Aug 12, 2024
@@ -6,8 +6,8 @@ bash.exe.stackdump
*.param
.scannerwork/
.sonarqube/
auth/keycloak/config/hsperfdata_jboss/
auth/keycloak/config/*.log
keycloak/config/hsperfdata_jboss/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new keycloak doesn't use the auth path

@@ -34,7 +32,7 @@ services:
env_file:
- keycloak/.env
volumes:
- ./keycloak/config/realm-export.json:/tmp/realm-export.json
- ./keycloak/config:/opt/keycloak/data/import
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New location for the configuration files

@@ -1,6 +1,8 @@
# https://hub.docker.com/r/jboss/keycloak/
FROM jboss/keycloak:16.1.1
FROM keycloak/keycloak:24.0.1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New image because the old one doesn't exist anymore

@@ -45,6 +47,10 @@ $ /opt/jboss/keycloak/bin/standalone.sh \
-Djboss.http.port=8888 \
-Djboss.https.port=9999 \
-Djboss.management.http.port=7777

# New Keycloak image
/opt/keycloak/bin/kc.sh \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New export and import commands

DB_DATABASE=keycloak
DB_USER=$dbUser
DB_PASSWORD=$dbPassword" >> ./keycloak/.env
KC_DB=postgres
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New configuration for the keycloak image

</PropertyGroup>

<ItemGroup>
<PackageReference Include="DotNetEnv" Version="3.0.0" />
<PackageReference Include="DotNetEnv" Version="3.1.0" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to latest versions

@Fosol Fosol merged commit 5d1cb61 into bcgov:main Aug 12, 2024
2 checks passed
@Fosol Fosol deleted the keycloak branch August 12, 2024 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant