Skip to content

Commit

Permalink
fixing issue garethr#689 by setting HOME in docker command
Browse files Browse the repository at this point in the history
  • Loading branch information
sdinten committed Dec 13, 2020
1 parent c058d42 commit 03d1488
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion lib/puppet/provider/docker_compose/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@

mk_resource_methods
commands dockercompose: 'docker-compose'
commands docker: 'docker'
commands dockercmd: 'docker'

has_command(:docker, command(:dockercmd)) do
environment(:HOME => '/var/tmp')
end

def exists?
Puppet.info("Checking for compose project #{name}")
Expand Down
6 changes: 5 additions & 1 deletion lib/puppet/provider/docker_network/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
desc 'Support for Docker Networking'

mk_resource_methods
commands docker: 'docker'
commands dockercmd: 'docker'

has_command(:docker, command(:dockercmd)) do
environment(:HOME => '/var/tmp')
end

def network_conf
flags = ['network', 'create']
Expand Down
6 changes: 5 additions & 1 deletion lib/puppet/provider/docker_stack/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
desc 'Support for Puppet running Docker Stacks'

mk_resource_methods
commands docker: 'docker'
commands dockercmd: 'docker'

has_command(:docker, command(:dockercmd)) do
environment(:HOME => '/var/tmp')
end

def exists?
Puppet.info("Checking for stack #{name}")
Expand Down
6 changes: 5 additions & 1 deletion lib/puppet/provider/docker_volume/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
desc 'Support for Docker Volumes'

mk_resource_methods
commands docker: 'docker'
commands dockercmd: 'docker'

has_command(:docker, command(:dockercmd)) do
environment(:HOME => '/var/tmp')
end

def volume_conf
flags = ['volume', 'create']
Expand Down

0 comments on commit 03d1488

Please sign in to comment.