0

I have a container (running image quay.io/keycloak/keycloak:21.1.1) where cat /etc/os-release reports the following (excerpt):

NAME="Red Hat Enterprise Linux"
VERSION="9.1 (Plow)"
CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos"

openssl is not installed, neither is yum. (yum install openssl fails with "command not found".) So how can I install OpenSSL into such an image (perhaps it is a UBI micro-image)?

rookie099
  • 141
  • 7

2 Answers2

0

The Keycloak image quay.io/keycloak/keycloak:21.1.1 is currently based on the Red Hat Universal Base Image ubi9-micro, which lacks any package manager (dnf, rpm, yum) in order to minimize size.

I came across a couple of tricks for installing packages regardless, e.g. one involving buildah mount and another one involving multi-stage build plus yum install --installroot /mnt/rootfs. The second now serves well in my scenario.

rookie099
  • 141
  • 7
0

If you are on minimal image try to use microdnf instead of dnf.

ibre5041
  • 101
  • 1