ContainerImages/jenkins-base/pipeline/head This commit looks good
Details
I've created a few container images for Jenkins jobs over the past few weeks, and many of them have several steps in common. Moving those steps to the *jenkins-base* image will simplify the rest and make it easier to create new ones. * Use UID 1000 for the *jenkins* user, since this is the UID the Jenkins agent JNLP container uses * Configure the SSH client `KnownHostsCommand` setting to fetch the SSH host key database from the file server * Run as the unprivileged user * Add a "sleep forever" type entry point: Python's `signal.pause()` waits for a signal from the operating system, where as other solutions are either uninterruptable (`sleep infinity`) or wake frequently (`tail -f /dev/null`) |
||
---|---|---|
Containerfile | ||
Jenkinsfile | ||
known-hosts-command.ssh.conf |