In KubeSphere DevOps, the pipeline runs on the agent of Jenkins. The agent depends on the kubernetes-plugin. It's necessary to provide Kubernetes a podTemplate, and the podTemplate defines the agent.
The definition method of podTemplate is:
podTemplate(containers: [
containerTemplate(name: 'base', image: 'kubesphere/builder-base:v2.1.0', ttyEnabled: true, command: 'cat')
])
This repo stores the build files of image for these podTemplate.
Welcome to contribute.
Enter the directory and execute :
docker build -f Dockerfile .
It's a better way to provide jenkinsfile for compiling images , like base agent.
- Slack #sig-devops
- Mailing List
- Medium (Blog)