Skip to content

Commit

Permalink
Merge pull request #127 from pradeepitm12/tsksnpt
Browse files Browse the repository at this point in the history
Add task snippets for YAML editor
  • Loading branch information
openshift-merge-robot authored Dec 19, 2019
2 parents c9bb40c + 3072fb7 commit 3f96312
Show file tree
Hide file tree
Showing 8 changed files with 271 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
apiVersion: console.openshift.io/v1
kind: ConsoleYAMLSample
metadata:
name: buildah-snippet
spec:
targetResource:
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
title: Buildah Task
description: |
Buildash task builds the source into a container image Project Atomic's Buildah build tool.
It uses Buildah's support for building from Dockerfiles, using its buildah bud command.
This command executes the directives in the Dockerfile to assemble a container image, then pushes that image to a container registry.
snippet: true
yaml: |
- name: build
taskRef:
name: buildah
kind: ClusterTask
resources:
inputs:
- name: source
resource: app-source
outputs:
- name: image
resource: app-image
params:
- name: BUILDER_IMAGE
value: quay.io/buildah/stable:v1.11.0
- name: DOCKERFILE
value: ./Dockerfile
- name: TLSVERIFY
value: "true"
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
apiVersion: console.openshift.io/v1
kind: ConsoleYAMLSample
metadata:
name: openshift-client-snippet
spec:
targetResource:
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
title: Openshift-client Task
description: |
OpenShift is a Kubernetes distribution from Red Hat which provides oc, the OpenShift CLI that complements kubectl for simplifying deployment and configuration applications on OpenShift.
snippet: true
yaml: |
- name: deploy
taskRef:
name: openshift-client
kind: ClusterTask
params:
- name: ARGS
value: "help"
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
apiVersion: console.openshift.io/v1
kind: ConsoleYAMLSample
metadata:
name: s2i-go-snippet
spec:
targetResource:
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
title: S2I-Go Task
description: |
An s2i task to build go based source.
Source-to-Image (S2I) is a toolkit and workflow for building reproducible container images from source code.
S2I produces images by injecting source code into a base S2I container image and letting the container prepare that source code for execution.
The base S2I container images contains the language runtime and build tools needed for building and running the source code.
snippet: true
yaml: |
- name: build
taskRef:
name: s2i-go
kind: ClusterTask
resources:
inputs:
- name: source
resource: app-source
outputs:
- name: image
resource: app-image
params:
- name: PATH_CONTEXT
value: .
- name: TLSVERIFY
value: "true"
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
apiVersion: console.openshift.io/v1
kind: ConsoleYAMLSample
metadata:
name: s2i-java-11-snippet
spec:
targetResource:
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
title: S2I-Java-11 Task
description: |
An s2i task to build java 11 based source.
Source-to-Image (S2I) is a toolkit and workflow for building reproducible container images from source code.
S2I produces images by injecting source code into a base S2I container image and letting the container prepare that source code for execution.
The base S2I container images contains the language runtime and build tools needed for building and running the source code.
snippet: true
yaml: |
- name: build
taskRef:
name: s2i-java-11
kind: ClusterTask
resources:
inputs:
- name: source
resource: app-source
outputs:
- name: image
resource: app-image
params:
- name: PATH_CONTEXT
value: .
- name: TLSVERIFY
value: "true"
- name: MAVEN_ARGS_APPEND
value: ""
- name: MAVEN_CLEAR_REPO
value: "false"
- name: MAVEN_MIRROR_URL
value: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
apiVersion: console.openshift.io/v1
kind: ConsoleYAMLSample
metadata:
name: s2i-java-8-snippet
spec:
targetResource:
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
title: S2I-Java-8 Task
description: |
An s2i task to build java 8 based source.
Source-to-Image (S2I) is a toolkit and workflow for building reproducible container images from source code.
S2I produces images by injecting source code into a base S2I container image and letting the container prepare that source code for execution.
The base S2I container images contains the language runtime and build tools needed for building and running the source code.
snippet: true
yaml: |
- name: build
taskRef:
name: s2i-java-8
kind: ClusterTask
resources:
inputs:
- name: source
resource: app-source
outputs:
- name: image
resource: app-image
params:
- name: PATH_CONTEXT
value: .
- name: TLSVERIFY
value: "true"
- name: MAVEN_ARGS_APPEND
value: ""
- name: MAVEN_CLEAR_REPO
value: "false"
- name: MAVEN_MIRROR_URL
value: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
apiVersion: console.openshift.io/v1
kind: ConsoleYAMLSample
metadata:
name: s2i-nodejs-snippet
spec:
targetResource:
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
title: S2I-Nodejs Task
description: |
An s2i task to build nodejs based source.
Source-to-Image (S2I) is a toolkit and workflow for building reproducible container images from source code.
S2I produces images by injecting source code into a base S2I container image and letting the container prepare that source code for execution.
The base S2I container images contains the language runtime and build tools needed for building and running the source code.
snippet: true
yaml: |
- name: build
taskRef:
name: s2i-nodejs
kind: ClusterTask
resources:
inputs:
- name: source
resource: app-source
outputs:
- name: image
resource: app-image
params:
- name: VERSION
value: "8"
- name: PATH_CONTEXT
value: .
- name: TLSVERIFY
value: "true"
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
apiVersion: console.openshift.io/v1
kind: ConsoleYAMLSample
metadata:
name: s2i-python-3-snippet
spec:
targetResource:
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
title: S2I-Python-3 Task
description: |
An s2i task to build python 3 based source.
Source-to-Image (S2I) is a toolkit and workflow for building reproducible container images from source code.
S2I produces images by injecting source code into a base S2I container image and letting the container prepare that source code for execution.
The base S2I container images contains the language runtime and build tools needed for building and running the source code.
snippet: true
yaml: |
- name: build
taskRef:
name: s2i-python-3
kind: ClusterTask
resources:
inputs:
- name: source
resource: app-source
outputs:
- name: image
resource: app-image
params:
- name: MINOR_VERSION
value: "6"
- name: PATH_CONTEXT
value: .
- name: TLSVERIFY
value: "true"
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
apiVersion: console.openshift.io/v1
kind: ConsoleYAMLSample
metadata:
name: s2i-snippet
spec:
targetResource:
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
title: S2I Task
description: |
Source-to-Image (S2I) is a toolkit and workflow for building reproducible container images from source code.
S2I produces images by injecting source code into a base S2I container image and letting the container prepare that source code for execution.
The base S2I container images contains the language runtime and build tools needed for building and running the source code.
snippet: true
yaml: |
- name: build
taskRef:
name: s2i
kind: ClusterTask
resources:
inputs:
- name: source
value: app-source
outputs:
- name: image
value: app-image
params:
- name: PATH_CONTEXT
value: .
- name: TLSVERIFY
value: "true"
- name: LOGLEVEL
value: "0"

0 comments on commit 3f96312

Please sign in to comment.