I'm attempting to customize my Keycloak docker container.
I'm using jboss/keycloak:12.0.4
as the base image for my docker image.
I need to run a SQL update statement on one specific table once any required updates are made by the Liquibase scripts included in the container's startup.
Where are the scripts located in the image? I can't seem to find them.
Note: I'd be happy to receive alternative approaches as well. As long as the DB records are updated before the keycloak server starts up
The script I want to add will look something like this:
db.changelog.postdeployment.json
{
"databaseChangeLog": [
{
"changeSet": {
"id": "RUNALWAYS-AFTER-DEPLOYMENT",
"author": "DevOps",
"runAlways": true,
"failOnError": false,
"changes": [
{
"sql": {
"sql": "UPDATE public.table_name SET col1='VALUUE' WHERE id='id';"
}
}
]
}
}
]
}