Debian Codegraph @

tests/inputs/Containerfile

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