2016-06-14 02:08:58 +00:00
|
|
|
FROM ubuntu:14.04
|
|
|
|
|
|
|
|
RUN apt-get update -y && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
acl \
|
2016-05-20 14:37:06 +00:00
|
|
|
apache2 \
|
|
|
|
asciidoc \
|
|
|
|
bzip2 \
|
|
|
|
cdbs \
|
2016-06-14 03:06:26 +00:00
|
|
|
curl \
|
2016-05-20 14:37:06 +00:00
|
|
|
debhelper \
|
2016-03-03 20:23:44 +00:00
|
|
|
debianutils \
|
2016-05-20 14:37:06 +00:00
|
|
|
devscripts \
|
|
|
|
docbook-xml \
|
|
|
|
dpkg-dev \
|
|
|
|
fakeroot \
|
2016-03-04 14:16:10 +00:00
|
|
|
gawk \
|
2017-06-23 19:45:38 +00:00
|
|
|
gcc \
|
2016-03-03 20:23:44 +00:00
|
|
|
git \
|
2017-06-12 10:14:46 +00:00
|
|
|
libffi-dev \
|
|
|
|
libssl-dev \
|
2016-05-20 14:37:06 +00:00
|
|
|
libxml2-utils \
|
2016-03-04 03:29:21 +00:00
|
|
|
locales \
|
2016-03-03 20:23:44 +00:00
|
|
|
make \
|
|
|
|
mercurial \
|
2016-05-20 14:37:06 +00:00
|
|
|
mysql-server \
|
2016-06-14 02:08:58 +00:00
|
|
|
openssh-client \
|
|
|
|
openssh-server \
|
2017-06-23 19:45:38 +00:00
|
|
|
python-dev \
|
2016-06-14 02:08:58 +00:00
|
|
|
python-httplib2 \
|
|
|
|
python-jinja2 \
|
|
|
|
python-keyczar \
|
2017-06-07 11:48:16 +00:00
|
|
|
python-lxml \
|
2016-06-14 02:08:58 +00:00
|
|
|
python-mock \
|
|
|
|
python-mysqldb \
|
|
|
|
python-nose \
|
|
|
|
python-paramiko \
|
2016-06-22 20:30:10 +00:00
|
|
|
python-passlib \
|
2016-06-14 02:08:58 +00:00
|
|
|
python-pip \
|
|
|
|
python-setuptools \
|
|
|
|
python-virtualenv \
|
|
|
|
python-yaml \
|
2016-05-20 14:37:06 +00:00
|
|
|
reprepro \
|
2016-06-14 02:08:58 +00:00
|
|
|
rsync \
|
2016-03-03 20:23:44 +00:00
|
|
|
ruby \
|
2017-06-25 12:25:31 +00:00
|
|
|
sshpass \
|
2016-03-03 20:23:44 +00:00
|
|
|
subversion \
|
|
|
|
sudo \
|
2017-06-07 14:54:01 +00:00
|
|
|
tzdata \
|
2016-05-20 14:37:06 +00:00
|
|
|
unzip \
|
2016-06-14 02:08:58 +00:00
|
|
|
xsltproc \
|
2016-05-20 14:37:06 +00:00
|
|
|
zip \
|
2016-06-14 02:08:58 +00:00
|
|
|
&& \
|
|
|
|
apt-get clean
|
2016-03-04 14:16:10 +00:00
|
|
|
|
2017-06-23 19:45:38 +00:00
|
|
|
RUN pip install --upgrade pycrypto cryptography
|
|
|
|
|
2016-03-04 14:16:10 +00:00
|
|
|
# helpful things taken from the ubuntu-upstart Dockerfile:
|
|
|
|
# https://github.com/tianon/dockerfiles/blob/4d24a12b54b75b3e0904d8a285900d88d3326361/sbin-init/ubuntu/upstart/14.04/Dockerfile
|
|
|
|
ADD init-fake.conf /etc/init/fake-container-events.conf
|
|
|
|
|
|
|
|
# undo some leet hax of the base image
|
|
|
|
RUN rm /usr/sbin/policy-rc.d; \
|
|
|
|
rm /sbin/initctl; dpkg-divert --rename --remove /sbin/initctl
|
|
|
|
# remove some pointless services
|
|
|
|
RUN /usr/sbin/update-rc.d -f ondemand remove; \
|
|
|
|
for f in \
|
|
|
|
/etc/init/u*.conf \
|
|
|
|
/etc/init/mounted-dev.conf \
|
|
|
|
/etc/init/mounted-proc.conf \
|
|
|
|
/etc/init/mounted-run.conf \
|
|
|
|
/etc/init/mounted-tmp.conf \
|
|
|
|
/etc/init/mounted-var.conf \
|
|
|
|
/etc/init/hostname.conf \
|
|
|
|
/etc/init/networking.conf \
|
|
|
|
/etc/init/tty*.conf \
|
|
|
|
/etc/init/plymouth*.conf \
|
|
|
|
/etc/init/hwclock*.conf \
|
|
|
|
/etc/init/module*.conf\
|
|
|
|
; do \
|
|
|
|
dpkg-divert --local --rename --add "$f"; \
|
|
|
|
done; \
|
|
|
|
echo '# /lib/init/fstab: cleared out for bare-bones Docker' > /lib/init/fstab
|
|
|
|
# end things from ubuntu-upstart Dockerfile
|
|
|
|
|
|
|
|
RUN rm /etc/apt/apt.conf.d/docker-clean
|
2016-03-03 20:23:44 +00:00
|
|
|
RUN mkdir /etc/ansible/
|
2016-03-04 14:16:10 +00:00
|
|
|
RUN /bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
|
2016-03-04 03:29:21 +00:00
|
|
|
RUN locale-gen en_US.UTF-8
|
2016-03-20 17:48:11 +00:00
|
|
|
RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \
|
|
|
|
cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \
|
|
|
|
for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done
|
2016-06-14 02:08:58 +00:00
|
|
|
VOLUME /sys/fs/cgroup /run/lock /run /tmp
|
2017-06-23 19:45:38 +00:00
|
|
|
RUN pip install pip --upgrade
|
|
|
|
RUN pip install coverage junit-xml
|
2016-06-14 02:08:58 +00:00
|
|
|
ENV container=docker
|
2016-03-03 22:45:47 +00:00
|
|
|
CMD ["/sbin/init"]
|