Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (20 sloc) 389 Bytes
#
# Cookbook Name:: example-cookbook
# Recipe:: gem-cache
#
include_recipe 'docker'
cookbook_file 'Dockerfile' do
path '/tmp/Dockerfile'
source 'gem-cache/Dockerfile'
end
docker_image 'ubuntu' do
tag 'gem-cache'
source '/tmp'
action :build_if_missing
end
docker_container 'gem-cache' do
image 'ubuntu:gem-cache'
container_name 'gem-cache'
detach true
action :run
end