File tree 4 files changed +36
-10
lines changed
4 files changed +36
-10
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change 10
10
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
11
11
RUN apt-get update
12
12
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
-
18
13
# Install common stuff needed by the rest of this build file.
19
14
RUN apt-get -y install python-pip memcached python-memcache python-ldap
20
15
RUN apt-get -y install gcc
Original file line number Diff line number Diff line change
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" ]
Original file line number Diff line number Diff line change 12
12
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
13
13
RUN apt-get update
14
14
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
-
20
15
# Install common stuff needed by the rest of this build file.
21
16
RUN apt-get -y install bzip2
22
17
RUN apt-get -y install software-properties-common
You can’t perform that action at this time.
0 commit comments