Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
heyselbi opened this issue Nov 21, 2023 · 1 comment
Closed

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

heyselbi opened this issue Nov 21, 2023 · 1 comment
Assignees
Labels
kind/bug Something isn't working rhods-2.5

Comments

@heyselbi
Copy link

heyselbi commented Nov 21, 2023

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 heyselbi converted this from a draft issue Nov 21, 2023
@heyselbi heyselbi self-assigned this Nov 21, 2023
@heyselbi heyselbi added kind/bug Something isn't working rhods-2.5 labels Nov 21, 2023
@heyselbi heyselbi changed the title Image build fails with openjdk-17-runtime Image build fails with openjdk-17-runtime:latest Nov 21, 2023
@heyselbi
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working rhods-2.5
Projects
Status: No status
Status: Done
Development

No branches or pull requests

1 participant