-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds basic compatibility with buildpacks/lifecycle#149
Resolves #243 Signed-off-by: Andrew Meyer <ameyer@pivotal.io> Signed-off-by: Javier Romero <jromero@pivotal.io>
- Loading branch information
1 parent
d871331
commit d348e26
Showing
55 changed files
with
1,049 additions
and
396 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
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 was deleted.
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
3 changes: 3 additions & 0 deletions
3
acceptance/testdata/mock_buildpacks/v1/noop-buildpack/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 "---> NOOP Buildpack" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions
2
...k_buildpacks/read-env-buildpack/bin/build → ...uildpacks/v1/read-env-buildpack/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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
#!/usr/bin/env bash | ||
|
||
echo "---> Read Env Buildpack" | ||
|
||
set -o errexit | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,30 @@ | ||
[[buildpacks]] | ||
id = "simple/layers" | ||
version = "simple-layers-version" | ||
uri = "simple-layers-buildpack.tgz" | ||
|
||
[[buildpacks]] | ||
id = "read/env" | ||
version = "read-env-version" | ||
uri = "read-env-buildpack.tgz" | ||
|
||
[[buildpacks]] | ||
# intentionally missing id/version as they are optional | ||
uri = "noop-buildpack.tgz" | ||
|
||
[[order]] | ||
[[order.group]] | ||
id = "simple/layers" | ||
# intentionlly missing version to test support | ||
|
||
[[order.group]] | ||
id = "read/env" | ||
version = "read-env-version" | ||
optional = true | ||
|
||
[stack] | ||
id = "pack.test.stack" | ||
build-image = "pack-test/build" | ||
run-image = "pack-test/run" | ||
|
||
# run-image-mirror and lifecycle are appended by acceptance tests |
3 changes: 3 additions & 0 deletions
3
acceptance/testdata/mock_buildpacks/v2/noop-buildpack/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 "---> NOOP Buildpack" |
3 changes: 3 additions & 0 deletions
3
acceptance/testdata/mock_buildpacks/v2/noop-buildpack/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 |
7 changes: 7 additions & 0 deletions
7
acceptance/testdata/mock_buildpacks/v2/noop-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,7 @@ | ||
[buildpack] | ||
id = "noop.buildpack" | ||
version = "noop.buildpack.version" | ||
name = "NOOP Buildpack" | ||
|
||
[[stacks]] | ||
id = "pack.test.stack" |
21 changes: 21 additions & 0 deletions
21
acceptance/testdata/mock_buildpacks/v2/not-in-builder-buildpack/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,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "---> Simple mock buildpack" | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
launch_dir=$1 | ||
|
||
## makes a launch layer | ||
echo "making launch layer" | ||
mkdir "$launch_dir/launch-layer" | ||
echo "Local Buildpack Dep Contents" > "$launch_dir/launch-layer/local-dep" | ||
ln -snf "$launch_dir/launch-layer/local-dep" local-dep | ||
echo "launch = true" > "$launch_dir/launch-layer.toml" | ||
|
||
## adds a process | ||
echo 'processes = [{ type = "web", command = "./run"}]' > "$launch_dir/launch.toml" | ||
|
||
echo "---> Done" |
3 changes: 3 additions & 0 deletions
3
acceptance/testdata/mock_buildpacks/v2/not-in-builder-buildpack/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 |
7 changes: 7 additions & 0 deletions
7
acceptance/testdata/mock_buildpacks/v2/not-in-builder-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,7 @@ | ||
[buildpack] | ||
id = "local/bp" | ||
version = "local-bp-version" | ||
name = "Not in Builder Buildpack" | ||
|
||
[[stacks]] | ||
id = "pack.test.stack" |
7 changes: 7 additions & 0 deletions
7
acceptance/testdata/mock_buildpacks/v2/other-stack-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,7 @@ | ||
[buildpack] | ||
id = "other/stack/bp" | ||
version = "other-stack-version" | ||
name = "Other Stack Buildpack" | ||
|
||
[[stacks]] | ||
id = "other.stack" |
Oops, something went wrong.