|
|
|
@ -148,6 +148,27 @@ COPY ./crontab /etc/cron.d
|
|
|
|
|
|
|
|
|
|
RUN chmod -R 644 /etc/cron.d
|
|
|
|
|
|
|
|
|
|
###########################################################################
|
|
|
|
|
# Drush:
|
|
|
|
|
###########################################################################
|
|
|
|
|
|
|
|
|
|
# Deprecated install of Drush 8 and earlier versions.
|
|
|
|
|
# Drush 9 and up require Drush to be listed as a composer dependency of your site.
|
|
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
|
|
ARG INSTALL_DRUSH=false
|
|
|
|
|
ARG DRUSH_VERSION
|
|
|
|
|
ENV DRUSH_VERSION ${DRUSH_VERSION}
|
|
|
|
|
|
|
|
|
|
RUN if [ ${INSTALL_DRUSH} = true ]; then \
|
|
|
|
|
apt-get -y install mysql-client && \
|
|
|
|
|
# Install Drush with the phar file.
|
|
|
|
|
curl -fsSL -o /usr/local/bin/drush https://github.com/drush-ops/drush/releases/download/${DRUSH_VERSION}/drush.phar | bash && \
|
|
|
|
|
chmod +x /usr/local/bin/drush && \
|
|
|
|
|
drush core-status \
|
|
|
|
|
;fi
|
|
|
|
|
|
|
|
|
|
###########################################################################
|
|
|
|
|
# SOAP:
|
|
|
|
|
###########################################################################
|
|
|
|
@ -309,33 +330,16 @@ RUN if [ ${INSTALL_SWOOLE} = true ]; then \
|
|
|
|
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
|
|
|
|
pecl -q install swoole-2.0.11; \
|
|
|
|
|
else \
|
|
|
|
|
pecl -q install swoole; \
|
|
|
|
|
if [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
|
|
|
|
|
pecl install swoole-2.2.0; \
|
|
|
|
|
else \
|
|
|
|
|
pecl install swoole; \
|
|
|
|
|
fi \
|
|
|
|
|
fi && \
|
|
|
|
|
echo "extension=swoole.so" >> /etc/php/${PHP_VERSION}/mods-available/swoole.ini && \
|
|
|
|
|
ln -s /etc/php/${PHP_VERSION}/mods-available/swoole.ini /etc/php/${PHP_VERSION}/cli/conf.d/20-swoole.ini \
|
|
|
|
|
;fi
|
|
|
|
|
|
|
|
|
|
###########################################################################
|
|
|
|
|
# Drush:
|
|
|
|
|
###########################################################################
|
|
|
|
|
|
|
|
|
|
# Deprecated install of Drush 8 and earlier versions.
|
|
|
|
|
# Drush 9 and up require Drush to be listed as a composer dependency of your site.
|
|
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
|
|
ARG INSTALL_DRUSH=false
|
|
|
|
|
ARG DRUSH_VERSION
|
|
|
|
|
ENV DRUSH_VERSION ${DRUSH_VERSION}
|
|
|
|
|
|
|
|
|
|
RUN if [ ${INSTALL_DRUSH} = true ]; then \
|
|
|
|
|
apt-get -y install mysql-client && \
|
|
|
|
|
# Install Drush with the phar file.
|
|
|
|
|
curl -fsSL -o /usr/local/bin/drush https://github.com/drush-ops/drush/releases/download/${DRUSH_VERSION}/drush.phar | bash && \
|
|
|
|
|
chmod +x /usr/local/bin/drush && \
|
|
|
|
|
drush core-status \
|
|
|
|
|
;fi
|
|
|
|
|
|
|
|
|
|
###########################################################################
|
|
|
|
|
# Drupal Console:
|
|
|
|
|
###########################################################################
|
|
|
|
|