I am struggling to get Hosting Docker working smoothly.

I encountered a problem with the new Composer Install feature when running on "remote" servers, see #2952997: Run composer install on remote server. for that issue.

So stock aegir only runs commands either locally or via SSH. the Provision_Context_server::shell_exec() function is hard coded that way.

I need to override Provision_Context_server::shell_exec() for docker, to run it via docker exec instead.

The only way we can do this is by adding an "alter" hook to the context loading.

Branch incoming.

Comments

Jon Pugh created an issue. See original summary.

jon pugh’s picture

  • Jon Pugh committed a588796 on 2952999-allow-alter-contexts
    Issue #2952999: Run composer install on remote server.
    

  • Jon Pugh committed 11c413c on 2952999-allow-alter-contexts
    Issue #2952999: Allow drush plugins to replace Context classes with...
jon pugh’s picture

Status: Active » Needs review

  • helmo committed 35d478c on 2952999-allow-alter-contexts
    Issue #2952999: codestyle
    
helmo’s picture

Status: Needs review » Reviewed & tested by the community

Looking good ... I just added one space.

  • Jon Pugh committed 11c413c on 7.x-3.x
    Issue #2952999: Allow drush plugins to replace Context classes with...
  • helmo committed 35d478c on 7.x-3.x
    Issue #2952999: codestyle
    
  • helmo committed 49c0d5e on 7.x-3.x
    Issue #2952999 by Jon Pugh, helmo: Merge remote-tracking branch 'origin/...
  • Jon Pugh committed a588796 on 7.x-3.x
    Issue #2952999: Run composer install on remote server.
    
helmo’s picture

Status: Reviewed & tested by the community » Fixed

merged

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.