Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Drupal
drupalizer
Commits
c44ad77a
Commit
c44ad77a
authored
Nov 30, 2016
by
Victor Nikulshin
Browse files
Rewrite `docker.connect` task to use SSH
parent
fe898544
Changes
1
Hide whitespace changes
Inline
Side-by-side
docker.py
View file @
c44ad77a
...
...
@@ -119,7 +119,7 @@ def connect():
"""
with
lcd
(
env
.
workspace
):
if
docker_isrunning
(
'{}_container'
.
format
(
env
.
project_name
)):
local
(
'
docker exec
-i
t
{}
_container bash'
.
format
(
env
.
project_name
))
local
(
'
ssh drupalizer@{}
-i {}
'
.
format
(
env
.
container_ip
,
h
.
fab_path
(
'docker/ssh/id_rsa'
)
))
else
:
print
(
red
(
'Docker container {}_container is not running, it should be running to be able to connect.'
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment