Nicolas De Loof | d606438 | 2014-10-04 08:17:28 +0200 | [diff] [blame] | 1 | #! /bin/bash |
| 2 | |
Nicolas De Loof | 07c307d | 2014-10-07 14:02:42 +0200 | [diff] [blame^] | 3 | # if `docker run` first argument start with `--` the user is passing jenkins launcher arguments |
| 4 | if [[ $# -lt 1 ]] || [[ "$1" == "--"* ]]; then |
| 5 | exec java $JAVA_OPTS -jar /usr/share/jenkins/jenkins.war $JENKINS_OPTS --prefix=$JENKINS_PREFIX $@ |
| 6 | fi |
| 7 | |
| 8 | # As argument is not jenkins, assume user want to run his own process, for sample a `bash` shell to explore this image |
| 9 | exec $@ |
Nicolas De Loof | d606438 | 2014-10-04 08:17:28 +0200 | [diff] [blame] | 10 | |