cBioPortal / cbioportal

cBioPortal for Cancer Genomics
https://cbioportal.org
GNU Affero General Public License v3.0
623 stars 472 forks source link

Regarding keycloak deployment #10896

Open gl00ten opened 2 months ago

gl00ten commented 2 months ago

https://docs.cbioportal.org/deployment/docker/using-keycloak/

Instructions here mention a no longer available version of keycloak's docker. (as far as i could find).

jboss/keycloak:4.8.3.Final

On quay.io, the oldest working version is:
quay.io/keycloak/keycloak:9.0.3

Is there any updated version of this guide? I ran into some issues while configuring keycloak through the GUI (at the SAML part) and i wonder if the recommended versions and instructions changed for the newer versions of cbioportal.

ugurkoysuren commented 1 month ago

Hey @gl00ten !

I also faced on some issues running keycloak even with the same Keycloak version from jboss, I used

quay.io/keycloak/keycloak:16.1.1

Which led to the error:

FATAL [org.keycloak.services] (ServerService Thread Pool -- 56) Error during startup: java.lang.RuntimeException: java.io.FileNotFoundException: /tmp/realm.json (Is a directory) if you're running the compose from the root folder of the project, it will not find the file there it will be also not possible to mount the file

- ./keycloak-config.json:/tmp/realm.json:ro

therefore I would recommend to make this change and recommend the user to run the project in the root folder

- ./dev/keycloak-config.json:/tmp/realm.json:ro

ugurkoysuren commented 1 month ago

I also created a PR in the docker repo can you test it if its working? @gl00ten

https://github.com/cBioPortal/cbioportal-docker-compose/pull/25