docker run --name jenkins-tid-run -p8080:8080 -d --network host -v /var/run/docker.sock:/var/run/docker.sock jenkins-tid
- JAVA_OPTS
- Heap memory allocation: -Xmx24576m
- Disable Java JNDI LDAP pooling: -Dcom.sun.jndi.ldap.connect.pool.protocol=DIGEST-MD5
- Timezone set: -Dorg.apache.commons.jelly.tags.fmt.timeZone=Europe/Madrid
- JENKINS_OPTS
- Enable SSL: --httpPort=-1 --httpsPort=8443
- SSL with JKS: --httpsKeyStore=/ssl/keystore.jks --httpsKeyStorePassword=password
- SSL with key/pem: --httpsCertificate=/ssl/cert.pem --httpsPrivateKey=/ssl/cert.key
openssl pkcs12 -export -out jenkins_keystore.p12 -passout 'pass:securepass' -inkey test.key -in test.pem -certfile ca-certs.pem -name *.wildcard.test
keytool -importkeystore -srckeystore jenkins_keystore.p12 -srcstorepass 'securepass' -srcstoretype PKCS12 -srcalias *.wildcard.test -deststoretype JKS -destkeystore jenkins_keystore.jks -deststorepass 'securepass' -destalias *.wildcard.test
keytool -list -keystore jenkins_keystore.jks -storepass 'securepass'
dockerd option "mtu" must be set to a value>=1500 ( {"mtu":1450} ). If not set, there will be issues like TLS connections hanging until reset.
-
Check list of approvals:
method groovy.lang.GroovyObject invokeMethod java.lang.String java.lang.Object method hudson.model.Run getCauses method org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper getRawBuild staticMethod jenkins.model.Jenkins getInstance
-
This list is populated when administrator approves some of the "pending approvals" specified at the top op this page
- Get job cause
def causes = currentBuild.rawBuild.getCauses()
causes.eachWithIndex { item, index ->
println item
println index
}
def specificCause = currentBuild.rawBuild.getCause(hudson.model.Cause$UserIdCause)
println specificCause.properties
export DOCKER_GID=$(awk '/^docker/{match($$0,/[0-9]{3}/);print substr($$0,RSTART,RLENGTH)}' /etc/group)
docker-compose up -d