Comments (6)
Using Docker Desktop or Colima, it works
from pack.
Hi @mpern.
But it looks like it is a problem with our sample ruby buildpack on ARM
from pack.
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.
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.
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.
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)
- `pack buildpack new --targets` creates `buildpack.toml` with wrong field/table names for distro name/version HOT 1
- `pack buildpack new --targets` incorrect warning about distro version not being specified
- Upgrade buildpacks/pack to go1.21.9
- exporter fails to find run image when extensions switch to a tag that is a manifest list
- Consider signing tags of releases HOT 6
- Upgrade buildpacks/pack to go1.22.2 HOT 4
- `io.buildpacks.builder.metadata` is incorrect for builders that declare `[[run.images]]` in builder.toml
- Windows (WCOW) bug: volume mounts seem not to work correctly when running the 5 phases
- Installation of pack-cli on Ubuntu 24.04 LTS fails HOT 2
- Add a new `--platform` or `--target` flag to `pack build` command to avoid breaking M1 workflow users after multi-platform is released HOT 1
- Upgrade buildpacks/pack to go1.22.3 HOT 2
- Feat: PR Title Validation
- `pack extension package` should be able to create multi-arch images for extensions HOT 1
- Validation of lifecycle image os/arch should be more flexible
- Pack Build Fails with Extensions HOT 3
- Publishing wrong architecture for `macos` intel binaries HOT 1
- Pack `0.34.0` was not released in Dockerhub
- `archive/tar: write too long` error when using Docker Desktop containerd backend HOT 3
- Inconsistent parameter naming for target architecture HOT 2
- Creation of non-functional multi-arch buildpackage file when target is not specified. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pack.