Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serverless-components/knative-build
Instantly create and manage Knative build definitions running on top of Tekton Pipelines in your Kubernetes cluster.
https://github.com/serverless-components/knative-build
faas knative knative-build kubernetes kubernetes-cluster serverless serverless-components serverless-framework tekton tektoncd
Last synced: about 23 hours ago
JSON representation
Instantly create and manage Knative build definitions running on top of Tekton Pipelines in your Kubernetes cluster.
- Host: GitHub
- URL: https://github.com/serverless-components/knative-build
- Owner: serverless-components
- Created: 2019-10-18T08:40:24.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-20T12:02:39.000Z (almost 5 years ago)
- Last Synced: 2024-11-05T09:46:41.667Z (about 2 months ago)
- Topics: faas, knative, knative-build, kubernetes, kubernetes-cluster, serverless, serverless-components, serverless-framework, tekton, tektoncd
- Language: JavaScript
- Homepage: https://serverless.com
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# knative-build
Instantly create and manage Knative build definitions running on top of [Tekton](https://tekton.dev) Pipelines in your Kubernetes cluster with [Serverless Components](https://github.com/serverless/components).
1. [Install](#1-install)
2. [Create](#2-create)
3. [Configure](#3-configure)
4. [Deploy](#4-deploy)
### 1. Install
```console
$ npm install -g serverless
```### 2. Create
Just create a `serverless.yml` file
```console
$ touch serverless.yml
```Make sure that you have generated your [`Kubeconfig` file](https://rancher.com/docs/rancher/v2.x/en/cluster-admin/kubeconfig/) via `kubectl`.
### 3. Configure
```yml
# serverless.yml
org: acme
app: todo
name: todo-knative-buildcomponent: knative-build@dev
inputs:
# use one of the following 2 source definitions
gitUrl: [email protected]:engineering/accounting-taxes.git#master # supports `git` or `https` URLs
bucketUrl: http://acme.s3-us-east-1.amazonaws.com/accounting-taxes # AWS S3 or Google Cloud Storage bucket
dockerfile: '.' # the Dockerfile located within the source code
context: '.' # the build context located within the source code
tag: latest # default is `latest`
registryAddress: 'https://container-registry.acme.com' # default is `'https://index.docker.io/v1'`
environment: # optional environment variables
STAGE: prod
```### 4. Deploy
```console
$ serverless
```### New to Components?
Checkout the [Serverless Components](https://github.com/serverless/components) repo for more information.