There were no issues found with openjdk-17-runtime:1.17 openjdk image, but our build pipeline fails when we use the latest openjdk image i.e FROM registry.redhat.io/ubi8/openjdk-17-runtime:latest as runtime with the following error :
Image build failed. Error in binary-container-build-x86-64: BuildProcessError('Build failed (rc=3): Error: building at STEP "RUN useradd -c "Application User" -U -u ${USER} -m app && chown -R app:0 /home/app && chmod g+w /etc/passwd && ln -s /opt/kserve/mmesh /opt/kserve/tas && mkdir -p log && chown -R app:0 . && chmod -R 771 . && chmod 775 *.sh *.py && echo "v2.5.0"
Solution to implement:
modelmesh dockerfile has an ARG USER, which is conflicting with the env var in the latest openjdk image, so if we could rename that ARG to something like USERID to resolve the conflict
Solution to implement:
cc @dchourasia