forked from drush-ops/drush
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request drush-ops#5 from drupal-docker/fix/3
Fix/3: Install Drush with composer
- Loading branch information
Showing
4 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM drupaldocker/php:cli | ||
MAINTAINER drupal-docker | ||
|
||
RUN apt-get update && apt-get install -y mysql-client \ | ||
&& composer global require drush/drush:6.* \ | ||
&& ln -s ~/.composer/vendor/bin/drush /usr/local/bin/drush \ | ||
&& drush core-status -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
CMD ["drush", "core-cli"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM drupaldocker/php:cli | ||
MAINTAINER drupal-docker | ||
|
||
RUN apt-get update && apt-get install -y mysql-client \ | ||
&& composer global require drush/drush:7.* \ | ||
&& ln -s ~/.composer/vendor/bin/drush /usr/local/bin/drush \ | ||
&& drush core-status -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
CMD ["drush", "core-cli"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
FROM drupaldocker/php:cli | ||
MAINTAINER drupal-docker | ||
|
||
ADD http://files.drush.org/drush.phar /usr/local/bin/drush | ||
|
||
RUN apt-get update && apt-get install -y mysql-client \ | ||
&& chmod a+x /usr/local/bin/drush; sync \ | ||
&& composer global require drush/drush:dev-master \ | ||
&& ln -s ~/.composer/vendor/bin/drush /usr/local/bin/drush \ | ||
&& drush core-status -y \ | ||
&& drush init -y \ | ||
&& drush core-init -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
CMD ["drush", "core-cli"] |