I am trying to boot Keycloak on an azure container apps, and it’s not working.
My configuration is the following :
I have no application logs in ContainerAppConsoleLogs_CL
I only have the following system logs : Container 'key' was terminated with exit code '' and reason 'ContainerCreateFailure'
I tried with a previous version of key cloak: 16.0 seems to work, but not the latest (24)
Do you any insight on how I can debug further?
2
Answers
I had same issue with v24.0.1. Once I changed the command to:
/opt/keycloak/bin/kc.sh, start-dev
The path of
kc.sh
is the same as found in theEntrypoint
in the image. The comma is required to separate between argument and command (as I followed the help text in the form field).To setup keycloak on ACI using image stored in ACR you can follow below steps-
Create an ACR if you don’t have one:
once active enable admin login from portal in your acr or using CLI
login to acr
Push the Keycloak image to ACR
I am using jboss image
Create a Container App
myRegistry.azurecr.io/keycloak
image you pushed earlier.KEYCLOAK_USER
andKEYCLOAK_PASSWORD
while setup. Configure the CPU, memory, and other network setting and deployOnce deployed, you can verify the same using the app url
Other alternative methods–
Using azure webapp
Here , I am using the same jboss/keycloak image in my acr and create the webapp. When setting up, select docker container
and under docker tab choose your acr where you kept the keycloak image
You don’t have to put any startup command. Choose your type of networking and deploy
and similar way you can access your keycloak using the app url
Reference:
Keycloak on
keycloak on webapp