Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-7881

Docker image jboss/keycloak doesn't contain jq

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.1.0.Final
    • Fix Version/s: 4.2.0.Final
    • Component/s: Docker
    • Labels:
      None

      Description

      The jboss/keycloak does not contain jq even though the Dockerfile suggests that jq is supposed to be installed (and it is vital to be able to use the ./kcadm.sh script).

      The reason is that the Dockerfile tries to install jq like this:

      https://github.com/jboss-dockerfiles/keycloak/blob/aff46f7c12637bf4c45dd5f3e3aeda0b1c785282/server/Dockerfile#L10

      RUN yum install -y epel-release jq git && yum clean all
      

      As stated in https://stackoverflow.com/a/45745410 it doesn't work to install jq and epel-release with one command since this results in:

      [root@fe441c565b7e jboss]# yum install -y epel-release jq git
      Loaded plugins: fastestmirror, ovl
      Loading mirror speeds from cached hostfile
       * base: www.mirrorservice.org
       * extras: mirror.econdc.com
       * updates: mirror.econdc.com
      No package jq available.
      

      I.e. epel-release must be present before yum install jq is run.

      The fix is as simple as putting the yum install jq into a separate line.

      Fix: https://github.com/jboss-dockerfiles/keycloak/pull/132

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ctavan Christoph Tavan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: