pulp / pulp/oci_env

Failed to build on ppc64 : oci-env compose up

Open
#123 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
11
Forks
39
Avg merge
18d 18h
Merged PRs (30d)
1

Description

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]#

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Dockerfile line 10 and the oci-env compose up build entry point, then inspect the referenced ghcr.io/pulp/pulp-ci-centos:3.21 image and ppc64le build context. Reproduce the exec format error and determine what change is needed for the base image or build configuration; done means the _base service builds successfully on ppc64le.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
build-system, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.