containerbuilding / cbi

Container Builder Interface for Kubernetes with support for several backends (Docker, BuildKit, Buildah, kaniko, img, Google Cloud Container Builder, Azure Container Registry Build, OpenShift Source-to-Image...)
Apache License 2.0
243 stars 18 forks source link

Define and implement "Flex" context provider #36

Open AkihiroSuda opened 6 years ago

AkihiroSuda commented 6 years ago

maybe like

apiVersion: cbi.containerbuilding.github.io/v1alpha1
kind: FlexContextProvider
metadata:
  name: foo
  labels:
    mediaType: application/tar+gzip
spec:
  template:
    spec:
      containers:
      - name: foo
         commands: ["cat", "a.tgz"]

---

apiVersion: cbi.containerbuilding.github.io/v1alpha1
kind: BuildJob
spec:
  context:
    kind: flex
    flex:
      providerRef:
        name: foo
      options:
        bar: baz 
AkihiroSuda commented 6 years ago

memo: repo2docker as a FlexContextProvider? https://twitter.com/_AkihiroSuda_/status/989330234611662848

AkihiroSuda commented 6 years ago

This should be also useful for S2I Dockerfile generator https://github.com/openshift/source-to-image/pull/878