Skip to content

Instantly share code, notes, and snippets.

@timurb
Created March 27, 2018 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timurb/bd95d206b20a40293590c16429de588a to your computer and use it in GitHub Desktop.
Save timurb/bd95d206b20a40293590c16429de588a to your computer and use it in GitHub Desktop.
systemd config inside docker driver for test-kitchen
---
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