Giter VIP home page Giter VIP logo

Comments (6)

mpern avatar mpern commented on July 18, 2024

Using Docker Desktop or Colima, it works

from pack.

jjbustamante avatar jjbustamante commented on July 18, 2024

Hi @mpern.

But it looks like it is a problem with our sample ruby buildpack on ARM

from pack.

jjbustamante avatar jjbustamante commented on July 18, 2024

There are some documentation around some buildpacks and builders available for ARM arquitectura, like the one from Daniel or Dshaun you can give it a try also.

from pack.

mpern avatar mpern commented on July 18, 2024

I don't think it's the buildpack.

After switching to colima to manage my docker runtime, it "just works"

> colima start --cpu 4 --memory 16
> export DOCKER_DEFAULT_PLATFORM=linux/amd64
> pack build sample-app -p sample/apps/ruby-bundler/ -B cnbs/sample-builder:jammy
...
[exporter] *** Images (df1f75d8e38e):
[exporter]       sample-app
[exporter] Timer: Saving sample-app... ran for 128.743222ms and ended at 2024-03-15T10:20:37Z
[exporter] Timer: Exporter ran for 875.31219ms and ended at 2024-03-15T10:20:37Z
[exporter] Timer: Cache started at 2024-03-15T10:20:37Z
[exporter] Reusing cache layer 'samples/ruby-bundler:bundler'
[exporter] Timer: Cache ran for 1.894101ms and ended at 2024-03-15T10:20:37Z
Successfully built image sample-app

from pack.

jjbustamante avatar jjbustamante commented on July 18, 2024

DOCKER_DEFAULT_PLATFORM=linux/amd64

I think, because you are setting your platform to be linux/amd64, we are working to support arm architecture, but today it is limited.

from pack.

jjbustamante avatar jjbustamante commented on July 18, 2024

the thing is, you are trying to use the sample builder cnbs/sample-builder:jammy, this builder is based on jammy linux/amd64, also the ruby buildpack is probably pointing to linux/amd64 binaries, then when you try to run that on linux/arm you get into issues, because you need a builder/buildpacks that are compliant for arm architecture. This is a known issue, and we are working on that direction. (see this RFC).

That's why I suggested to try to use the builders from Daniel or DShaun because they already did the job to compile, some of them, for arm architecture.

If you run pack build and you uses a compliant arm builder and buildpacks, you should be able to get your app image built correctly

from pack.

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.