Giter VIP home page Giter VIP logo

build-templates's Introduction

Knative Build Templates

This repository contains a library of BuildTemplate resources which are designed to be reusable by many applications.

Each build template is in a separate directory along with a README.md and a Kubernetes manifest, so you can choose which build templates to install on your cluster.

Build Templates Kinds

There are two kinds of build templates:

  1. ClusterBuildTemplates with a Cluster scope
  2. BuildTemplates with a Namespace scope

A default kind of BuildTemplate is used if the field kind is not set.

Using Build Templates

First, install a build template onto your cluster:

$ kubectl apply -f buildpack.yaml
buildtemplate "buildpack" created

You can see which build templates are installed using kubectl as well:

$ kubectl get buildtemplates
NAME       AGE
buildpack  3s

OR

$ kubectl get clusterbuildtemplates
NAME        AGE
buildpack   9s

With the build template installed, you can define a build that uses that template, being sure to provide values for required parameters:

apiVersion: build.knative.dev/v1alpha1
kind: Build
metadata:
  name: buildpack-build
spec:
  source:
    git:
      url: https://github.com/my-user/my-repo
      revision: master
  template:
    name: buildpack
    kind: BuildTemplate # (or ClusterBuildTemplate)
    arguments:
    - name: IMAGE
      value: us.gcr.io/my-project/my-app

Next, create the build you defined:

$ kubectl apply -f build.yaml
build "buildpack-build" created

You can check the status of the build using kubectl:

kubectl get build buildpack-build -o yaml

Contributing and Support

If you want to contribute to this repository, please see our contributing guidelines.

If you are looking for support, enter an issue or join our Slack workspace

build-templates's People

Contributors

adrcunha avatar akihirosuda avatar ameyer-pivotal avatar chaodaig avatar coollog avatar dewitt avatar dlorenc avatar dprotaso avatar ekcasey avatar evankanderson avatar huoqifeng avatar imjasonh avatar johscheuer avatar nader-ziada avatar philippthun avatar scothis avatar sebgoa avatar trisberg avatar vbatts avatar vdemeester avatar zouyee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.