Replies: 1 comment 2 replies
-
|
It's ok after I removed the line "RUN curl -sL https://github.com/aerogear/keycloak-metrics-spi……" and the feature "map-storage". |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As title.
Warns in log:
The errors and its context:
After the last error, keycloak restarted, again and again.
I have no idea about what happend.
My dockerfile
`FROM quay.io/keycloak/keycloak:latest as builder
ENV KC_DB=postgres
ENV KC_HEALTH_ENABLED=true
ENV KC_METRICS_ENABLED=true
RUN curl -sL https://github.com/aerogear/keycloak-metrics-spi/releases/download/2.5.3/keycloak-metrics-spi-2.5.3.jar -o /opt/keycloak/providers/keycloak-metrics-spi-2.5.3.jar
RUN /opt/keycloak/bin/kc.sh build --features=admin-fine-grained-authz,docker,openshift-integration,scripts,token-exchange,map-storage,declarative-user-profile,dynamic-scopes,client-secret-rotation,recovery-codes,update-email,preview
FROM quay.io/keycloak/keycloak:latest
COPY --from=builder /opt/keycloak/ /opt/keycloak/
WORKDIR /opt/keycloak
RUN keytool -genkeypair -storepass password -storetype PKCS12 -keyalg RSA -keysize 2048 -dname "CN=login.ways.dev" -alias sso -ext "SAN:c=DNS:login.ways.dev,IP:127.0.0.1" -keystore conf/server.keystore
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]`
My compose file:
version: '3'
name: mfasso
services:
keycloak-db:
build:
dockerfile: database.dockerfile
image: onlookor/postgres
container_name: keycloak_postgresql
hostname: ssodb
restart: always
env_file: keycloak.env
keycloak:
build:
dockerfile: keycloak.dockerfile
image: onlookor/keycloak
hostname: login
container_name: keycloak
command:
- "start"
- "--optimized"
- "--db-url=jdbc:postgresql://keycloak-db:5432/keycloak"
- "--db-username=keycloak"
- "--db-password=test"
- "--https-key-store-file=/opt/keycloak/conf/server.keystore"
- "--hostname=localhost"
restart: always
depends_on: [keycloak-db]
ports: ["8083:8443"]
env_file: keycloak.env
The keycloak.env
POSTGRES_DB=keycloak
POSTGRES_PASSWORD=test
POSTGRES_USER=keycloak
KEYCLOAK_ADMIN=admin
KEYCLOAK_ADMIN_PASSWORD=test
KC_DB=postgres
Any suggestion would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions