Closed SpokeyWheeler closed 1 year ago
Short answer, Yes. Longer answer is that the latest pack
will pick up and use a lifecycle
that matches the host platform. So, if you're running on arm64, then it will try to build an arm64 container. Our sample builders do compile for arm64, but our sample buildpacks are missing an arm64 compatible ruby interpreter. I've pushed a work-in-progress branch to https://github.com/buildpacks/samples/pull/133 showing that we're working on this.
There are some (somewhat complex) instructions to build our sample buildpacks on arm64 at https://buildpacks.io/docs/app-developer-guide/build-an-arm-app/. We're hoping to simplify this in the near future.
Finally, if you're using a builder and buildpacks that already support arm64 (i.e. not our sample builders + buildpacks) then things should "Just Work".
Thanks!
Examples: pack create-builder my-builder:bionic --config ./builder.toml
Flags: -c, --config string Path to builder TOML file (required) -h, --help help for create-builder --publish Publish to registry --pull-policy string Pull policy to use. Accepted values are always, never, and if-not-present. The default is always
Global Flags: --no-color Disable color output -q, --quiet Show less output --timestamps Enable timestamps in output -v, --verbose Show more output
Examples: pack create-builder my-builder:bionic --config ./builder.toml
Flags: -c, --config string Path to builder TOML file (required) -h, --help help for create-builder --publish Publish to registry --pull-policy string Pull policy to use. Accepted values are always, never, and if-not-present. The default is always
Global Flags: --no-color Disable color output -q, --quiet Show less output --timestamps Enable timestamps in output -v, --verbose Show more output
Examples: pack create-builder my-builder:bionic --config ./builder.toml
Flags: -c, --config string Path to builder TOML file (required) -h, --help help for create-builder --publish Publish to registry --pull-policy string Pull policy to use. Accepted values are always, never, and if-not-present. The default is always
Global Flags: --no-color Disable color output -q, --quiet Show less output --timestamps Enable timestamps in output -v, --verbose Show more output
4753e82d7deb: Download complete 8cc0bf7c4c3f: Download complete ERROR: invalid run image config: stack io.buildpacks.samples.stacks.bionic from builder config is incompatible with stack from run image cnbs/sample-stack-run:bionic