Last active
January 17, 2022 18:29
-
-
Save agracey/1acf78110787114a04e1e76f96111c4f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: test-buildpack | |
namespace: tekton-staging | |
spec: | |
ttlSecondsAfterFinished: 600 | |
template: | |
spec: | |
nodeSelector: | |
k3s.io/hostname: opensuse1 | |
initContainers: | |
- name: download | |
image: amazon/aws-cli:2.0.52 | |
volumeMounts: | |
- name: minio-secret | |
mountPath: /root/.aws | |
- name: source | |
mountPath: /workspace/source | |
command: ["/bin/bash"] | |
args: | |
- -c | |
- > | |
aws | |
--endpoint-url http://minio.minio-epinio.svc.cluster.local | |
s3 | |
cp | |
s3://epinio/e46b1bda-6f70-434e-9640-23f260fb4784 | |
/workspace/source/e46b1bda-6f70-434e-9640-23f260fb4784 | |
- name: unpack | |
image: bash | |
volumeMounts: | |
- name: source | |
mountPath: /workspace/source | |
- name: cache | |
mountPath: /workspace/cache | |
- name: registry-creds | |
mountPath: /home/cnb/.docker/ | |
readOnly: true | |
command: ["bash"] | |
args: | |
- -c | |
- > | |
mkdir /workspace/source/app; | |
tar -xvf /workspace/source/e46b1bda-6f70-434e-9640-23f260fb4784 -C /workspace/source/app/; | |
rm /workspace/source/e46b1bda-6f70-434e-9640-23f260fb4784; | |
chown -R 1000:1000 /workspace/; | |
containers: | |
- name: buildpack | |
image: paketobuildpacks/builder:full | |
command: ["/bin/bash"] | |
#command: ["/cnb/lifecycle/creator"] | |
args: | |
- -c | |
- > | |
/cnb/lifecycle/creator | |
-app=/workspace/source/app | |
-cache-dir=/workspace/cache | |
-uid=1000 | |
-gid=1000 | |
-layers=/layers | |
-platform=/platform | |
-report=/layers/report.toml | |
-process-type=web | |
-skip-restore=false | |
-previous-image=epinio-registry.192.168.1.11.sslip.io/apps/workspace-dl:59d762659df9038d | |
epinio-registry.192.168.1.11.sslip.io/apps/workspace-dl:test | |
; | |
curl -X POST http://localhost:4191/shutdown | |
volumeMounts: | |
- name: cache | |
mountPath: /workspace/cache | |
- name: source | |
mountPath: /workspace/source | |
- name: registry-certs | |
mountPath: /etc/ssl/certs/eea339da | |
readOnly: true | |
subPath: ca.crt | |
- name: registry-creds | |
mountPath: /home/cnb/.docker/ | |
readOnly: true | |
env: | |
- name: CNB_PLATFORM_API | |
value: "0.4" | |
securityContext: | |
runAsGroup: 1000 | |
runAsUser: 1000 | |
restartPolicy: Never | |
volumes: | |
- name: cache | |
persistentVolumeClaim: | |
claimName: cachetest-pvc | |
- name: source | |
emptyDir: {} | |
- name: registry-certs | |
secret: | |
secretName: epinio-registry-tls | |
defaultMode: 420 | |
- name: registry-creds | |
secret: | |
secretName: registry-creds | |
defaultMode: 420 | |
items: | |
- key: .dockerconfigjson | |
path: config.json | |
- name: minio-secret | |
secret: | |
secretName: epinio-s3-connection-details | |
defaultMode: 420 | |
backoffLimit: 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment