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

Dockerfile is not multi-arch #12

Open
modassarrana89 opened this issue Apr 30, 2024 · 1 comment · May be fixed by #13
Open

Dockerfile is not multi-arch #12

modassarrana89 opened this issue Apr 30, 2024 · 1 comment · May be fixed by #13

Comments

@modassarrana89
Copy link

Dockerfile is not multi-arch .

Reason - Base image [docker.io/minio/minio:RELEASE.2021-06-17T00-10-46Z.hotfix.35a0912ff] is only amd64 compliant & need to be multi-arch.

[root@m1305001 modelmesh-minio-examples]# podman build --target minio-examples -t quay.io/morana/modelmesh-minio-examples:latest .
STEP 1/16: FROM docker.io/minio/minio:RELEASE.2021-06-17T00-10-46Z.hotfix.35a0912ff AS minio-examples
Trying to pull docker.io/minio/minio:RELEASE.2021-06-17T00-10-46Z.hotfix.35a0912ff...
Getting image source signatures
Copying blob be961ec68663 skipped: already exists  
Copying blob 3b997fe6c4c3 skipped: already exists  
Copying blob 1e61f02ec964 skipped: already exists  
Copying blob 1ece211b1ba1 skipped: already exists  
Copying blob ea568ffc6832 skipped: already exists  
Copying blob d46336f50433 skipped: already exists  
Copying blob 711ee6d8beda skipped: already exists  
Copying config 1377bf6865 done  
Writing manifest to image destination
WARNING: image platform (linux/amd64) does not match the expected platform (linux/s390x)
STEP 2/16: EXPOSE 9000
--> b88e9c221d10
STEP 3/16: ARG MODEL_DIR=/data1/modelmesh-example-models
--> f003c9b071ce
STEP 4/16: USER root
--> 89736890c2e7
STEP 5/16: RUN useradd -u 1000 -g 0 modelmesh
exec /bin/sh: exec format error
Error: building at STEP "RUN useradd -u 1000 -g 0 modelmesh": while running runtime: exit status 1

As a result minio pod is carshing while using it in modelmesh.

[root@m1305001 modelmesh-serving]# oc get pods -n modelmesh-serving
Warning: apps.openshift.io/v1 DeploymentConfig is deprecated in v4.14+, unavailable in v4.10000+
NAME                                                READY   STATUS             RESTARTS      AGE
pod/etcd-78ff7867d5-58x2b                           1/1     Running            0             7m16s
pod/minio-5b4bcd7d4f-8gsvr                          0/1     CrashLoopBackOff   6 (64s ago)   7m16s
pod/modelmesh-controller-679f9d9d88-zxt2r           1/1     Running            0             7m6s
pod/modelmesh-serving-triton-2.x-68c49d4588-grwqh   4/4     Running            0             2m5s
pod/modelmesh-serving-triton-2.x-68c49d4588-kkzkf   4/4     Running            0             2m5s

[root@m1305001 modelmesh-serving]# oc logs pod/minio-5b4bcd7d4f-8gsvr   -n  modelmesh-serving
exec /usr/bin/docker-entrypoint.sh: exec format error
@modassarrana89
Copy link
Author

It used to work , if we use base image quay.io/minio/minio:RELEASE.2023-10-16T04-13-43Z as minio-examples
so should i raise PR & update the base image with the above one
@ckadner Can you please provide your input on it

[root@m1305001 modelmesh-minio-examples]# podman build --target minio-examples -t quay.io/morana/modelmesh-minio-examples:latest .
STEP 1/16: FROM quay.io/minio/minio:RELEASE.2023-10-16T04-13-43Z AS minio-examples
Trying to pull quay.io/minio/minio:RELEASE.2023-10-16T04-13-43Z...
Getting image source signatures
Copying blob 7df2833ba7d3 done  
Copying blob daedef7c437f done  
Copying blob 01d346efe1f9 done  
Copying blob 36dcebdfcd98 done  
Copying blob cc4ee1da6c1a done  
Copying blob b268ae1c5b29 done  
Copying config f298d8de5f done  
Writing manifest to image destination
STEP 2/16: EXPOSE 9000
--> 0167fcff1877
STEP 3/16: ARG MODEL_DIR=/data1/modelmesh-example-models
--> 6b5ccbb18e7e
STEP 4/16: USER root
--> 9b03decedfa9
STEP 5/16: RUN useradd -u 1000 -g 0 modelmesh
--> f0afe2cb3ad2
STEP 6/16: RUN mkdir -p ${MODEL_DIR}
--> 36e1fa83a075
STEP 7/16: RUN chown -R 1000:0 /data1 &&     chgrp -R 0 /data1 &&     chmod -R g=u /data1
--> 1e885fbcafcb
STEP 8/16: COPY --chown=1000:0 keras      ${MODEL_DIR}/keras/
--> 37a5e0ce4a8f
STEP 9/16: COPY --chown=1000:0 lightgbm   ${MODEL_DIR}/lightgbm/
--> 0c98e4591263
STEP 10/16: COPY --chown=1000:0 onnx       ${MODEL_DIR}/onnx/
--> 3c6f0a3d3017
STEP 11/16: COPY --chown=1000:0 pytorch    ${MODEL_DIR}/pytorch/
--> 1ee816e7d0db
STEP 12/16: COPY --chown=1000:0 sklearn    ${MODEL_DIR}/sklearn/
--> 83c622bb52d6
STEP 13/16: COPY --chown=1000:0 tensorflow ${MODEL_DIR}/tensorflow/
--> c2cfbc3a1d5b
STEP 14/16: COPY --chown=1000:0 xgboost    ${MODEL_DIR}/xgboost/
--> b83264ae27c1
STEP 15/16: COPY --chown=1000:0 tensorflow/mnist ${MODEL_DIR}/tensorflow/mnist.savedmodel/
--> cfc97f8a3811
STEP 16/16: USER 1000
COMMIT quay.io/morana/modelmesh-minio-examples:latest

@ckadner ckadner linked a pull request May 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant