#########################################################################
# Docker
#########################################################################
include_recipe 'chef-apt-docker::default'

package "docker-engine"

execute 'install docker-compose' do
  command <<-EOH
curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
EOH
end

# Ensure the `dbuild` user is part of the `docker` group so they can
# connect to the Docker daemon
execute "usermod -aG docker #{node['delivery_builder']['build_user']}"


#########################################################################
# Docker
#########################################################################
include_recipe 'chef-apt-docker::default'

package "docker-engine"

remote_file '/usr/local/bin/docker-compose' do
  source 'https://github.com/docker/compose/releases/download/1.8.0/docker-compose-Linux-x86_64'
  checksum 'ebc6ab9ed9c971af7efec074cff7752593559496d0d5f7afb6bfd0e0310961ff'
  owner 'root'
  group 'docker'
  mode  '0755'
end

# Ensure the `dbuild` user is part of the `docker` group so they can
# connect to the Docker daemon
execute "usermod -aG docker #{node['delivery_builder']['build_user']}"

Use remote_file instead of execute-n-curl
Use remote_file instead of execute-n-curl

Check that the docker-compose we download is the one we expect with
a checksum.

Also don't need to uname things because we only use 64-bit Linux
builders for this pipeline.

Signed-off-by: Robb Kidd <11cd4f9ba93acb67080ee4dad8d03929f9e64bf2@chef.io>
