inspec/test/cookbooks/os_prepare/recipes/docker_host.rb
Ryan Davis a5309ea392 blindly applied chefstyle -a
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:52:03 -07:00

24 lines
455 B
Ruby

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