Skip to content

Infinispan instructions not working with UBI minimal Java 21 #669

Open
@dougbreaux

Description

@dougbreaux

https://github.com/WASdev/ci.docker#session-caching

Additional steps are needed that I'm still working out. Prior to this, we were having to yum module enable -y maven:3.6 ourselves, but of course, yum isn't available in this image.

Just trying to run infinispan-client-setup.sh without that step revealed that it needs yum itself. Adding microdnf install -y yum got past that step, but then after the script runs, it apparently tries to uninstall maven, which results in errors that it can't be uninstalled:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  16.166 s
[INFO] Finished at: 2025-02-28T15:36:32Z
[INFO] ------------------------------------------------------------------------
+ yum remove -y maven
Error:
 Problem: The operation would result in removing the following protected packages: systemd-udev
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Error: building at STEP "RUN microdnf install -y yum &&     infinispan-client-setup.sh": while running runtime: exit status 1

Obviously, since I'm not running the yum commands myself, but they're in the Liberty/Infinispan image, this needs to be addressed there.

Beginning of my Dockerfile, up to the failure:

ARG LIBERTY_REPO=icr.io/appcafe/open-liberty
ARG LIBERTY_TAG=kernel-slim-java21-openj9-ubi-minimal
ARG LIBERTY_IMAGE=$LIBERTY_REPO:$LIBERTY_TAG

ARG VERBOSE=true

# https://github.com/WASdev/ci.docker#session-caching
FROM $LIBERTY_IMAGE AS infinispan-client

# Install Infinispan client jars
USER root
ENV VERBOSE=true
RUN microdnf install -y yum && \
    infinispan-client-setup.sh
...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions