Skip to content

Instantly share code, notes, and snippets.

@glenjamin
Created September 28, 2015 20:48
Show Gist options
  • Save glenjamin/2d04e9c2a163c7848173 to your computer and use it in GitHub Desktop.
Save glenjamin/2d04e9c2a163c7848173 to your computer and use it in GitHub Desktop.
Systemd in a container! Useful for testing services controlled by chef
---
driver:
name: docker
provision_command:
- yum -y swap -- remove systemd-container systemd-container-libs -- install systemd
- systemctl enable sshd.service
- curl -L https://www.opscode.com/chef/install.sh | bash
require_chef_omnibus: false
run_command: /usr/sbin/init
privileged: true
provisioner:
name: chef_zero
platforms:
- name: centos-7.1
suites:
- name: default
run_list:
- recipe[my_thing]
attributes:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment