-
Notifications
You must be signed in to change notification settings - Fork 336
Implementation of the multi-platform support for builders and buildpack packages RFC 0128 #2086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
natalieparellano
merged 9 commits into
buildpacks:main
from
jjbustamante:jjbustamante/poc-multiarch-rfc
May 22, 2024
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
bad37a9
Implementation of the multi-platform RFC - 0128
jjbustamante 35cf9be
fixing some feedback from review
jjbustamante 46ec0df
fixing more feedback from review
jjbustamante 87e4101
fixing a bug when exporting multi-platform buildpack packages files
jjbustamante 3f3b24d
allowing to create a builder with other architecture available for li…
jjbustamante 68d1efa
fixing a little bug when creating a builder without target flag on da…
jjbustamante 574b3a2
removing comment and logging
jjbustamante 03a0d8f
adding tests for builder create and improving logging messages
jjbustamante ae8e20b
fixing windows acceptance test
jjbustamante File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
acceptance/testdata/mock_buildpacks/multi-platform-buildpack/buildpack.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| api = "0.10" | ||
|
|
||
| [buildpack] | ||
| id = "simple/layers" | ||
| version = "simple-layers-version" | ||
| name = "Simple Layers Buildpack" | ||
|
|
||
| [[targets]] | ||
| os = "linux" | ||
| arch = "amd64" | ||
|
|
||
| [[targets]] | ||
| os = "windows" | ||
| arch = "amd64" | ||
|
|
||
| [[stacks]] | ||
| id = "*" |
3 changes: 3 additions & 0 deletions
3
acceptance/testdata/mock_buildpacks/multi-platform-buildpack/linux/amd64/bin/build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| echo "---> Build: NOOP Buildpack" |
3 changes: 3 additions & 0 deletions
3
acceptance/testdata/mock_buildpacks/multi-platform-buildpack/linux/amd64/bin/detect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| ## always detect |
3 changes: 3 additions & 0 deletions
3
acceptance/testdata/mock_buildpacks/multi-platform-buildpack/windows/amd64/bin/build.bat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| @echo off | ||
|
|
||
| echo ---- Build: NOOP Buildpack |
2 changes: 2 additions & 0 deletions
2
acceptance/testdata/mock_buildpacks/multi-platform-buildpack/windows/amd64/bin/detect.bat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| @echo off | ||
| :: always detect |
19 changes: 19 additions & 0 deletions
19
acceptance/testdata/pack_fixtures/builder_multi_platform-no-targets.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| [[buildpacks]] | ||
| id = "simple/layers" | ||
| version = "simple-layers-version" | ||
| uri = "{{ .BuildpackURI }}" | ||
|
|
||
| [[order]] | ||
| [[order.group]] | ||
| id = "simple/layers" | ||
| version = "simple-layers-version" | ||
|
|
||
| [build] | ||
| image = "{{ .BuildImage }}" | ||
|
|
||
| [run] | ||
| [[run.images]] | ||
| image = "{{ .RunImage }}" | ||
|
|
||
|
|
||
|
|
28 changes: 28 additions & 0 deletions
28
acceptance/testdata/pack_fixtures/builder_multi_platform.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| [[buildpacks]] | ||
| id = "simple/layers" | ||
| version = "simple-layers-version" | ||
| uri = "{{ .BuildpackURI }}" | ||
|
|
||
| [[order]] | ||
| [[order.group]] | ||
| id = "simple/layers" | ||
| version = "simple-layers-version" | ||
|
|
||
| # Targets the buildpack will work with | ||
| [[targets]] | ||
| os = "linux" | ||
| arch = "amd64" | ||
|
|
||
| [[targets]] | ||
| os = "windows" | ||
| arch = "amd64" | ||
|
|
||
| [build] | ||
| image = "{{ .BuildImage }}" | ||
|
|
||
| [run] | ||
| [[run.images]] | ||
| image = "{{ .RunImage }}" | ||
|
|
||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,4 +5,4 @@ uri = "{{ .BuildpackURI }}" | |
| image = "{{ .PackageName }}" | ||
|
|
||
| [platform] | ||
| os = "{{ .OS }}" | ||
| os = "{{ .OS }}" | ||
5 changes: 5 additions & 0 deletions
5
acceptance/testdata/pack_fixtures/package_multi_platform.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| [buildpack] | ||
| uri = "{{ .BuildpackURI }}" | ||
|
|
||
| [[dependencies]] | ||
| uri = "{{ .PackageName }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.