php - How to have Drush installed without Drupal container -


sorry if question has been asked.

i have drush in docker without drupal container. have nginx, php , mysql containers , wonder if can install drush in php container module exemple. because use web developpement environnement don't want more specific docker, can install cms or else web project.

can ? if yes, how ? i'm beginner in docker.

thank , sorry english.

try make own container including in dockerfile:

run export composer_home=/usr/local/composer && \     curl -ss https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \     composer global require drush/drush:6.5.0 && \     composer global install && \     ln -s /usr/local/composer/vendor/drush/drush/drush /usr/local/bin/drush 

you can use yoshz image (includes apache):

https://github.com/yoshz/docker-php


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -