Skip to content
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

Use single step for all four Buildpacks lifecycle phases #491

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,51 +10,17 @@ spec:
securityContext:
runAsUser: 0
capabilities:
add: ["CHOWN"]
add:
- CHOWN
command:
- /bin/bash
args:
- -c
- >
chown -R "1000:1000" "/workspace/source" &&
chown -R "1000:1000" "/tekton/home"
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 65Mi
- name: step-detect
image: heroku/buildpacks:18
securityContext:
runAsUser: 1000
command:
- /cnb/lifecycle/detector
args:
- -app=/workspace/source/$(build.source.contextDir)
- -group=/layers/group.toml
- -plan=/layers/plan.toml
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 65Mi
volumeMounts:
- name: layers-dir
mountPath: /layers
- name: step-restore
image: heroku/buildpacks:18
securityContext:
runAsUser: 1000
command:
- /cnb/lifecycle/restorer
args:
- -layers=/layers
- -cache-dir=/cache
- -group=/layers/group.toml
chown -R "1000:1000" /workspace/source &&
chown -R "1000:1000" /tekton/home &&
chown -R "1000:1000" /cache &&
chown -R "1000:1000" /layers
resources:
limits:
cpu: 500m
Expand All @@ -67,38 +33,17 @@ spec:
mountPath: /cache
- name: layers-dir
mountPath: /layers
- name: step-build
- name: step-create
image: heroku/buildpacks:18
securityContext:
runAsUser: 1000
runAsGroup: 1000
command:
- /cnb/lifecycle/builder
args:
- -app=/workspace/source/$(build.source.contextDir)
- -layers=/layers
- -group=/layers/group.toml
- -plan=/layers/plan.toml
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 65Mi
volumeMounts:
- name: layers-dir
mountPath: /layers
- name: step-export
image: heroku/buildpacks:18
securityContext:
runAsUser: 0
command:
- /cnb/lifecycle/exporter
- /cnb/lifecycle/creator
args:
- -app=/workspace/source/$(build.source.contextDir)
- -layers=/layers
- -cache-dir=/cache
- -group=/layers/group.toml
- -layers=/layers
- $(build.output.image)
resources:
limits:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,51 +10,17 @@ spec:
securityContext:
runAsUser: 0
capabilities:
add: ["CHOWN"]
add:
- CHOWN
command:
- /bin/bash
args:
- -c
- >
chown -R "1000:1000" "/workspace/source" &&
chown -R "1000:1000" "/tekton/home"
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 65Mi
- name: step-detect
image: heroku/buildpacks:18
securityContext:
runAsUser: 1000
command:
- /cnb/lifecycle/detector
args:
- -app=/workspace/source/$(build.source.contextDir)
- -group=/layers/group.toml
- -plan=/layers/plan.toml
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 65Mi
volumeMounts:
- name: layers-dir
mountPath: /layers
- name: step-restore
image: heroku/buildpacks:18
securityContext:
runAsUser: 1000
command:
- /cnb/lifecycle/restorer
args:
- -layers=/layers
- -cache-dir=/cache
- -group=/layers/group.toml
chown -R "1000:1000" /workspace/source &&
chown -R "1000:1000" /tekton/home &&
chown -R "1000:1000" /cache &&
chown -R "1000:1000" /layers
resources:
limits:
cpu: 500m
Expand All @@ -67,38 +33,17 @@ spec:
mountPath: /cache
- name: layers-dir
mountPath: /layers
- name: step-build
- name: step-create
image: heroku/buildpacks:18
securityContext:
runAsUser: 1000
runAsGroup: 1000
command:
- /cnb/lifecycle/builder
args:
- -app=/workspace/source/$(build.source.contextDir)
- -layers=/layers
- -group=/layers/group.toml
- -plan=/layers/plan.toml
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 65Mi
volumeMounts:
- name: layers-dir
mountPath: /layers
- name: step-export
image: heroku/buildpacks:18
securityContext:
runAsUser: 0
command:
- /cnb/lifecycle/exporter
- /cnb/lifecycle/creator
args:
- -app=/workspace/source/$(build.source.contextDir)
- -layers=/layers
- -cache-dir=/cache
- -group=/layers/group.toml
- -layers=/layers
- $(build.output.image)
resources:
limits:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,53 +10,17 @@ spec:
securityContext:
runAsUser: 0
capabilities:
add: ["CHOWN"]
add:
- CHOWN
command:
- /bin/bash
args:
- -c
- >
chown -R "1000:1000" "/workspace/source" &&
chown -R "1000:1000" "/tekton/home"
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 65Mi
- name: step-detect
image: docker.io/paketobuildpacks/builder:full
securityContext:
runAsUser: 1000
runAsGroup: 1000
command:
- /cnb/lifecycle/detector
args:
- -app=/workspace/source/$(build.source.contextDir)
- -group=/layers/group.toml
- -plan=/layers/plan.toml
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 65Mi
volumeMounts:
- name: layers-dir
mountPath: /layers
- name: step-restore
image: docker.io/paketobuildpacks/builder:full
securityContext:
runAsUser: 1000
runAsGroup: 1000
command:
- /cnb/lifecycle/restorer
args:
- -layers=/layers
- -cache-dir=/cache
- -group=/layers/group.toml
chown -R "1000:1000" /workspace/source &&
chown -R "1000:1000" /tekton/home &&
chown -R "1000:1000" /cache &&
chown -R "1000:1000" /layers
resources:
limits:
cpu: 500m
Expand All @@ -69,40 +33,17 @@ spec:
mountPath: /cache
- name: layers-dir
mountPath: /layers
- name: step-build
image: docker.io/paketobuildpacks/builder:full
securityContext:
runAsUser: 1000
runAsGroup: 1000
command:
- /cnb/lifecycle/builder
args:
- -app=/workspace/source/$(build.source.contextDir)
- -layers=/layers
- -group=/layers/group.toml
- -plan=/layers/plan.toml
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 65Mi
volumeMounts:
- name: layers-dir
mountPath: /layers
- name: step-export
- name: step-create
image: docker.io/paketobuildpacks/builder:full
securityContext:
runAsUser: 1000
runAsGroup: 1000
command:
- /cnb/lifecycle/exporter
- /cnb/lifecycle/creator
args:
- -app=/workspace/source/$(build.source.contextDir)
- -layers=/layers
- -cache-dir=/cache
- -group=/layers/group.toml
- -layers=/layers
- $(build.output.image)
resources:
limits:
Expand Down
Loading