-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
knjname
committed
May 3, 2014
1 parent
7aa2d99
commit 46edc9e
Showing
6 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM ubuntu | ||
|
||
MAINTAINER knjname | ||
|
||
# Install required tools | ||
RUN apt-get update | ||
RUN apt-get install -y openjdk-7-jdk | ||
RUN apt-get install -y openssh-server | ||
|
||
# Install SSH configuration | ||
# (Should allow master's SSH request.) | ||
ADD ssh-files /root/.ssh | ||
RUN mkdir -p /var/run/sshd | ||
|
||
# Install additional tools several jobs needs. | ||
# (Following packages are just examples.) | ||
RUN apt-get install -y gcc graphviz ruby | ||
|
||
# Jenkins workspace | ||
RUN mkdir -p /jenkins/ws | ||
|
||
# Declarations | ||
CMD /usr/sbin/sshd -D | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
docker build -t knjname/jenkins-slave . | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
docker run \ | ||
--name "jenkins-slave" \ | ||
-p 10022:22 \ | ||
-d \ | ||
knjname/jenkins-slave | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDA1OaiK04xZ1nlnGeujrbvjSofchz2nb9KZ7MgkpBS9NQZxyGKpqHtah2Zl05IhCSFwO62Jb9h/zRwa7ifKKkiav+CcsFV2A7g3FsDUf+B4GwLgGKEuOOwE/1kbHf3MTPunG0JpaObKIZXv2uojSxXy7grX0+Q7uSkxdPPqVl+us4ALgpgK6tsU1bggkua6bn/ThUbvfbj/vKHKWGmT6teOcUIlx42MjbRr877BEI0Oj4wwaA3qlWqpU1iq+ffSRupobAZzjvJqinndBJZRFdGkzCUrbtdiMQydbr3cPannPU7CsXWDARzIWgDz+n/T8d0Bq42vtLj9VkaYptaT4Kx root@ubuntuserver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIEpQIBAAKCAQEAwNTmoitOMWdZ5Zxnro62740qH3Ic9p2/SmezIJKQUvTUGcch | ||
iqah7WodmZdOSIQkhcDutiW/Yf80cGu4nyipImr/gnLBVdgO4NxbA1H/geBsC4Bi | ||
hLjjsBP9ZGx39zEz7pxtCaWjmyiGV79rqI0sV8u4K19PkO7kpMXTz6lZfrrOAC4K | ||
YCurbFNW4IJLmum5/04VG7324/7yhylhpk+rXjnFCJceNjI20a/O+wRCNDo+MMGg | ||
N6pVqqVNYqvn30kbqaGwGc47yaop53QSWURXRpMwlK27XYjEMnW693D2p5z1OwrF | ||
1gwEcyFoA8/p/0/HdAauNr7S4/VZGmKbWk+CsQIDAQABAoIBAQCdM/Ph+VQByrPr | ||
EJsmH4rbuEXC5RDfrLKqQegygcnPF3FiooihtD8GgiAnesaDL9dmg2cYb6WaiqeB | ||
jxAwEMHyITC0dEFRbpaSkpJQHqUiiIcMyVmHw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2Jo5DnclQbfwCoY2tUJctj5oGt/Q8ja5c06sz | ||
kFrytvnek0DWCA87X2P6rgHvh9cd4gNyasrnzpzAuUt/xDJjPa/9crw= | ||
-----END RSA PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDA1OaiK04xZ1nlnGeujrbvjSofchz2nb9KZ7MgkpBS9NQZxyGKpqHtah2Zl05IhCSFwO62Jb9h/zRwa7ifKKkiav+CcsFV2A7g3FsDUf+B4GwLgGKEuOOwE/1kbHf3MTPunG0JpaObKIZXv2uojSxXy7grX0+Q7uSkxdPPqVl+us4ALgpgK6tsU1bggkua6bn/ThUbvfbj/vKHKWGmT6teOcUIlx42MjbRr877BEI0Oj4wwaA3qlWqpU1iq+ffSRupobAZzjvJqinndBJZRFdGkzCUrbtdiMQydbr3cPannPU7CsXWDARzIWgDz+n/T8d0Bq42vtLj9VkaYptaT4Kx root@ubuntuserver |