Skip to content

Commit 2c86786

Browse files
authored
Merge pull request #82 from drupal-docker/issue/81
Fix #81: Add launchers for drush and drupal console
2 parents fd76f18 + e5ca721 commit 2c86786

6 files changed

Lines changed: 36 additions & 0 deletions

File tree

5.6/Dockerfile-alpine-cli

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ RUN apk add --no-cache --virtual .dd-build-deps libpng-dev libjpeg-turbo-dev pos
1212
&& docker-php-ext-enable redis \
1313
&& curl -sS https://getcomposer.org/installer | php \
1414
&& mv composer.phar /usr/local/bin/composer \
15+
&& curl -L -o drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.4.2/drush.phar \
16+
&& chmod +x drush.phar \
17+
&& mv drush.phar /usr/local/bin/drush \
18+
&& curl -L -o drupal.phar https://drupalconsole.com/installer \
19+
&& chmod +x drupal.phar \
20+
&& mv drupal.phar /usr/local/bin/drupal \
1521
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
1622
&& apk add --no-cache sudo git libpng libjpeg libpq libxml2 mysql-client openssh-client rsync \
1723
&& apk del .dd-build-deps

5.6/Dockerfile-cli

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev libx
1212
&& docker-php-ext-enable redis \
1313
&& curl -sS https://getcomposer.org/installer | php \
1414
&& mv composer.phar /usr/local/bin/composer \
15+
&& curl -L -o drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.4.2/drush.phar \
16+
&& chmod +x drush.phar \
17+
&& mv drush.phar /usr/local/bin/drush \
18+
&& curl -L -o drupal.phar https://drupalconsole.com/installer \
19+
&& chmod +x drupal.phar \
20+
&& mv drupal.phar /usr/local/bin/drupal \
1521
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
1622
&& rm -rf /var/lib/apt/lists/*
1723

7.0/Dockerfile-alpine-cli

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ RUN apk add --no-cache --virtual .dd-build-deps libpng-dev libjpeg-turbo-dev pos
1212
&& docker-php-ext-enable redis \
1313
&& curl -sS https://getcomposer.org/installer | php \
1414
&& mv composer.phar /usr/local/bin/composer \
15+
&& curl -L -o drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.4.2/drush.phar \
16+
&& chmod +x drush.phar \
17+
&& mv drush.phar /usr/local/bin/drush \
18+
&& curl -L -o drupal.phar https://drupalconsole.com/installer \
19+
&& chmod +x drupal.phar \
20+
&& mv drupal.phar /usr/local/bin/drupal \
1521
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
1622
&& apk add --no-cache sudo git libpng libjpeg libpq libxml2 mysql-client openssh-client rsync \
1723
&& apk del .dd-build-deps

7.0/Dockerfile-cli

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev libx
1212
&& docker-php-ext-enable redis \
1313
&& curl -sS https://getcomposer.org/installer | php \
1414
&& mv composer.phar /usr/local/bin/composer \
15+
&& curl -L -o drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.4.2/drush.phar \
16+
&& chmod +x drush.phar \
17+
&& mv drush.phar /usr/local/bin/drush \
18+
&& curl -L -o drupal.phar https://drupalconsole.com/installer \
19+
&& chmod +x drupal.phar \
20+
&& mv drupal.phar /usr/local/bin/drupal \
1521
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
1622
&& rm -rf /var/lib/apt/lists/*
1723

7.1/Dockerfile-alpine-cli

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ RUN apk add --no-cache --virtual .dd-build-deps libpng-dev libjpeg-turbo-dev pos
1212
&& docker-php-ext-enable redis \
1313
&& curl -sS https://getcomposer.org/installer | php \
1414
&& mv composer.phar /usr/local/bin/composer \
15+
&& curl -L -o drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.4.2/drush.phar \
16+
&& chmod +x drush.phar \
17+
&& mv drush.phar /usr/local/bin/drush \
18+
&& curl -L -o drupal.phar https://drupalconsole.com/installer \
19+
&& chmod +x drupal.phar \
20+
&& mv drupal.phar /usr/local/bin/drupal \
1521
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
1622
&& apk add --no-cache sudo git libpng libjpeg libpq libxml2 mysql-client openssh-client rsync \
1723
&& apk del .dd-build-deps

7.1/Dockerfile-cli

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev libx
1212
&& docker-php-ext-enable redis \
1313
&& curl -sS https://getcomposer.org/installer | php \
1414
&& mv composer.phar /usr/local/bin/composer \
15+
&& curl -L -o drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.4.2/drush.phar \
16+
&& chmod +x drush.phar \
17+
&& mv drush.phar /usr/local/bin/drush \
18+
&& curl -L -o drupal.phar https://drupalconsole.com/installer \
19+
&& chmod +x drupal.phar \
20+
&& mv drupal.phar /usr/local/bin/drupal \
1521
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
1622
&& rm -rf /var/lib/apt/lists/*
1723

0 commit comments

Comments
 (0)