Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing issue #689 by setting HOME in docker command #692

Merged
merged 1 commit into from
Dec 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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