<commit_before>ARG PHP_VERSION
ARG IMAGE_REPO
FROM ${IMAGE_REPO:-lagoon}/php:${PHP_VERSION}-cli

MAINTAINER amazee.io
ENV LAGOON=cli-drupal

RUN curl -L -o /usr/local/bin/drupal https://github.com/hechoendrupal/drupal-console-launcher/releases/download/1.4.0/drupal.phar \
    && echo "db81f693aa509af76171ca3b1ed2e43655f7819c964dc6096334b719dff87271351466385845cd2195e346a66cd22d0d0c5c15e0370652d13e894737ad87f62b  /usr/local/bin/drupal" | sha512sum \
    && chmod +x /usr/local/bin/drupal \
    && php -d memory_limit=-1 /usr/local/bin/composer global require drush/drush \
    && mkdir -p /home/.drush

COPY drushrc.php /home/.drush/drushrc.php

RUN fix-permissions /home/.drush<commit_msg>Force to install Drush8, as Drush 9 has a Bug with Site Aliases, see https://github.com/drush-ops/drush/issues/3355<commit_after>ARG PHP_VERSION
ARG IMAGE_REPO
FROM ${IMAGE_REPO:-lagoon}/php:${PHP_VERSION}-cli

MAINTAINER amazee.io
ENV LAGOON=cli-drupal

RUN curl -L -o /usr/local/bin/drupal https://github.com/hechoendrupal/drupal-console-launcher/releases/download/1.4.0/drupal.phar \
    && echo "db81f693aa509af76171ca3b1ed2e43655f7819c964dc6096334b719dff87271351466385845cd2195e346a66cd22d0d0c5c15e0370652d13e894737ad87f62b  /usr/local/bin/drupal" | sha512sum \
    && chmod +x /usr/local/bin/drupal \
    && php -d memory_limit=-1 /usr/local/bin/composer global require drush/drush:8.1.15 \
    && mkdir -p /home/.drush

COPY drushrc.php /home/.drush/drushrc.php

RUN fix-permissions /home/.drush
{'fraction_non_alphanumeric': 0.12173913043478261, 'fraction_numerical': 0.13645484949832776, 'mean_word_length': 4.40072202166065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '499956', 'n_tokens_mistral': 744, 'n_tokens_neox': 629, 'n_words': 91}