Giter Site home page Giter Site logo

Error installing on alpine about pants HOT 5 OPEN

anthony-hayes avatar anthony-hayes commented on September 22, 2024
Error installing on alpine

from pants.

Comments (5)

lilatomic avatar lilatomic commented on September 22, 2024

Seems that the sha256sum bins are different. We expect it to have a --status option, but the one from alpine (upstream is busybox) uses -s for that.

from pants.

lilatomic avatar lilatomic commented on September 22, 2024

Although even if we patch this issue, I'm not sure that it's going to work. IIRC, alpine uses a different compiler chain, and I don't think we build wheels for it. If your goal is to get code into an alpine docker container, pants' docker support can pull in PEXes which Pants builds outside of the container. Pants environments might also allow you to run commands or steps inside of an alpine container, although I don't have experience with them. If you really need to run Pants in an alpine container, I think you might need to build Pants from sources

from pants.

benjyw avatar benjyw commented on September 22, 2024

Yeah, our wheels are glibc, not musl, so to run on Alpine you'd have to build your own. It's possible we should distribute Pants for Alpine, but there haven't been a ton of requests for that so far.

What is the use case here?

from pants.

anthony-hayes avatar anthony-hayes commented on September 22, 2024

Thanks for the quick responses!

The use case is using pants in CI, and on Alpine in general, mainly for project introspection, but I'm considering also using it for running tests in CI as well.

So I do want to run Pants in the alpine container if possible. Sounds like building from source is the only way to do that today.

I'd love if there was a distributed pants for Alpine, or some approved workaround (like https://pkgs.alpinelinux.org/package/v3.15/main/ppc64le/libc6-compat).

It might be worth updating the documentation with a note that Alpine Linux is not yet supported. Such a note existed in earlier versions of pants: https://www.pantsbuild.org/2.0/docs/introduction/getting-started/installing-pants documentation. (Same for the linux on ARM note, I'm on x86 but am very interested in ARM support)

Thanks for the info though!

from pants.

ericsmalling avatar ericsmalling commented on September 22, 2024

FYI: Users running on Chainguard/Wofli based images have the same problem as they use gcc compiled busybox. A workaround is available by installing the wolfi coreutils package but it would be great if that wasn't needed.

from pants.

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.