From 9a88f45efe66e5ce3b95c646b1378ba64649d281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20S=C4=99k?= Date: Sat, 29 Jun 2019 16:46:41 +0200 Subject: [PATCH] #39 Update docs --- docs/getting-started.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index 4342a1bb..4e63cd7b 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -9,7 +9,8 @@ This document describes a getting started guide for **jenkins-operator** and an 5. [Configure Backup & Restore](#configure-backup-and-restore) 6. [AKS](#aks) 7. [Jenkins login credentials](#jenkins-login-credentials) -8. [Debugging](#debugging) +8. [Override default Jenkins container command](#override-default-Jenkins-container-command) +9. [Debugging](#debugging) ## First Steps @@ -489,6 +490,30 @@ data: If needed **jenkins-operator** will restart Jenkins master pod and then you can login with the new user and password credentials. +## Override default Jenkins container command + +The default command for the Jenkins master container `jenkins/jenkins:lts` looks like: + +```yaml +command: +- bash +- -c +- /var/jenkins/scripts/init.sh && /sbin/tini -s -- /usr/local/bin/jenkins.sh +``` + +The script`/var/jenkins/scripts/init.sh` is provided be the operator and configures init.groovy.d(creates Jenkins user) +and installs plugins. +The `/sbin/tini -s -- /usr/local/bin/jenkins.sh` command runs the Jenkins master main process. + +You can overwrite it in the following pattern: + +```yaml +command: +- bash +- -c +- /var/jenkins/scripts/init.sh && && /sbin/tini -s -- /usr/local/bin/jenkins.sh +``` + ## Debugging Turn on debug in **jenkins-operator** deployment: