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:
parent
da99e4e0aa
commit
4224c11b5f
6 changed files with 28 additions and 28 deletions
|
@ -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"]
|
||||||
|
|
|
@ -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"]
|
||||||
|
|
|
@ -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"]
|
||||||
|
|
|
@ -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"]
|
||||||
|
|
|
@ -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"]
|
||||||
|
|
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue