Debian Codegraph @

tests/inputs/Dockerfile

raw
1 FROM centos:centos6
2
3 # just a comment
4
5 RUN yum clean all && \
6 yum -y install epel-release && \
7 yum -y install \
8 acl \
9 asciidoc \
10 bzip2 \
11 file \
12 gcc \
13 git \
14 make \
15 mercurial \
16 mysql \
17 MySQL-python \
18 mysql-server \
19 openssh-clients \
20 openssh-server \
21 python-coverage \
22 python-devel \
23 python-httplib2 \
24 python-keyczar \
25 python-mock \
26 python-nose \
27 python-paramiko \
28 python-passlib \
29 python-pip \
30 python-setuptools \
31 python-virtualenv \
32 PyYAML \
33 rpm-build \
34 rubygems \
35 sed \
36 subversion \
37 sudo \
38 unzip \
39 which \
40 zip \
41 && \
42 yum clean all
43
44 RUN rpm -e --nodeps python-crypto && pip install --upgrade jinja2 pycrypto
45
46 RUN /bin/sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
47 RUN mkdir /etc/ansible/
48 RUN /bin/echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
49 VOLUME /sys/fs/cgroup /run /tmp
50 RUN ssh-keygen -q -t rsa1 -N '' -f /etc/ssh/ssh_host_key && \
51 ssh-keygen -q -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key && \
52 ssh-keygen -q -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key && \
53 ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \
54 cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \
55 for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done
56 RUN pip install junit-xml
57 ENV container=docker
58 CMD ["/sbin/init"]