mirror of
https://github.com/inspec/inspec
synced 2024-12-30 06:53:22 +00:00
a4f4fe5231
Signed-off-by: Miah Johnson <miah@chia-pet.org>
24 lines
454 B
Ruby
24 lines
454 B
Ruby
if platform_family?("rhel", "debian", "fedora")
|
|
docker_service "default" do
|
|
action %i{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
|