Repos with recipes to deploy some infrastructure services
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

26 lignes
839 B

  1. # Molecule managed
  2. FROM {{ item.image }}
  3. RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y systemd && apt-get clean; fi
  4. RUN if [ ! -e /sbin/init ]; then ln -s /lib/systemd/systemd /sbin/init ; fi
  5. ENV container docker
  6. # Don't start the optional systemd services.
  7. RUN find /etc/systemd/system \
  8. /lib/systemd/system \
  9. -path '*.wants/*' \
  10. -not -name '*journald*' \
  11. -not -name '*systemd-tmpfiles*' \
  12. -not -name '*systemd-user-sessions*' \
  13. -exec rm \{} \;
  14. RUN systemctl set-default multi-user.target
  15. VOLUME [ "/sys/fs/cgroup" ]
  16. CMD ["/sbin/init"]
  17. RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y python sudo bash net-tools ca-certificates && apt-get clean; fi