You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ARG KEYCLOAK_VERSION=23.0.0
FROM quay.io/keycloak/keycloak:${KEYCLOAK_VERSION} as keycloak-builder
# Enable health, metrics support, configure database vendor
ENV KC_HEALTH_ENABLED=true
ENV KC_METRICS_ENABLED=true
ENV KC_DB=postgres
WORKDIR /opt/keycloak
# for demonstration purposes only, please make sure to use proper certificates in production instead
# RUN keytool -genkeypair -storepass password -storetype PKCS12 -keyalg RSA -keysize 2048 -dname "CN=server" -alias server -ext "SAN:c=DNS:localhost,IP:127.0.0.1" -keystore conf/server.keystore
RUN /opt/keycloak/bin/kc.sh build
# Stage 3: Final Keycloak image with the built JAR file
FROM quay.io/keycloak/keycloak:${KEYCLOAK_VERSION}
COPY --from=keycloak-builder /opt/keycloak/ /opt/keycloak/
ENV KC_RESTART="SameSite"
ENV KC_HOSTNAME_STRICT_HTTPS=false
ENV KC_HOSTNAME_STRICT=false
ENV KC_HTTP_ENABLED=true
ENV KC_LOG_LEVEL=warning
# ENV KC_PROXY=edge
ENV KC_PROXY_ADDRESS_FORWARDING=true
ENV QUARKUS_TRANSACTION_MANAGER_ENABLE_RECOVERY=true
ENV QUARKUS_PROFILE=prod
ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start-dev"]
When I run $ docker-compose up --build it gives error as below:
keycloak-iam-keycloak-1 | ERROR: Failed to run 'build' command.
keycloak-iam-keycloak-1 | ERROR: Cannot invoke "io.smallrye.config.ConfigValue.withConfigSourceName(String)" because the return value of "org.keycloak.quarkus.runtime.configuration.mappers.PropertyMapper.transformValue(String, java.util.Optional, io.smallrye.config.ConfigSourceInterceptorContext)" is null
keycloak-iam-keycloak-1 | 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.
keycloak-iam-keycloak-1 exited with code 1
Note:
I have a custom SPI
Dependencies are updated.
I kept all configurations as needed.
I checked that all syntax and paths are configured correctly.
I don't understand the source of the error. From where it's coming?
Version
23.0.0
Expected behavior
The expected behavior is it will run without exiting the container.
As I am using the version 22.0.5 - it is working perfectly with my themes and custom API. The latest version 23.0.0 should work when upgrading my Keycloak version.
Actual behavior
keycloak-iam-keycloak-1 | 2023-11-25 05:27:11,466 TRACE [io.quarkus.bootstrap.classloading.QuarkusClassLoader] (main) Class quarkus.properties not found in parent first load from java.net.URLClassLoader@b70da4c
keycloak-iam-keycloak-1 |
keycloak-iam-keycloak-1 | ERROR: Failed to run 'build' command.
keycloak-iam-keycloak-1 | ERROR: Cannot invoke "io.smallrye.config.ConfigValue.withConfigSourceName(String)" because the return value of "org.keycloak.quarkus.runtime.configuration.mappers.PropertyMapper.transformValue(String, java.util.Optional, io.smallrye.config.ConfigSourceInterceptorContext)" is null
keycloak-iam-keycloak-1 | 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.
keycloak-iam-keycloak-1 exited with code 1
How to Reproduce?
I have shared the 3 files here .env, docker-compose.yml, and Dockerfile :
Steps:
Keep 3 files in a directory.
Update the DB URL and credentials in the .env file.
Just run the command $ docker-compose up --build
Result: Error will occur
Note:
I am using Mac OSX with an M1 chip
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Before reporting an issue
Area
core
Describe the bug
I have a Keycloak server with the version of
22.0.5
which is working nicely.Now I want to upgrade my version from
22.0.5
to23.0.0
as below:.env
:docker-compose.yml
:and my
Dockerfile
:When I run
$ docker-compose up --build
it gives error as below:Note:
I don't understand the source of the error. From where it's coming?
Version
23.0.0
Expected behavior
The expected behavior is it will run without exiting the container.
As I am using the version
22.0.5
- it is working perfectly with my themes and custom API. The latest version23.0.0
should work when upgrading my Keycloak version.Actual behavior
How to Reproduce?
I have shared the 3 files here
.env
,docker-compose.yml
, andDockerfile
:Steps:
.env
file.$ docker-compose up --build
Result: Error will occur
Note:
Anything else?
No response
The text was updated successfully, but these errors were encountered: