fixed following error: [localhost] run: docker-machine ip default

[localhost] out: /usr/local/bin/virtualenvwrapper.sh: line 230: : command not found
[localhost] out: virtualenvwrapper.sh: There was a problem running the initialization hooks.
[localhost] out:
[localhost] out: If Python could not import the module virtualenvwrapper.hook_loader,
[localhost] out: check that virtualenvwrapper has been installed for
[localhost] out: VIRTUALENVWRAPPER_PYTHON= and that PATH is
[localhost] out: set properly.
[localhost] out: Error getting IP address: ssh command error:
[localhost] out: command : ip addr show
[localhost] out: err     : exit status 255
[localhost] out: output  :
[localhost] out:
This commit is contained in:
ronnyabraham 2022-04-29 14:36:06 +03:00
parent 15370c4a28
commit 259eb14238

View file

@ -22,6 +22,10 @@ def docker_ip():
docker_cmd = 'docker-machine ip %s' % \
configuration.docker.machine
docker_cmd = "docker inspect -f '{{"
docker_cmd += "range.NetworkSettings.Networks}}"
docker_cmd += "{{.IPAddress}}{{end}}' pedantic_tu"
return _execute(docker_cmd)
else:
@ -43,7 +47,7 @@ def docker_run(cmd):
_execute = executize("run")
if configuration.docker.database.host != 'local':
_execute = executize("sudo")
if configuration.docker.machine:
docker_eval = "eval $(docker-machine env %s)" % \
configuration.docker.machine
@ -278,7 +282,8 @@ def edit(param='help'):
print('database template path: %s' % database_template_path)
project_branch = configuration.project.branch
print('project branch: %s' % project_branch)
locations = {
'database': {
'path': database_build_path,