Git Product home page Git Product logo

Comments (12)

barthy1 avatar barthy1 commented on July 22, 2024 2

I can see the same behaviour for linux/s390x

docker run -it --entrypoint=/bin/sh alpine/git
/git # uname -a
Linux 014cd4d0f800 5.3.7-200.fc30.s390x #1 SMP Fri Oct 18 19:49:30 UTC 2019 s390x Linux
/git # apk --update --no-cache add bash
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/s390x/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/s390x/APKINDEX.tar.gz
(1/2) Installing readline (8.1.0-r0)
(2/2) Installing bash (5.1.4-r0)
Executing bash-5.1.4-r0.post-install
Executing busybox-1.33.1-r3.trigger
2 errors; 28 MiB in 34 packages

The problem exists for latest, v2.32.0, and 1.0.31 and doesn't exist for v2.30.2 and 1.0.30

from git.

ozbillwang avatar ozbillwang commented on July 22, 2024 1

thanks to report this issue. I don't have ARM environment to run the test. In fact, i only can test under "amd64"

The PR should not relate to the error, it is a fix to make sure pipeline build works. Maybe let's run some tests if you can help.

image

there are several tags recently we built with multi-arch, could you confirm any tags work or not work from above screenshot?

from git.

kvrhdn avatar kvrhdn commented on July 22, 2024 1

I have the same results on ARM (aarch64):

/git # uname -a
Linux abf6e669ba10 5.10.47-linuxkit #1 SMP PREEMPT Sat Jul 3 21:50:16 UTC 2021 aarch64 Linux

The problem exists for latest, v2.32.0 and 1.0.31
Does not exist for v2.30.2 and 1.0.30.

from git.

kvrhdn avatar kvrhdn commented on July 22, 2024 1

Running apk fix before any other apk commands is fine for us 👍

from git.

kvrhdn avatar kvrhdn commented on July 22, 2024 1

Hi, this issue is showing up again unfortunately. Running apk fix in the latest images fails now as well.

Logs from latest and v2.32.0 (the logs are identical):

$ docker run -it --entrypoint=/bin/sh alpine/git:v2.32.0
/git # apk fix
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz
(1/1) [APK unavailable, skipped] Reinstalling ca-certificates (20191127-r5)
1 error; 25 MiB in 32 packages

v2.30.2 still works without apk fix:

$ docker run -it --entrypoint=/bin/sh alpine/git:v2.30.2
/git # apk --update --no-cache add bash
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz
(1/2) Installing readline (8.1.0-r0)
(2/2) Installing bash (5.1.4-r0)
Executing bash-5.1.4-r0.post-install
Executing busybox-1.33.1-r3.trigger
OK: 27 MiB in 34 packages

I'm still running this from an ARM64 system (Apple M1)

$ docker run -it --entrypoint=/bin/sh alpine/git:v2.32.0
/git # uname -a
Linux 3dacf3f32152 5.10.76-linuxkit #1 SMP PREEMPT Mon Nov 8 11:22:26 UTC 2021 aarch64 Linux

For now, we will try to pin the image we use to v2.30.2.

from git.

ozbillwang avatar ozbillwang commented on July 22, 2024

if can prove, we can add apx fix in Dockerfile

from git.

ozbillwang avatar ozbillwang commented on July 22, 2024

let me think about if I can add test cases in multi arch via Travis CI.

https://docs.travis-ci.com/user/multi-cpu-architectures/

from git.

ozbillwang avatar ozbillwang commented on July 22, 2024

Finally I saw this issue by my way (with help by Travis CI multi-arch build support)

image

https://app.travis-ci.com/github/ozbillwang/multi-arch-docker-image-test-case/builds/239494444

from git.

ozbillwang avatar ozbillwang commented on July 22, 2024

I run the tests.

when built from my laptop, and push to hub.docker.com, it is fine, what ever I added apk fix in Dockerfile or not.

But if I built from Travis CI, it is always failed, I can't directly run apk add bash from the image, what ever I add apk fix in Dockerfile or not.

I did extra test to build the image via Circle CI, I got same issue. If you are interested on how I built multi-arch image in circle ci, please reference my another repo: https://github.com/ozbillwang/multi-arch-docker-build

I give up. If you meet this issue, just add a command apk fix before install any tools.

from git.

ozbillwang avatar ozbillwang commented on July 22, 2024

Thanks for the information and detail.

There must be some reasons, but not sure anyone know the root cause.

from git.

ozbillwang avatar ozbillwang commented on July 22, 2024

@kvrhdn

Do we still have this issue with latest tag v2.36.2 ?

from git.

ozbillwang avatar ozbillwang commented on July 22, 2024

no reply, close it first

from git.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.