Skip to content

dimetron/kind-tekton-gradle-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tekton Pipeline example with Gradle

This project is example how to migrate from jenkins pipelines to the cloud native tekton CD using gradle

Why Tekton pipelines

  • GitOps
  • Cloud native
  • Industry Standard
  • Task Encapsulation

Reusable Tasks Catalog

What is Included

  • all tools as docker image docker exec -it dev-tools zsh

  • gradle one click scripts to bootstrap local k8s cluster with Kind https://kind.sigs.k8s.io

  • latest Tekton pipelines and triggers with dashboard

  • Dashboard v0.8.2 http://localhost:8080/#/about

  • Pipelines v0.15.1

  • Triggers v0.7.0

alt text

Requirements

All tools baked inside Docker image https://github.com/dimetron/kind-tekton-gradle-example/blob/master/tools/Dockerfile

  • IDE VS Code or IntelliJ (alternative gradlew CLI)
  • Docker Desktop with 6 GB RAM and shared drive

alt text

Creating k8s cluster

Gradle default task all-tasks will do

  • setup local cluster
  • deploy tekton using kapp
  • deploy tasks and pipelines
  • execute pipeline using tekton pipeline-run

./gradlew

Open Dashboard k9s

docker exec -it dev-tools k9s

Using Tekton command line

docker exec -it dev-tools zsh
tkn task list

Tekton Dashboard

As part of demo repository dashboard installed with ingress

alt text

Using Tekton Plugin VS Code / IntelliJ

VS Code: alt text

IntelliJ: alt text

References:

Tutorials:

Troubleshooting

in case of issues delete docker container docker rm -f dev-tools and run Gradle ./gradlew again

About

Tekton-pipelines example project with Docker + Gradle

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published