Permalink
Browse files

Add nsenter and docker-enter.

  • Loading branch information...
darron committed Sep 2, 2014
1 parent 5d90d14 commit f48a83edf9918550bc4b43081ef5d6886b899172
Showing with 18 additions and 1 deletion.
  1. +1 −1 metadata.rb
  2. +17 −0 recipes/default.rb
View
@@ -4,7 +4,7 @@
maintainer_email 'darron@froese.org'
license 'Apache 2.0'
description 'Installs/configures docker'
-version '0.11.0'
+version '0.12.0'
recipe 'docker::default', 'Installs/configures docker'
depends 'apt'
View
@@ -83,3 +83,20 @@
owner 'root'
group 'root'
end
+
+bash 'install nsenter' do
+ user 'root'
+ cwd '/tmp'
+ code <<-EOH
+ docker run --rm jpetazzo/nsenter cat /nsenter > /usr/local/bin/nsenter
+ chmod 755 /usr/local/bin/nsenter
+ EOH
+ not_if { File.exist?('/usr/local/bin/nsenter') }
+end
+
+remote_file '/usr/local/bin/docker-enter' do
+ source 'https://raw.githubusercontent.com/jpetazzo/nsenter/master/docker-enter'
+ owner 'root'
+ group 'root'
+ mode 00755
+end

0 comments on commit f48a83e

Please sign in to comment.