Hi,
I’m using keycloak19.0.1 try to build HA but found error could not cache config file.
Dockerfile :
FROM Quay as builder
ENV KC_METRICS_ENABLED=true
ENV KC_FEATURES=preview
ENV KC_DB=postgres
#specify the custom cache config file here
ENV KC_CACHE_CONFIG_FILE=jdbc-ping.xml
COPY ./jdbc-ping.xml /opt/keycloak/conf/jdbc-ping.xml
RUN /opt/keycloak/bin/kc.sh build --cache-config-file=jdbc-ping.xml
FROM Quay
COPY --from=builder /opt/keycloak/ /opt/keycloak/
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
ENTRYPOINT [“/opt/keycloak/bin/kc.sh”,“start”]
Dockerfile (END)
Error shown when build step:
DEBUG [org.infinispan.commons.util.AbstractFileLookup] (build-73) Unable to find file /opt/keycloak/bin/…/conf/jdbc-ping.xml in classpath; searching for thisfile on the filesystem instead.
could you have any suggestion ?
Thanks