Skip to content

Dockerfile is not multi-arch #12

Open
@modassarrana89

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions