Access to an Orka cluster as described in the README here is required for development of all Orka tasks.
minikube
may be used to run a local Kubernetes cluster. See the section below on running a single-node cluster on your local development machine.
The following tools are required for development:
git
: For source controlmake
: For automating development tasksdocker
: For building and pushing images to the ghcr.io/macstadium registryminikube
: For running a local Kubernetes clusterkubectl
: For interacting with the Kubernetes cluster
Note: On macOS,
git
andmake
may be installed as part of the Xcode Command Line Tools by running the commandxcode-select --install
in the Terminal
To start a local Kubernetes cluster with minikube
, run the following command:
minikube start
To install the latest version of Tekton in the local cluster, run the following command:
minikube kubectl -- apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
To setup the Kubernetes secrets and config maps, the following environment variables are required:
ORKA_API
: The load balancer address of the Orka API. Defaults tohttp://10.221.188.20
NAMESPACE
: The Kubernetes namespace to apply all resources to. Defaults todefault
EMAIL
: The email address associated with an Orka user accountPASSWORD
: The password for an Orka user accountSSH_USERNAME
: The SSH username used to connect to an Orka VMSSH_PASSWORD
: The SSH password used to connect to an Orka VM
To build and push the Docker image to a registry, the following environment variables are required:
IMAGE_REPO
: Container image repository for hosting development imageIMAGE_TAG
: Tag used when building and pushing the Docker image used for development purposes
Any of the above variables may be set in the shell prior to running make
:
export ORKA_API=http://10.221.188.20
However, the recommended approach is to create an .env
file in the current working directory:
# .env
EMAIL=tekton-svc@email.com
PASSWORD=p@ssw0rd
SSH_USERNAME=admin
SSH_PASSWORD=admin
IMAGE_REPO=ghcr.io/my-org/orka-tekton-runner
IMAGE_TAG=dev-latest
After all variables are set, run the following command to configure the cluster and install all tasks:
make all
Note: Run the command
make help
for more information on available targets
To build the Docker image, first make sure the environment variables IMAGE_REPO
and IMAGE_TAG
are set as described in the above section.
Run the following command to build the image:
make build
Run the following command to push the image to a repository:
make push