This document describes how to run kind jobs locally without a Prow cluster.
-
Create a directory for the repositories you are about to clone:
mkdir -p "$HOME/repositories"
-
Clone the
kyma
repository:git clone https://github.com/kyma-project/kyma.git "$HOME/repositories/kyma"
-
Clone the
test-infra
repository:git clone https://github.com/kyma-project/test-infra.git "$HOME/repositories/test-infra"
-
Create the
artifacts
directory:mkdir -p "$HOME/artifacts"
-
Create the
docker-graph
directory:mkdir -p "$HOME/docker-graph"
-
Run a Docker container with configuration based on a ProwJob definition. For example, use the configuration for
pre-master-kyma-kind-upgrade
:
docker run \
--rm \
--privileged \
--volume "$HOME/repositories:/home/prow/go/src/github.com/kyma-project" \
--volume "$HOME/artifacts:/artifacts" \
--volume "/sys/fs/cgroup:/sys/fs/cgroup" \
--volume "/lib/modules:/lib/modules" \
--volume "$HOME/docker-graph:/docker-graph" \
--env ARTIFACTS="/artifacts" \
--env GOPATH="/home/prow/go" \
eu.gcr.io/kyma-project/test-infra/buildpack-golang-toolbox:v20191011-51ed45a \
/home/prow/go/src/github.com/kyma-project/test-infra/prow/scripts/kind-upgrade-kyma.sh \
--ensure-kubectl \
--ensure-helm \
--update-hosts \
--delete-cluster \
--tune-inotify \
--start-docker \
--kubernetes-version \
v1.16.3 \
--kyma-sources \
/home/prow/go/src/github.com/kyma-project/kyma \
--kyma-installation-timeout \
30m
All logs and artifacts generated during a job run are stored in the artifacts
directory created in step 1 of the Run a kind job section.