kube-builder is a utility image that includes several tools useful in Drone pipelines for building Docker images and deploying them to Kubernetes.
- Docker
- Drone CI (for pipeline usage)
Pull the image from Docker Hub:
docker pull supporttools/kube-builder
- curl - Command line tool for transferring data
- wget - File retrieval utility
- openssh-client - SSH connectivity tools
- git - Version control system
- zip/unzip - Compression utilities
- awscli - AWS command line interface
- rsync - Fast file transfer utility
- jq - JSON processor
- ca-certificates - Common CA certificates
- make - Build automation tool
- build-essential - C/C++ compiler and development tools
- gnupg - OpenPGP encryption and signing tool
- lsb-release - Linux Standard Base version reporting
- kubectl - Kubernetes command-line tool
- kustomize - Kubernetes configuration management
- helm - Kubernetes package manager
- gh - GitHub CLI tool
- kube-linter - Static analysis tool for Kubernetes
- Go - Programming language
- rancher-projects - Rancher CLI tool
- Docker - Container platform
- Docker Buildx - Docker CLI plugin for extended build capabilities
To use the kube-builder image in your Drone pipelines, specify supporttools/kube-builder
as the image name in your .drone.yml
file:
pipeline:
build:
image: supporttools/kube-builder
commands:
- make build
- make push
- kubectl apply -f deployment.yaml
This example pipeline runs a make command to build a Docker image, then pushes the image to a Docker registry, and finally deploys the Kubernetes manifest in deployment.yaml using kubectl apply.
You can also use the included tools directly in your pipeline commands:
pipeline:
build:
image: supporttools/kube-builder
commands:
- kubectl version --client
- kustomize build overlays/dev | kubectl apply -f -
- helm upgrade --install my-app chart/
You can run the container locally for testing:
docker run -it --rm supporttools/kube-builder /bin/bash
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to your branch
- Create a Pull Request
kube-builder is licensed under the Apache License, Version 2.0. See the LICENSE file for details.