Repository navigation
Unable to parse kcadm.sh responses without jq in Docker image #37326
Closed
jfrantzius
started this conversation in
Archive
Replies: 1 comment 5 replies
|
The base image by design is to remain as minimal as possible as that limits exposure to CVEs. The expectation here is that you would create your own custom image with whatever additional things you want installed. |
5 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.
Description
Hi,
I wanted to run a few
kcadm.shcommands in the quay.io/keycloak/keycloak image (21+), but don't get far because neitherjqnorawkare included in the super-minimal Keycloak image, and there is noyum,dnformicrodnfavailable to install them.This basically makes it impossible to parse Keycloak responses in Shellscripts within the Docker image.
Would it maybe be possible to include
jqin the image? Maybe that would have to go in this place: https://github.com/keycloak/keycloak/blob/main/quarkus/container/ubi-null.sh#L15Discussion
No response
Motivation
In my case, it's for using Keycloak in a development environment, where I want to add test users including passwords and add them to groups at startup of Keycloak.
While this may not make much sense for a production environment (which is hopefully only installed once), this seems to make sense in any environment other than production.
Details
jq maybe somehow has to be added to the
keeplist in https://github.com/keycloak/keycloak/blob/main/quarkus/container/ubi-null.sh#L15All reactions