Skip to content
This repository has been archived by the owner on Mar 13, 2021. It is now read-only.

Commit

Permalink
Add the riff CNB buildtemplate version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
trisberg committed Sep 21, 2018
1 parent 2f71487 commit 6ac2a6f
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions third_party/cnb/riff-cnb-buildtemplate-0.1.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: riff-cnb-cache
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
---
apiVersion: build.knative.dev/v1alpha1
kind: BuildTemplate
metadata:
name: riff-cnb
spec:
parameters:
- name: IMAGE
description: The image you wish to create. For example, "repo/example", or "example.com/repo/image".
- name: RUN_IMAGE
description: The run image buildpacks will use as the base for IMAGE.
default: packs/run
- name: USE_CRED_HELPERS
description: Use Docker credential helpers for Google's GCR, Amazon's ECR, or Microsoft's ACR.
default: 'true'

steps:
- name: prepare
image: packs/base
command: ["/lifecycle/knative-helper"]
volumeMounts:
- name: app-cache
mountPath: /cache
imagePullPolicy: Always
- name: detect
image: projectriff/buildpack
command: ["/lifecycle/detector"]
imagePullPolicy: Always
- name: analyze
image: packs/util
command: ["/lifecycle/analyzer"]
args: ["${IMAGE}"]
env:
- name: PACK_USE_HELPERS
value: ${USE_CRED_HELPERS}
imagePullPolicy: Always
- name: build
image: projectriff/buildpack
command: ["/lifecycle/builder"]
volumeMounts:
- name: app-cache
mountPath: /cache
imagePullPolicy: Always
- name: export
image: packs/util
command: ["/lifecycle/exporter"]
args: ["${IMAGE}"]
env:
- name: PACK_RUN_IMAGE
value: ${RUN_IMAGE}
- name: PACK_USE_HELPERS
value: ${USE_CRED_HELPERS}
imagePullPolicy: Always

volumes:
- name: app-cache
persistentVolumeClaim:
claimName: riff-cnb-cache

0 comments on commit 6ac2a6f

Please sign in to comment.