1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Combine new RUN commands into one RUN command.

This commit is contained in:
Matt Clay 2016-03-20 10:48:11 -07:00
parent da99e4e0aa
commit 4224c11b5f
6 changed files with 28 additions and 28 deletions

View file

@ -35,11 +35,11 @@ RUN /bin/sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
RUN mkdir /etc/ansible/ RUN mkdir /etc/ansible/
RUN /bin/echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts RUN /bin/echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
#VOLUME /sys/fs/cgroup /run /tmp #VOLUME /sys/fs/cgroup /run /tmp
RUN ssh-keygen -q -t rsa1 -N '' -f /etc/ssh/ssh_host_key RUN ssh-keygen -q -t rsa1 -N '' -f /etc/ssh/ssh_host_key && \
RUN ssh-keygen -q -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key ssh-keygen -q -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key && \
RUN ssh-keygen -q -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key ssh-keygen -q -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key && \
RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \
RUN cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \
RUN for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done
ENV container=docker ENV container=docker
CMD ["/sbin/init"] CMD ["/sbin/init"]

View file

@ -40,11 +40,11 @@ RUN /usr/bin/sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
RUN mkdir /etc/ansible/ RUN mkdir /etc/ansible/
RUN /usr/bin/echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts RUN /usr/bin/echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
VOLUME /sys/fs/cgroup /run /tmp VOLUME /sys/fs/cgroup /run /tmp
RUN ssh-keygen -q -t rsa1 -N '' -f /etc/ssh/ssh_host_key RUN ssh-keygen -q -t rsa1 -N '' -f /etc/ssh/ssh_host_key && \
RUN ssh-keygen -q -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key ssh-keygen -q -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key && \
RUN ssh-keygen -q -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key ssh-keygen -q -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key && \
RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \
RUN cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \
RUN for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done
ENV container=docker ENV container=docker
CMD ["/usr/sbin/init"] CMD ["/usr/sbin/init"]

View file

@ -45,10 +45,10 @@ RUN /usr/bin/sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
RUN mkdir /etc/ansible/ RUN mkdir /etc/ansible/
RUN /usr/bin/echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts RUN /usr/bin/echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
VOLUME /sys/fs/cgroup /run /tmp VOLUME /sys/fs/cgroup /run /tmp
RUN ssh-keygen -q -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key RUN ssh-keygen -q -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key && \
RUN ssh-keygen -q -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key ssh-keygen -q -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key && \
RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \
RUN cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \
RUN for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done
ENV container=docker ENV container=docker
CMD ["/usr/sbin/init"] CMD ["/usr/sbin/init"]

View file

@ -46,10 +46,10 @@ RUN /usr/bin/sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
RUN mkdir /etc/ansible/ RUN mkdir /etc/ansible/
RUN /usr/bin/echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts RUN /usr/bin/echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
VOLUME /sys/fs/cgroup /run /tmp VOLUME /sys/fs/cgroup /run /tmp
RUN ssh-keygen -q -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key RUN ssh-keygen -q -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key && \
RUN ssh-keygen -q -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key ssh-keygen -q -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key && \
RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \
RUN cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \
RUN for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done
ENV container=docker ENV container=docker
CMD ["/usr/sbin/init"] CMD ["/usr/sbin/init"]

View file

@ -62,8 +62,8 @@ RUN /bin/sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
RUN mkdir /etc/ansible/ RUN mkdir /etc/ansible/
RUN /bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts RUN /bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
RUN locale-gen en_US.UTF-8 RUN locale-gen en_US.UTF-8
RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \
RUN cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \
RUN for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done
ENV container docker ENV container docker
CMD ["/sbin/init"] CMD ["/sbin/init"]

View file

@ -59,8 +59,8 @@ RUN /bin/sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
RUN mkdir /etc/ansible/ RUN mkdir /etc/ansible/
RUN /bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts RUN /bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
RUN locale-gen en_US.UTF-8 RUN locale-gen en_US.UTF-8
RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \
RUN cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \
RUN for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done
ENV container docker ENV container docker
CMD ["/sbin/init"] CMD ["/sbin/init"]