Repos with recipes to deploy some infrastructure services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 line
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