-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CNB_TARGET_ env vars - allowed to be passed through in the env vars allow-list - threaded through builder - threaded through detector - threaded through generator Signed-off-by: Joe Kimmel <jkimmel@vmware.com> * Update buildpack/generate.go Co-authored-by: Natalie Arellano <narellano@vmware.com> Signed-off-by: Joe Kimmel <86852107+joe-kimmel-vmw@users.noreply.github.com> * Update buildpack/generate.go Co-authored-by: Natalie Arellano <narellano@vmware.com> Signed-off-by: Joe Kimmel <86852107+joe-kimmel-vmw@users.noreply.github.com> * Update cmd/lifecycle/builder.go Co-authored-by: Natalie Arellano <narellano@vmware.com> Signed-off-by: Joe Kimmel <86852107+joe-kimmel-vmw@users.noreply.github.com> --------- Signed-off-by: Joe Kimmel <jkimmel@vmware.com> Signed-off-by: Joe Kimmel <86852107+joe-kimmel-vmw@users.noreply.github.com> Co-authored-by: Natalie Arellano <narellano@vmware.com>
- Loading branch information
1 parent
a2dfc78
commit 1057837
Showing
23 changed files
with
340 additions
and
29 deletions.
There are no files selected for viewing
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
34 changes: 34 additions & 0 deletions
34
acceptance/testdata/builder/container/cnb/buildpacks/hello_world_3/0.0.3/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,34 @@ | ||
#!/usr/bin/env bash | ||
set -eo pipefail | ||
|
||
echo "---> Hello World 3 buildpack" | ||
|
||
# INPUT ARGUMENTS | ||
platform_dir=$2 | ||
env_dir=${platform_dir}/env | ||
layers_dir=$1 | ||
plan_path=$3 | ||
|
||
# CNB_APP_DIR | ||
echo "CNB_APP_DIR: ${PWD}" | ||
|
||
# PLATFORM DIR | ||
echo "PLATFORM_DIR: ${platform_dir}" | ||
|
||
# LAYERS | ||
echo "LAYERS_DIR: ${layers_dir}" | ||
|
||
# PLAN | ||
echo "PLAN_PATH: ${plan_path}" | ||
echo "plan contents:" | ||
cat ${plan_path} | ||
echo | ||
|
||
echo "CNB_TARGET_ARCH:" `printenv CNB_TARGET_ARCH` | ||
echo "CNB_TARGET_OS:" `printenv CNB_TARGET_OS` | ||
echo "CNB_TARGET_ID:" `printenv CNB_TARGET_ID` | ||
echo "CNB_TARGET_VARIANT:" `printenv CNB_TARGET_VARIANT` | ||
echo "CNB_TARGET_DISTRO_NAME:" `printenv CNB_TARGET_DISTRO_NAME` | ||
echo "CNB_TARGET_DISTRO_VERSION:" `printenv CNB_TARGET_DISTRO_VERSION` | ||
|
||
echo "---> Done" |
7 changes: 7 additions & 0 deletions
7
acceptance/testdata/builder/container/cnb/buildpacks/hello_world_3/0.0.3/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,7 @@ | ||
# Buildpack API version | ||
api = "0.10" | ||
|
||
# Buildpack ID and metadata | ||
[buildpack] | ||
id = "hello_world_3" | ||
version = "0.0.3" |
10 changes: 10 additions & 0 deletions
10
acceptance/testdata/builder/container/cnb/plan_tomls/always_detect_plan_buildpack_3.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,10 @@ | ||
[[entries]] | ||
|
||
[[entries.providers]] | ||
id = "hello_world_3" | ||
version = "0.0.3" | ||
|
||
[[entries.requires]] | ||
name = "03_plan.toml_requires_subset_content_idk" | ||
[entries.requires.metadata] | ||
# arbitrary data describing the required dependency |
9 changes: 9 additions & 0 deletions
9
acceptance/testdata/builder/container/layers/03_layer/analyzed.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,9 @@ | ||
[run-image.target] | ||
id = "my id" | ||
os = "linux" | ||
arch = "amd64" | ||
arch-variant = "some-variant" | ||
[run-image.target.distribution] | ||
name = "ubuntu" | ||
version = "some-cute-version" | ||
|
4 changes: 4 additions & 0 deletions
4
acceptance/testdata/builder/container/layers/03_layer/group.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,4 @@ | ||
[[group]] | ||
api = "0.10" | ||
id = "hello_world_3" | ||
version = "0.0.3" |
6 changes: 6 additions & 0 deletions
6
acceptance/testdata/builder/container/layers/03_layer/plan.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,6 @@ | ||
[[entries]] | ||
|
||
[[entries.providers]] | ||
id = "hello_world_3" | ||
version = "0.0.3" | ||
|
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,6 @@ | ||
[run-image] | ||
[target] | ||
id = "software" | ||
os = "linux" | ||
arch = "amd64" | ||
|
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
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.