Closed
Description
First of all, thanks for maintain the docker image version. 😄 I am using the pull request Add 3.2.2 UBI / Clouseau reference container to build the image.
Your Environment
- Laptop: Macbook Pro M1 chip
- Version used: 3.2.2-ubi-clouseau
- Operating System and version: macOS Monterey, version 12.5
- Docker version: Docker Desktop 4.11.1 (84025)
Expected Behavior
Successfully build the CouchDB docker image under Arm64
arch. Run docker build --platform linux/arm64 --tag username/couchdb:arm64-latest .
at the folder couchdb-docker/3.2.2-ubi-clouseau
Context
I am running the docker in my mac M1. When I run the docker build command docker build --platform linux/arm64 --tag myuser/couchdb:arm64-latest .
in the folder 3.2.2-ubi-clouseau
, the building image progress cancelled in the halfway. It show below errors:
[+] Building 16.2s (10/23)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for registry.access.redhat.com/ubi8/ubi-minimal:latest 1.0s
=> [internal] load build context 0.0s
=> => transferring context: 525B 0.0s
=> [builder 1/4] FROM registry.access.redhat.com/ubi8/ubi-minimal@sha256:9a9149dbba8dc5a961dfec460018c245b49da0f52e9934e1a70dd4d42f9fc5b7 0.0s
=> CACHED [builder 2/4] WORKDIR /usr/src 0.0s
=> CANCELED [builder 3/4] RUN set -xe; microdnf update -y && rm -rf /var/cache/yum && microdnf install -y unzip wget maven && wget https://github.com/cloudant-labs/clouseau/releases/download/2.2 15.1s
=> CACHED [stage-1 2/16] COPY imeyer_runit.repo /etc/yum.repos.d/imeyer_runit.repo 0.0s
=> CACHED [stage-1 3/16] COPY couchdb.repo /etc/yum.repos.d/couchdb.repo 0.0s
=> ERROR [stage-1 4/16] RUN set -ex; microdnf update -y && rm -rf /var/cache/yum; microdnf install -y java-1.8.0-openjdk-headless ca-certificates gnupg 15.1s
------
> [stage-1 4/16] RUN set -ex; microdnf update -y && rm -rf /var/cache/yum; microdnf install -y java-1.8.0-openjdk-headless ca-certificates gnupg findutils shadow-utils; useradd -u 5984 -d /opt/couchdb -g root couchdb; groupadd -g 5984 couchdb; microdnf update --disableplugin=subscription-manager -y && rm -rf /var/cache/yum; microdnf install --enablerepo=imeyer_runit -y runit; microdnf clean all; rm -rf /var/cache/yum:
#8 0.149 + microdnf update -y
#8 0.169
#8 0.169 (microdnf:7): librhsm-WARNING **: 02:32:44.722: Found 0 entitlement certificates
#8 0.170
#8 0.170 (microdnf:7): librhsm-WARNING **: 02:32:44.723: Found 0 entitlement certificates
#8 0.211 Downloading metadata...
#8 3.687 Downloading metadata...
#8 7.067 Downloading metadata...
#8 10.35 Downloading metadata...
#8 11.84 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 11.84 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 11.84 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 11.84 0) (null)(0/0)
#8 11.84 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 11.84 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 11.84 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 11.84 0) (null)(0/0)
#8 11.84 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 11.84 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 11.84 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 11.84 0) (null)(0/0)
#8 11.84
#8 11.84 (microdnf:7): libdnf-WARNING **: 02:32:56.395: percentage -1% is invalid on 0xaaab09185c80!
#8 11.84
#8 11.84 (microdnf:7): libdnf-WARNING **: 02:32:56.396: percentage -1% is invalid on 0xaaab09185c80!
#8 11.84
#8 11.84 (microdnf:7): libdnf-WARNING **: 02:32:56.396: percentage -1% is invalid on 0xaaab09185c80!
#8 11.84
#8 11.84 (microdnf:7): libdnf-WARNING **: 02:32:56.396: percentage -1% is invalid on 0xaaab09185c80!
#8 11.84 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 11.84 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 11.84 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 11.84 0) (null)(0/0)
#8 12.09 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 12.09 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 12.09 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 12.09 0) (null)(0/0)
#8 12.09 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 12.09 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 12.09 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 12.09 0) (null)(0/0)
#8 12.09 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 12.09 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 12.09 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 12.09 0) (null)(0/0)
#8 12.09 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 12.09 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 12.09 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 12.09 0) (null)(0/0)
#8 12.09
#8 12.09 (microdnf:7): libdnf-WARNING **: 02:32:56.641: percentage -1% is invalid on 0xaaab09185c80!
#8 12.09
#8 12.09 (microdnf:7): libdnf-WARNING **: 02:32:56.641: percentage -1% is invalid on 0xaaab09185c80!
#8 12.09
#8 12.09 (microdnf:7): libdnf-WARNING **: 02:32:56.641: percentage -1% is invalid on 0xaaab09185c80!
#8 12.09
#8 12.09 (microdnf:7): libdnf-WARNING **: 02:32:56.641: percentage -1% is invalid on 0xaaab09185c80!
#8 12.33 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 12.33 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 12.33 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 12.33 0) (null)(0/0)
#8 12.33 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 12.33 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 12.33 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 12.33 0) (null)(0/0)
#8 12.33 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 12.33 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 12.33 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 12.33 0) (null)(0/0)
#8 12.33 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 12.33 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 12.33 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 12.33 0) (null)(0/0)
#8 12.33
#8 12.33 (microdnf:7): libdnf-WARNING **: 02:32:56.882: percentage -1% is invalid on 0xaaab09185c80!
#8 12.33
#8 12.33 (microdnf:7): libdnf-WARNING **: 02:32:56.882: percentage -1% is invalid on 0xaaab09185c80!
#8 12.33
#8 12.33 (microdnf:7): libdnf-WARNING **: 02:32:56.882: percentage -1% is invalid on 0xaaab09185c80!
#8 12.33
#8 12.33 (microdnf:7): libdnf-WARNING **: 02:32:56.882: percentage -1% is invalid on 0xaaab09185c80!
#8 12.58 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 12.58 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 12.58 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 12.58 0) (null)(0/0)
#8 12.58
#8 12.58 (microdnf:7): libdnf-WARNING **: 02:32:57.130: percentage -1% is invalid on 0xaaab09185c80!
#8 12.58 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 12.58 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 12.58 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 12.58 0) (null)(0/0)
#8 12.58 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 12.58 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 12.58 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 12.58 0) (null)(0/0)
#8 12.58 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 12.58
#8 12.58 (microdnf:7): libdnf-WARNING **: 02:32:57.130: percentage -1% is invalid on 0xaaab09185c80!
#8 12.58
#8 12.58 (microdnf:7): libdnf-WARNING **: 02:32:57.130: percentage -1% is invalid on 0xaaab09185c80!
#8 12.58
#8 12.58 (microdnf:7): libdnf-WARNING **: 02:32:57.130: percentage -1% is invalid on 0xaaab09185c80!
#8 12.58 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 12.58 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 12.58 0) (null)(0/0)
#8 12.58 error: cannot update repo 'couchdb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 404 for https://apache.jfrog.io/artifactory/couchdb-rpm/el8/aarch64/repodata/repomd.xml (IP: 54.148.125.24)
#8 12.58 + microdnf install -y java-1.8.0-openjdk-headless ca-certificates gnupg findutils shadow-utils
#8 12.60
#8 12.60 (microdnf:71): librhsm-WARNING **: 02:32:57.151: Found 0 entitlement certificates
#8 12.60
#8 12.60 (microdnf:71): librhsm-WARNING **: 02:32:57.151: Found 0 entitlement certificates
#8 12.93 Downloading metadata...
#8 14.12 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 14.12 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 14.12 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 14.12 0) (null)(0/0)
#8 14.12
#8 14.12 (microdnf:71): libdnf-WARNING **: 02:32:58.670: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 14.12 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 14.12
#8 14.12 (microdnf:71): libdnf-WARNING **: 02:32:58.671: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 14.12
#8 14.12 (microdnf:71): libdnf-WARNING **: 02:32:58.672: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 14.12
#8 14.12 (microdnf:71): libdnf-WARNING **: 02:32:58.672: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 14.12 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 14.12 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 14.12 0) (null)(0/0)
#8 14.12 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 14.12 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 14.12 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 14.12 0) (null)(0/0)
#8 14.12 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 14.12 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 14.12 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 14.12 0) (null)(0/0)
#8 14.40 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 14.40 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 14.40 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 14.40 0) (null)(0/0)
#8 14.40
#8 14.40 (microdnf:71): libdnf-WARNING **: 02:32:58.957: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 14.40
#8 14.40 (microdnf:71): libdnf-WARNING **: 02:32:58.957: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 14.40
#8 14.40 (microdnf:71): libdnf-WARNING **: 02:32:58.957: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 14.40
#8 14.40 (microdnf:71): libdnf-WARNING **: 02:32:58.958: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 14.40 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 14.40 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 14.40 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 14.40 0) (null)(0/0)
#8 14.40 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 14.40 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 14.40 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 14.40 0) (null)(0/0)
#8 14.41 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 14.41 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 14.41 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 14.41 0) (null)(0/0)
#8 14.69 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 14.69 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 14.69 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 14.69 0) (null)(0/0)
#8 14.69 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 14.69 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 14.69 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 14.69 0) (null)(0/0)
#8 14.69 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 14.69 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 14.69 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 14.69 0) (null)(0/0)
#8 14.69 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 14.69 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 14.69 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 14.69 0) (null)(0/0)
#8 14.69
#8 14.69 (microdnf:71): libdnf-WARNING **: 02:32:59.248: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 14.69
#8 14.69 (microdnf:71): libdnf-WARNING **: 02:32:59.248: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 14.69
#8 14.69 (microdnf:71): libdnf-WARNING **: 02:32:59.248: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 14.69
#8 14.69 (microdnf:71): libdnf-WARNING **: 02:32:59.248: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 15.00 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 15.00 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 15.00 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 15.00 0) (null)(0/0)
#8 15.00 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 15.00 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 15.00 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 15.00 0) (null)(0/0)
#8 15.00 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 15.00 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 15.00 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 15.00 0) (null)(0/0)
#8 15.00 3) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2258(3/5)
#8 15.00 2) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-sack.cpp:2157(0/2)
#8 15.00 1) /builddir/build/BUILD/libdnf-0.63.0/libdnf/dnf-repo.cpp:1770(0/2)
#8 15.00 0) (null)(0/0)
#8 15.00
#8 15.00 (microdnf:71): libdnf-WARNING **: 02:32:59.554: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 15.00
#8 15.00 (microdnf:71): libdnf-WARNING **: 02:32:59.554: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 15.00
#8 15.00 (microdnf:71): libdnf-WARNING **: 02:32:59.554: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 15.00
#8 15.00 (microdnf:71): libdnf-WARNING **: 02:32:59.554: percentage -1% is invalid on 0xaaaadc6f8ba0!
#8 15.00 error: cannot update repo 'couchdb': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 404 for https://apache.jfrog.io/artifactory/couchdb-rpm/el8/aarch64/repodata/repomd.xml (IP: 54.148.125.24)
------
executor failed running [/bin/sh -c set -ex; microdnf update -y && rm -rf /var/cache/yum; microdnf install -y java-1.8.0-openjdk-headless ca-certificates gnupg findutils shadow-utils; useradd -u 5984 -d /opt/couchdb -g root couchdb; groupadd -g 5984 couchdb; microdnf update --disableplugin=subscription-manager -y && rm -rf /var/cache/yum; microdnf install --enablerepo=imeyer_runit -y runit; microdnf clean all; rm -rf /var/cache/yum]: exit code: 1
Is it because https://apache.jfrog.io/artifactory/couchdb-rpm/el8/aarch64/repodata/repomd.xml
is an invalid URL?
Any guidance will be appreciate.
Metadata
Metadata
Assignees
Labels
No labels