4AllDigital / DruDockCli

Drudock CLI utility for managing docker development, staging and production environments for Drupal websites and apps.
https://www.4alldigital.io/dockerdrupal-cli
MIT License
2 stars 1 forks source link

BEHAT updates #150

Open joemewes opened 7 years ago

joemewes commented 7 years ago

docker-compose command fails

Output:                                                                                                                                                                                        
  ================                                                                                                                                                                               
  Error Output:                                                                                                                                                                                  
  ================                                                                                                                                                                               
  Traceback (most recent call last):                                                                                                                                                             
    File "docker-compose", line 3, in <module>                                                                                                                                                   
    File "compose/cli/main.py", line 68, in main                                                                                                                                                 
    File "compose/cli/main.py", line 118, in perform_command                                                                                                                                     
    File "compose/cli/main.py", line 454, in exec_command                                                                                                                                        
    File "site-packages/dockerpty/pty.py", line 338, in start                                                                                                                                    
    File "site-packages/dockerpty/io.py", line 32, in set_blocking                                                                                                                               
  ValueError: file descriptor cannot be a negative integer (-1)                                                                                                                                  
  Failed to execute script docker-compose         

can be fixed by adding -T to the exec command

joemewes commented 7 years ago

Behat drush config needs updating

$aliases['drudock'] = array (
  'uri' => 'http://default',
  'root' => '/app/www',
  'remote-host' => 'php',
  'remote-user' => 'root',
  'ssh-options' => '-i ~/.ssh/dockerdev', // optional if required
);

should also remove ssh-options and setup default id_rsa key between BEHAT -> PHP containers

joemewes commented 6 years ago

resolve as part of BEHAT refactor : https://github.com/4AllDigital/DruDockCli/issues/81

joemewes commented 6 years ago

converted to task.