opendatahub-io / modelmesh-serving

Controller for ModelMesh
Apache License 2.0
3 stars 31 forks source link

Image build fails with openjdk-17-runtime:latest #253

Closed heyselbi closed 9 months ago

heyselbi commented 9 months ago

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

cc @dchourasia

heyselbi commented 9 months ago

PR: https://gitlab.cee.redhat.com/data-hub/rhods-cpaas-midstream/-/merge_requests/1407 Updated the USER to USERID and updated the openjdk image to latest per request from DevOps team.