Created
September 28, 2015 20:48
-
-
Save glenjamin/2d04e9c2a163c7848173 to your computer and use it in GitHub Desktop.
Systemd in a container! Useful for testing services controlled by chef
This file contains hidden or 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 | |
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