Skip to content

Commit

Permalink
Drop global drush and drush launcher, closes #98
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Mar 8, 2024
1 parent 099dd26 commit 3c29fca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
17 changes: 1 addition & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,12 @@ ARG BASE_IMAGE_TAG

FROM wodby/php:${BASE_IMAGE_TAG}

ENV DRUSH_LAUNCHER_FALLBACK="/home/wodby/.composer/vendor/bin/drush" \
\
PHP_REALPATH_CACHE_TTL="3600" \
ENV PHP_REALPATH_CACHE_TTL="3600" \
PHP_OUTPUT_BUFFERING="16384"

USER root

RUN set -ex; \
\
# We keep global drush version 8 because newer version do not support drupal 7 and \
# mostly D7 projects are not composer-based and can't install newer drush as a part of their composer project.
su-exec wodby composer global require drush/drush:^8.0; \
drush_launcher_url="https://github.com/drush-ops/drush-launcher/releases/download/0.10.2/drush.phar"; \
wget -O drush.phar "${drush_launcher_url}"; \
chmod +x drush.phar; \
mv drush.phar /usr/local/bin/drush; \
\
# Drush extensions
su-exec wodby mkdir -p /home/wodby/.drush; \
drush_rr_url="https://ftp.drupal.org/files/projects/registry_rebuild-7.x-2.5.tar.gz"; \
wget -qO- "${drush_rr_url}" | su-exec wodby tar zx -C /home/wodby/.drush; \
\
# Drupal console
console_url="https://github.com/hechoendrupal/drupal-console-launcher/releases/download/1.9.7/drupal.phar"; \
Expand Down
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ All images built for `linux/amd64` and `linux/arm64`
| Tool | 8.2 | 8.1 |
|---------------------------|--------|--------|
| [Drupal Console Launcher] | 1.9.7 | 1.9.7 |
| [Drush] | 8 | 8 |
| [Drush Launcher] | 0.10.2 | 0.10.2 |
| [Drush Registry Rebuild] | 7.x | 7.x |

## Environment Variables

Expand Down Expand Up @@ -81,7 +78,3 @@ See [wodby/docker4drupal](https://github.com/wodby/docker4drupal)
[_(Dockerfile)_]: https://github.com/wodby/drupal-php/tree/master/Dockerfile

[Drupal Console Launcher]: https://drupalconsole.com
[Drush]: https://packagist.org/packages/drush/drush
[Drush Launcher]: https://github.com/drush-ops/drush-launcher
[Drush Patchfile]: https://bitbucket.org/davereid/drush-patchfile
[Drush Registry Rebuild]: https://www.drupal.org/project/registry_rebuild

0 comments on commit 3c29fca

Please sign in to comment.