From c0cc3dc09476d12c05eac4f67b89e4410ac2a905 Mon Sep 17 00:00:00 2001 From: Ravi Srinivasan <rsriniva@redhat.com> Date: Tue, 05 Feb 2019 08:00:40 +0100 Subject: [PATCH] Updated exercise 4 with instructions for configuring arachni kube pod template --- 4-an-enslaved-hope/README.md | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/4-an-enslaved-hope/README.md b/4-an-enslaved-hope/README.md index 0453f56..16d585e 100644 --- a/4-an-enslaved-hope/README.md +++ b/4-an-enslaved-hope/README.md @@ -417,6 +417,23 @@ 2. Head to <CLUSTER_URL> on OpenShift and move to your ci-cd project `Builds > Images`. You should see the `jenkins-slave-arachni` image. ![builds-zap-arachni](../images/exercise4/builds-zap-arachni.png) +3. Just like you did with the `jenkins-slave-npm`, configure the `jenkins-slave-arachni` pod template to bypass SSL certificate checks in the Jenkins global configuration settings. Log in to Jenkins and navigate to `Manage Jenkins` > `Configure System` page. + +4. Locate the `Kubernetes Pod Template` section by scrolling to the bottom of the page and click on `Add Pod Template` to add a new pod template for the Arachni scanner slave. +![add-kube-pod-template](../images/exercise4/add-kube-pod-template.png) + +5. For the new pod template, enter `jenkins-slave-arachni` in the `Name` and `Labels` fields. + +6. In the `Containers` section for the pod template, add a new container template with the following details: + * Enter `jnlp` in the `Name` field + * Enter `docker-registry.default.svc:5000/rsriniva-ci-cd/jenkins-slave-arachni` in the `Docker image` field + * Enter `/tmp` in the `Working directory` field + * Enter `${computer.jnlpmac} ${computer.name}` in the `Arguments to pass to the command` field + +7. Add a new environment variable called `GIT_SSL_NO_VERIFY` and set its value to `true`. Your final `jenkins-slave-arachni` kubernetes pod template should look like the following: +![add-kube-pod-template](../images/exercise4/new-arachni-container-template.png) + +8. Click `Save` at the bottom of the page to save your global Jenkins settings. _____ <!-- ## Extension Tasks -- Gitblit v1.9.3