Commit ba24f08c authored by Victor Nikulshin's avatar Victor Nikulshin
Browse files

Redeclare 'docker' role with the updated IP address

parent 1b52398d
Pipeline #1736 passed with stages
in 1 minute and 1 second
......@@ -139,6 +139,9 @@ def fab_update_container_ip(container_ip):
local('sed -i "/env.container_ip/d" {}'.format(fab_path('')))
local('sed -i "/# Docker auto-added container IP/a env.container_ip = \'{}\'" {}'.format(''.join(container_ip), fab_path('')))
# Redeclare 'docker' role with updated IP
env.roledefs['docker'] = ["drupalizer@{}".format(env.container_ip)]
if os.path.exists(fab_path('local_vars.pyc')):
# Clear cached bytecode file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment