├── 6 ├── Dockerfile-alpine └── Dockerfile ├── 7 ├── Dockerfile-alpine └── Dockerfile ├── 8 ├── Dockerfile-alpine └── Dockerfile ├── master ├── Dockerfile-alpine └── Dockerfile ├── .travis.yml ├── LICENSE └── README.md /6/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM drupaldocker/php-dev:5.6-alpine-cli 2 | MAINTAINER drupal-docker 3 | 4 | RUN apk add --no-cache mysql-client openssh-client rsync \ 5 | && composer global require drush/drush:6.* \ 6 | && rm -f /usr/local/bin/drush \ 7 | && ln -s ~/.composer/vendor/bin/drush /usr/local/bin/drush \ 8 | && drush core-status -y 9 | 10 | CMD ["drush", "core-cli"] 11 | -------------------------------------------------------------------------------- /7/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM drupaldocker/php-dev:5.6-alpine-cli 2 | MAINTAINER drupal-docker 3 | 4 | RUN apk add --no-cache mysql-client openssh-client rsync \ 5 | && composer global require drush/drush:7.* \ 6 | && rm -f /usr/local/bin/drush \ 7 | && ln -s ~/.composer/vendor/bin/drush /usr/local/bin/drush \ 8 | && drush core-status -y 9 | 10 | CMD ["drush", "core-cli"] 11 | -------------------------------------------------------------------------------- /8/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM drupaldocker/php-dev:7.0-alpine-cli 2 | MAINTAINER drupal-docker 3 | 4 | RUN apk add --no-cache mysql-client openssh-client rsync \ 5 | && composer global require drush/drush:8.* \ 6 | && rm -f /usr/local/bin/drush \ 7 | && ln -s ~/.composer/vendor/bin/drush /usr/local/bin/drush \ 8 | && drush core-status -y 9 | 10 | CMD ["drush", "core-cli"] 11 | -------------------------------------------------------------------------------- /6/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM drupaldocker/php-dev:cli 2 | MAINTAINER drupal-docker 3 | 4 | RUN apt-get update && apt-get install -y mysql-client openssh-client rsync \ 5 | && composer global require drush/drush:6.* \ 6 | && rm -f /usr/local/bin/drush \ 7 | && ln -s ~/.composer/vendor/bin/drush /usr/local/bin/drush \ 8 | && drush core-status -y \ 9 | && rm -rf /var/lib/apt/lists/* 10 | 11 | CMD ["drush", "core-cli"] 12 | -------------------------------------------------------------------------------- /7/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM drupaldocker/php-dev:cli 2 | MAINTAINER drupal-docker 3 | 4 | RUN apt-get update && apt-get install -y mysql-client openssh-client rsync \ 5 | && composer global require drush/drush:7.* \ 6 | && rm -f /usr/local/bin/drush \ 7 | && ln -s ~/.composer/vendor/bin/drush /usr/local/bin/drush \ 8 | && drush core-status -y \ 9 | && rm -rf /var/lib/apt/lists/* 10 | 11 | CMD ["drush", "core-cli"] 12 | -------------------------------------------------------------------------------- /8/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM drupaldocker/php-dev:7.0-cli 2 | MAINTAINER drupal-docker 3 | 4 | RUN apt-get update && apt-get install -y mysql-client openssh-client rsync \ 5 | && composer global require drush/drush:8.* \ 6 | && rm -f /usr/local/bin/drush \ 7 | && ln -s ~/.composer/vendor/bin/drush /usr/local/bin/drush \ 8 | && drush core-status -y \ 9 | && rm -rf /var/lib/apt/lists/* 10 | 11 | CMD ["drush", "core-cli"] 12 | -------------------------------------------------------------------------------- /master/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM drupaldocker/php-dev:7.0-alpine-cli 2 | MAINTAINER drupal-docker 3 | 4 | RUN apk add --no-cache mysql-client openssh-client rsync \ 5 | && cd ~ \ 6 | && git clone --depth 1 --branch master https://github.com/drush-ops/drush.git drush \ 7 | && cd drush \ 8 | && composer install \ 9 | && rm -f /usr/local/bin/drush \ 10 | && ln -s ~/drush/drush /usr/local/bin/drush \ 11 | && drush core-status -y \ 12 | && drush core-init -y 13 | 14 | CMD ["drush", "core-cli"] 15 | -------------------------------------------------------------------------------- /master/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM drupaldocker/php-dev:7.0-cli 2 | MAINTAINER drupal-docker 3 | 4 | RUN apt-get update && apt-get install -y mysql-client openssh-client rsync \ 5 | && cd ~ \ 6 | && git clone --depth 1 --branch master https://github.com/drush-ops/drush.git drush \ 7 | && cd drush \ 8 | && composer install \ 9 | && rm -f /usr/local/bin/drush \ 10 | && ln -s ~/drush/drush /usr/local/bin/drush \ 11 | && drush core-status -y \ 12 | && drush core-init -y \ 13 | && rm -rf /var/lib/apt/lists/* 14 | 15 | CMD ["drush", "core-cli"] 16 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: required 2 | 3 | services: 4 | - docker 5 | 6 | env: 7 | matrix:= 8 | - DOCKERFILE="Dockerfile" DOCKERPATH="6" 9 | - DOCKERFILE="Dockerfile-alpine" DOCKERPATH="6" 10 | - DOCKERFILE="Dockerfile" DOCKERPATH="7" 11 | - DOCKERFILE="Dockerfile-alpine" DOCKERPATH="7" 12 | - DOCKERFILE="Dockerfile" DOCKERPATH="8" 13 | - DOCKERFILE="Dockerfile-alpine" DOCKERPATH="8" 14 | - DOCKERFILE="Dockerfile" DOCKERPATH="master" 15 | - DOCKERFILE="Dockerfile-alpine" DOCKERPATH="master" 16 | 17 | before_script: 18 | - docker version 19 | 20 | script: 21 | - docker build -f ./${DOCKERPATH}/${DOCKERFILE} -t ${DOCKERPATH} ./${DOCKERPATH} 22 | 23 | after_script: 24 | - docker images 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Drupal Docker 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Drush 2 | ===== 3 | 4 | [![Build Status](https://travis-ci.org/drupal-docker/drush.svg?branch=master)](https://travis-ci.org/drupal-docker/drush) 5 | [![Docker Pulls](https://img.shields.io/docker/pulls/drupaldocker/drush.svg?maxAge=2592000)](https://hub.docker.com/r/drupaldocker/drush) 6 | 7 | Version | Tags | Dockerfile 8 | --------|---------------|------------ 9 | master | `master`, `9` | [Dockerfile 9](https://github.com/drupal-docker/drush/blob/master/master/Dockerfile) 10 | . | `9-alpine` | [Dockerfile 9-alpine](https://github.com/drupal-docker/drush/blob/master/master/Dockerfile-alpine) 11 | 8 | `latest`, `8` | [Dockerfile 8](https://github.com/drupal-docker/drush/blob/master/8/Dockerfile) 12 | . | `8-alpine` | [Dockerfile 8-alpine](https://github.com/drupal-docker/drush/blob/master/8/Dockerfile-alpine) 13 | 7 | `7` | [Dockerfile 7](https://github.com/drupal-docker/drush/blob/master/7/Dockerfile) 14 | . | `7-alpine` | [Dockerfile 7-alpine](https://github.com/drupal-docker/drush/blob/master/7/Dockerfile-alpine) 15 | 6 | `6` | [Dockerfile 6](https://github.com/drupal-docker/drush/blob/master/6/Dockerfile) 16 | . | `6-alpine` | [Dockerfile 6-alpine](https://github.com/drupal-docker/drush/blob/master/6/Dockerfile-alpine) 17 | 18 | --------------------------------------------------------------------------------