inspec/test/cookbooks/os_prepare/recipes/docker_host.rb
Tim Smith 4b3095dac2 Further modernize the cookbook and remove legacy setup
Remove container setup that comes for free with the dokken containers now
Use the new openssl resource names
Remove all the encoding statements that even rubocop doesn't recommend anymore
Remove some compatibility with centos-5 and ubuntu 15.10

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 21:50:33 -08:00

26 lines
485 B
Ruby

# author: Christoph Hartmann
if platform_family?('rhel', 'debian', 'fedora')
docker_service 'default' do
action [:create, :start]
end
docker_image 'busybox' do
action :pull
end
docker_image 'alpine' do
action :pull
end
docker_container 'an-echo-server' do
repo 'busybox'
port '1234:1234'
command "nc -ll -p 1234 -e /bin/cat"
end
docker_container 'an-echo-server-2' do
repo 'busybox'
command "nc -ll -p 1234 -e /bin/cat"
end
end