-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2086 from jjbustamante/jjbustamante/poc-multiarch…
…-rfc Implementation of the multi-platform support for builders and buildpack packages RFC 0128
- Loading branch information
Showing
76 changed files
with
2,350 additions
and
188 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.