Sha256: 1b61ea2ec92a1a3dcbd7504c9e094c28536b8e467ed7e6d526ec5e97dc99f773

Contents?: true

Size: 839 Bytes

Versions: 2

Compression:

Stored size: 839 Bytes

Contents

# service
include_recipe 'docker_test::default'

# Build an image that takes longer than two minutes
# (the default read_timeout) to build
#

docker_image 'centos'

# Make sure that the image does not exist, to avoid a cache hit
# while building the docker image. This can legitimately fail
# if the image does not exist.
execute 'rmi kkeane/image.4' do
  command 'docker rmi kkeane/image.4:chef'
  ignore_failure true
  action :run
end

directory '/usr/local/src/container4' do
  action :create
end

cookbook_file '/usr/local/src/container4/Dockerfile' do
  source 'Dockerfile_4'
  action :create
end

docker_image 'timeout test image' do
  repo 'kkeane/image.4'
  read_timeout 3600 # 1 hour
  write_timeout 3600 # 1 hour
  tag 'chef'
  source '/usr/local/src/container4'
  action :build_if_missing
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chef-12.8.1 acceptance/top-cookbooks/test_run/docker/test/cookbooks/docker_test/recipes/timeout.rb
chef-12.8.1-universal-mingw32 acceptance/top-cookbooks/test_run/docker/test/cookbooks/docker_test/recipes/timeout.rb