Added config + instructions for testing on Docker Desktop (#668)

This commit is contained in:
Kalmalyzer 2021-10-20 14:03:26 +02:00 committed by GitHub
parent b1a388b6d6
commit 7092beabdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,7 @@
KUBERNETES_PROVIDER=docker-desktop
KUBECTL_CONTEXT=docker-desktop
JENKINS_API_HOSTNAME_COMMAND=echo localhost
JENKINS_API_PORT=0
JENKINS_API_USE_NODEPORT=true

View File

@ -205,6 +205,17 @@ seed-job-agent-jenkins-example-758cc7cc5c-82hbl 1/1 Running 0
```
## Build and run with Docker Desktop
Install Docker Desktop. If you are using Docker Desktop for Windows, you will also need to install WSL or WSL2. Ensure that Docker Desktop is currently running, and that you have enabled Kubernetes in it.
Run **Jenkins Operator** locally.
```bash
make config="config.docker-desktop.env" run
```
From this point on, Docker Desktop usage is identical to minikube usage.
### Debug Jenkins Operator
```bash