Skip to content

Commit

Permalink
Get D11 out
Browse files Browse the repository at this point in the history
  • Loading branch information
skyred committed Jul 30, 2024
1 parent bf585ed commit dcd0b5f
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
push: true
tags: |
insready/drupal-dev:9
insready/drupal-dev:latest
-
name: Build and push - D10
id: docker_build_10
Expand All @@ -51,6 +50,7 @@ jobs:
push: true
tags: |
insready/drupal-dev:10
insready/drupal-dev:latest
-
name: Build and push - ContentaCMS
id: docker_build_contenta
Expand Down
2 changes: 1 addition & 1 deletion 10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN { \
} >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini

# install phpredis extension
ENV PHPREDIS_VERSION 5.3.7
ENV PHPREDIS_VERSION 6.0.2
RUN curl -L -o /tmp/redis.tar.gz https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz \
&& tar xfz /tmp/redis.tar.gz \
&& rm -r /tmp/redis.tar.gz \
Expand Down
43 changes: 43 additions & 0 deletions 11/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
FROM drupal:11.0-rc

# install the PHP extensions we need
RUN apt-get update \
&& apt-get install -y git mariadb-client wget nano pv gpg \
&& rm -rf /var/lib/apt/lists/*

# install Xdebug, from https://xdebug.org/docs/install
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug

# enable Xdebug remote debugging
RUN { \
echo 'xdebug.mode=debug'; \
echo 'xdebug.discover_client_host=true'; \
echo 'xdebug.client_host=host.docker.internal'; \
echo 'xdebug.start_with_request=yes'; \
echo 'memory_limit = 2048M'; \
echo 'error_log = /var/log/php_error.log'; \
echo 'xdebug.log = /var/log/xdebug.log'; \
} >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini

# install phpredis extension
ENV PHPREDIS_VERSION 6.0.2
RUN curl -L -o /tmp/redis.tar.gz https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz \
&& tar xfz /tmp/redis.tar.gz \
&& rm -r /tmp/redis.tar.gz \
&& mkdir /usr/src/php/ext -p \
&& mv phpredis-$PHPREDIS_VERSION /usr/src/php/ext/redis \
&& docker-php-ext-install redis

# install and config mhsendmail for mailhog, from https://devilbox.readthedocs.io/en/latest/custom-container/enable-mailhog.html#tl-dr
RUN curl -fSL "https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64" -o mhsendmail \
&& chmod +x mhsendmail \
&& mv mhsendmail /usr/local/bin/ \
&& echo "sendmail_path = '/usr/local/bin/mhsendmail --smtp-addr=\"mailhog:1025\"'" >> /usr/local/etc/php/conf.d/mailhog.ini

# preemptively creates log files, and give them to www-data
RUN cd /var/log \
&& touch php_error.log xdebug.log \
&& chown 1001:1001 php_error.log xdebug.log

ENV TERM xterm
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Supported tags and respective `Dockerfile` links
- [`10`, (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/10/Dockerfile)
- [`9`, `latest` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/9/Dockerfile)
- [`10`, `latest` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/10/Dockerfile)
- [`11` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/11/Dockerfile)
- [`9` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/9/Dockerfile)
- [`contentacms` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/contentacms/Dockerfile)
- [`thunder` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/thunder/Dockerfile)
- [`varbase` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/varbase/Dockerfile)
Expand Down

0 comments on commit dcd0b5f

Please sign in to comment.