Skip to content

Commit

Permalink
Merge pull request drush-ops#5 from drupal-docker/fix/3
Browse files Browse the repository at this point in the history
Fix/3: Install Drush with composer
  • Loading branch information
zaporylie committed Feb 25, 2016
2 parents 17eda44 + efda15c commit 8a26d4a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
env:
matrix:
- DOCKERFILE="master"
- DOCKERFILE="7"
- DOCKERFILE="6"

before_script:
- docker version
Expand Down
10 changes: 10 additions & 0 deletions 6/Dockerfile
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"]
10 changes: 10 additions & 0 deletions 7/Dockerfile
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"]
7 changes: 3 additions & 4 deletions master/Dockerfile
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"]

0 comments on commit 8a26d4a

Please sign in to comment.