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

Failed to build on ppc64 : oci-env compose up #123

Open
ashwinik30 opened this issue Jun 5, 2023 · 2 comments
Open

Failed to build on ppc64 : oci-env compose up #123

ashwinik30 opened this issue Jun 5, 2023 · 2 comments

Comments

@ashwinik30
Copy link

ashwinik30 commented Jun 5, 2023

Trying to build on ppc64le arch facing below issue while running the command

[root@ibm-p9z-26-lp14 oci_env]# oci-env compose up
Creating network "oci_env_default" with the default driver
Creating volume "oci_env_pulp" with default driver
Creating volume "oci_env_pg_data" with default driver
Creating volume "oci_env_redis_data" with default driver
Building _base
[+] Building 1.7s (7/14)
 => [internal] load build definition from Dockerfile                                                                                                    0.1s
 => => transferring dockerfile: 916B                                                                                                                    0.0s
 => [internal] load .dockerignore                                                                                                                       0.2s
 => => transferring context: 2B                                                                                                                         0.0s
 => [internal] load metadata for ghcr.io/pulp/pulp-ci-centos:3.21                                                                                       0.2s
 => [internal] load build context                                                                                                                       0.0s
 => => transferring context: 1.74kB                                                                                                                     0.0s
 => [ 1/10] FROM ghcr.io/pulp/pulp-ci-centos:3.21@sha256:d830efc3c0c200c597956ba8edaad1f0c37c19b20888c42440592bb05829fa21                               0.0s
 => CACHED [ 2/10] COPY dev_requirements.txt /dev_requirements.txt                                                                                      0.0s
 => ERROR [ 3/10] RUN dnf install -y which                                                                                                              1.1s
------
 > [ 3/10] RUN dnf install -y which:
#0 0.709 exec /bin/sh: exec format error
------
Dockerfile:10
--------------------
   8 |
   9 |     COPY dev_requirements.txt /dev_requirements.txt
  10 | >>> RUN dnf install -y which
  11 |     RUN pip3 install -r dev_requirements.txt
  12 |
--------------------
ERROR: failed to solve: process "/bin/sh -c dnf install -y which" did not complete successfully: exit code: 1
ERROR: Service '_base' failed to build : Build failed
[root@ibm-p9z-26-lp14 oci_env]#
@decko
Copy link
Member

decko commented Jun 6, 2023

Hi @ashwinik30.
Sorry to say that, but I believe that our current images are all x86 based. @mikedep333 can you confirm it?

Yet, you could try to install Pulp directly from the sources.

@mikedep333
Copy link
Member

I suspect the workaround is that on non-x86, you just need to pre-build the pulp_ci_centos image for your architecture so it doesn't pull it from the registry. (It needs to be in your podman/docker cache.)

It needs this tag specifically:
ghcr.io/pulp/pulp-ci-centos:latest

You can build it from this layer:
https://github.com/pulp/pulp-oci-images/blob/latest/images/Containerfile.core.base

And then this layer:
https://github.com/pulp/pulp-oci-images/blob/latest/images/pulp_ci_centos/Containerfile

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

No branches or pull requests

3 participants