forked from sous-chefs/jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.docker.yml
23 lines (21 loc) · 874 Bytes
/
.kitchen.docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
driver:
name: docker
image: phusion/baseimage:latest
provision_command:
# Enable SSHD
- rm -f /etc/service/sshd/down
- /etc/my_init.d/00_regen_ssh_host_keys.sh
# Install Java
- apt-get install -y --no-install-recommends openjdk-7-jre
# Install Jenkins
- mkdir -p /usr/share/jenkins/
- useradd -d /var/lib/jenkins -m -s /bin/bash jenkins
- curl -fL http://mirrors.jenkins-ci.org/war-stable/latest/jenkins.war -o /usr/share/jenkins/jenkins.war
- mkdir -p /etc/service/jenkins
- echo "#!/bin/sh \n exec /sbin/setuser jenkins env HOME=/var/lib/jenkins JENKINS_HOME=/var/lib/jenkins java -jar /usr/share/jenkins/jenkins.war --httpPort=8080 --httpListenAddress=0.0.0.0" > /etc/service/jenkins/run
- chmod +x /etc/service/jenkins/run
forward:
- 8080:8080
run_command: /sbin/my_init
platforms:
- name: ubuntu-docker