Unverified Commit a23c4dfb authored by Ricardo Amaro's avatar Ricardo Amaro Committed by GitHub
Browse files

update to use latest version

parent 1a569a09
FROM ubuntu:20.04 FROM ubuntu:20.04
MAINTAINER Ricardo Amaro <mail_at_ricardoamaro.com> MAINTAINER Ricardo Amaro <mail_at_ricardoamaro.com>
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
ARG DRUPALVER=9.1.x ARG DRUPALVER=9
RUN apt-get update; \ RUN apt-get update; \
dpkg-divert --local --rename --add /sbin/initctl; \ dpkg-divert --local --rename --add /sbin/initctl; \
...@@ -42,7 +42,8 @@ ADD https://updates.drupal.org/release-history/drupal/${DRUPALVER} /tmp/latest.x ...@@ -42,7 +42,8 @@ ADD https://updates.drupal.org/release-history/drupal/${DRUPALVER} /tmp/latest.x
# Retrieve drupal & adminer # Retrieve drupal & adminer
# TODO: also require drupal/memcache # TODO: also require drupal/memcache
RUN cd /var/www/html; \ RUN cd /var/www/html; \
git clone --depth 1 --single-branch -b ${DRUPALVER} https://git.drupalcode.org/project/drupal.git web \ DV=$(curl -s https://git.drupalcode.org/project/drupal/-/tags?format=atom | grep -e '<title>' | grep -Eo '[0-9\.]+'|sort -nr | grep ^${DRUPALVER} | head -n1) \
&& git clone --depth 1 --single-branch -b ${DV} https://git.drupalcode.org/project/drupal.git web \
&& cd web; composer require drush/drush:~10; composer install \ && cd web; composer require drush/drush:~10; composer install \
&& php --version; composer --version; vendor/bin/drush --version; vendor/bin/drush status \ && php --version; composer --version; vendor/bin/drush --version; vendor/bin/drush status \
&& cd /var/www/html; chmod a+w web/sites/default; \ && cd /var/www/html; chmod a+w web/sites/default; \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment