Created
March 27, 2018 20:02
-
-
Save timurb/bd95d206b20a40293590c16429de588a to your computer and use it in GitHub Desktop.
systemd config inside docker driver for test-kitchen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
driver: | |
name: docker | |
use_sudo: false | |
use_cache: true | |
disable_upstart: false | |
run_command: sh -c 'apt-get update && exec /sbin/init' | |
provision_command: | |
- apt-get update && apt-get -y dist-upgrade | |
- apt-get update && apt-get install -y iputils-ping net-tools telnet vim dnsutils less | |
- find /etc/systemd/system /lib/systemd/system -path '*.wants/*' -not -name '*journald*' -not -name '*systemd-tmpfiles*' -not -name '*systemd-user-sessions*' -not -name '*ssh*' -exec rm \{} \; | |
- systemctl set-default multi-user.target | |
run_options: | |
tmpfs: | |
- /tmp | |
- /run | |
- /run/lock | |
userns: host | |
volume: | |
- /sys/fs/cgroup:/sys/fs/cgroup:ro | |
security_opt: | |
- seccomp=unconfined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment