Skip to content

Commit 319164d

Browse files
author
Ervin Varga
committed
Removed the initctl hack from the Dockerfiles and added a new Docker image to be used as a basic Jenkins slave build node.
1 parent e3a8991 commit 319164d

File tree

4 files changed

+36
-10
lines changed

4 files changed

+36
-10
lines changed

Diff for: .project

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>docker-images</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
</buildSpec>
9+
<natures>
10+
</natures>
11+
</projectDescription>

Diff for: graphite/Dockerfile

-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ MAINTAINER Ervin Varga <[email protected]>
1010
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
1111
RUN apt-get update
1212

13-
# Hack for initctl on Ubuntu Linux.
14-
# See: https://github.com/dotcloud/docker/issues/1024
15-
RUN dpkg-divert --local --rename --add /sbin/initctl
16-
RUN ln -s /bin/true /sbin/initctl
17-
1813
# Install common stuff needed by the rest of this build file.
1914
RUN apt-get -y install python-pip memcached python-memcache python-ldap
2015
RUN apt-get -y install gcc

Diff for: jenkins-slave/Dockerfile

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This Dockerfile is used to build an image containing basic stuff to be used as a Jenkins slave build node.
2+
3+
FROM ubuntu:latest
4+
MAINTAINER Ervin Varga <[email protected]>
5+
6+
# Make sure the package repository is up to date.
7+
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
8+
RUN apt-get update
9+
10+
# Install a basic SSH server
11+
RUN apt-get -y install openssh-server
12+
RUN mkdir -p /var/run/sshd
13+
14+
# Install JDK 7 (latest edition)
15+
RUN apt-get -y install openjdk-7-jdk
16+
17+
# Add user jenkins to the image
18+
RUN adduser --quiet jenkins
19+
# Set password for the jenkins user (you may want to alter this).
20+
RUN echo "jenkins:jenkins" | chpasswd
21+
22+
# Standard SSH port
23+
EXPOSE 22
24+
25+
CMD ["/usr/sbin/sshd", "-D"]

Diff for: ubuntu-js/Dockerfile

-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ MAINTAINER Ervin Varga <[email protected]>
1212
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
1313
RUN apt-get update
1414

15-
# Hack for initctl on Ubuntu Linux.
16-
# See: https://github.com/dotcloud/docker/issues/1024
17-
RUN dpkg-divert --local --rename --add /sbin/initctl
18-
RUN ln -s /bin/true /sbin/initctl
19-
2015
# Install common stuff needed by the rest of this build file.
2116
RUN apt-get -y install bzip2
2217
RUN apt-get -y install software-properties-common

0 commit comments

Comments
 (0)