-
Notifications
You must be signed in to change notification settings - Fork 297
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 #571 from buildpacks/feature/469-windows-create-bu…
…ilder Support windows images for create-builder
- Loading branch information
Showing
47 changed files
with
1,154 additions
and
351 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
dir="$(cd $(dirname $0) && pwd)" | ||
os=$(docker info --format '{{json .}}' | jq -r .OSType) | ||
|
||
docker build --tag pack-test/build "$dir"/build | ||
docker build --tag pack-test/run "$dir"/run | ||
docker build --tag pack-test/build "$dir"/$os/build | ||
docker build --tag pack-test/run "$dir"/$os/run |
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,14 @@ | ||
FROM mcr.microsoft.com/windows/nanoserver:1809 | ||
|
||
# placeholder values until correct values are deteremined | ||
ENV CNB_USER_ID=0 | ||
ENV CNB_GROUP_ID=0 | ||
|
||
USER ContainerAdministrator | ||
|
||
RUN net users /ADD pack /passwordreq:no /expires:never | ||
|
||
LABEL io.buildpacks.stack.id=pack.test.stack | ||
LABEL io.buildpacks.stack.mixins="[\"mixinA\", \"build:mixinTwo\", \"netcat\", \"mixin3\"]" | ||
|
||
USER pack |
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,14 @@ | ||
FROM mcr.microsoft.com/windows/nanoserver:1809 | ||
|
||
# placeholder values until correct values are deteremined | ||
ENV CNB_USER_ID=0 | ||
ENV CNB_GROUP_ID=0 | ||
|
||
USER ContainerAdministrator | ||
|
||
RUN net users /ADD pack /passwordreq:no /expires:never | ||
|
||
LABEL io.buildpacks.stack.id=pack.test.stack | ||
LABEL io.buildpacks.stack.mixins="[\"mixinA\", \"netcat\", \"mixin3\"]" | ||
|
||
USER pack |
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 @@ | ||
*.txt text eol=lf |
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
43 changes: 43 additions & 0 deletions
43
acceptance/testdata/pack_previous_fixtures_overrides/builder.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,43 @@ | ||
[[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" | ||
|
||
[[buildpacks]] | ||
# noop-buildpack-2 has the same id but a different version compared to noop-buildpack | ||
uri = "noop-buildpack-2.tgz" | ||
|
||
{{- if .package_image_name}} | ||
[[buildpacks]] | ||
image = "{{.package_image_name}}" | ||
{{- end}} | ||
|
||
[[order]] | ||
{{- if .package_id}} | ||
[[order.group]] | ||
id = "{{.package_id}}" | ||
# intentionlly missing version to test support | ||
{{- end}} | ||
|
||
[[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-mirrors = ["{{.run_image_mirror}}"] | ||
|
||
[lifecycle] | ||
{{- if .lifecycle_uri}} | ||
uri = "{{.lifecycle_uri}}" | ||
{{- end}} | ||
{{- if .lifecycle_version}} | ||
version = "{{.lifecycle_version}}" | ||
{{- end}} |
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.