Sha256: bf822130e73e0530f9dff486fead24391d6e17d00cae6cac88ef414eb6cc465e

Contents?: true

Size: 835 Bytes

Versions: 2

Compression:

Stored size: 835 Bytes

Contents

#
def wheezy?
  return true if node['platform'] == 'debian' && node['platform_version'].to_i == 7
  false
end

if wheezy?
  file '/etc/apt/sources.list.d/wheezy-backports.list' do
    content 'deb http://ftp.de.debian.org/debian wheezy-backports main'
    notifies :run, 'execute[wheezy apt update]', :immediately
    action :create
  end

  execute 'wheezy apt update' do
    command 'apt-get update'
    action :nothing
  end
end

docker_installation_package 'default' do
  action :create
end

docker_service_manager_sysvinit 'default' do
  host 'unix:///var/run/docker.sock'
  action :start
end

docker_image 'hello-world' do
  host 'unix:///var/run/docker.sock'
  tag 'latest'
end

docker_container 'hello-world' do
  host 'unix:///var/run/docker.sock'
  command '/hello'
  action :create
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/service_sysvinit.rb
chef-12.8.1-universal-mingw32 acceptance/top-cookbooks/test_run/docker/test/cookbooks/docker_test/recipes/service_sysvinit.rb