Skip to content

Commit dcd0b5f

Browse files
committed
Get D11 out
1 parent bf585ed commit dcd0b5f

4 files changed

Lines changed: 48 additions & 4 deletions

File tree

.github/workflows/build-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040
push: true
4141
tags: |
4242
insready/drupal-dev:9
43-
insready/drupal-dev:latest
4443
-
4544
name: Build and push - D10
4645
id: docker_build_10
@@ -51,6 +50,7 @@ jobs:
5150
push: true
5251
tags: |
5352
insready/drupal-dev:10
53+
insready/drupal-dev:latest
5454
-
5555
name: Build and push - ContentaCMS
5656
id: docker_build_contenta

10/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN { \
2121
} >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
2222

2323
# install phpredis extension
24-
ENV PHPREDIS_VERSION 5.3.7
24+
ENV PHPREDIS_VERSION 6.0.2
2525
RUN curl -L -o /tmp/redis.tar.gz https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz \
2626
&& tar xfz /tmp/redis.tar.gz \
2727
&& rm -r /tmp/redis.tar.gz \

11/Dockerfile

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
FROM drupal:11.0-rc
2+
3+
# install the PHP extensions we need
4+
RUN apt-get update \
5+
&& apt-get install -y git mariadb-client wget nano pv gpg \
6+
&& rm -rf /var/lib/apt/lists/*
7+
8+
# install Xdebug, from https://xdebug.org/docs/install
9+
RUN pecl install xdebug \
10+
&& docker-php-ext-enable xdebug
11+
12+
# enable Xdebug remote debugging
13+
RUN { \
14+
echo 'xdebug.mode=debug'; \
15+
echo 'xdebug.discover_client_host=true'; \
16+
echo 'xdebug.client_host=host.docker.internal'; \
17+
echo 'xdebug.start_with_request=yes'; \
18+
echo 'memory_limit = 2048M'; \
19+
echo 'error_log = /var/log/php_error.log'; \
20+
echo 'xdebug.log = /var/log/xdebug.log'; \
21+
} >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
22+
23+
# install phpredis extension
24+
ENV PHPREDIS_VERSION 6.0.2
25+
RUN curl -L -o /tmp/redis.tar.gz https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz \
26+
&& tar xfz /tmp/redis.tar.gz \
27+
&& rm -r /tmp/redis.tar.gz \
28+
&& mkdir /usr/src/php/ext -p \
29+
&& mv phpredis-$PHPREDIS_VERSION /usr/src/php/ext/redis \
30+
&& docker-php-ext-install redis
31+
32+
# install and config mhsendmail for mailhog, from https://devilbox.readthedocs.io/en/latest/custom-container/enable-mailhog.html#tl-dr
33+
RUN curl -fSL "https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64" -o mhsendmail \
34+
&& chmod +x mhsendmail \
35+
&& mv mhsendmail /usr/local/bin/ \
36+
&& echo "sendmail_path = '/usr/local/bin/mhsendmail --smtp-addr=\"mailhog:1025\"'" >> /usr/local/etc/php/conf.d/mailhog.ini
37+
38+
# preemptively creates log files, and give them to www-data
39+
RUN cd /var/log \
40+
&& touch php_error.log xdebug.log \
41+
&& chown 1001:1001 php_error.log xdebug.log
42+
43+
ENV TERM xterm

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Supported tags and respective `Dockerfile` links
2-
- [`10`, (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/10/Dockerfile)
3-
- [`9`, `latest` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/9/Dockerfile)
2+
- [`10`, `latest` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/10/Dockerfile)
3+
- [`11` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/11/Dockerfile)
4+
- [`9` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/9/Dockerfile)
45
- [`contentacms` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/contentacms/Dockerfile)
56
- [`thunder` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/thunder/Dockerfile)
67
- [`varbase` (*Dockerfile*)](https://github.com/INsReady/docker-drupal-dev/blob/master/varbase/Dockerfile)

0 commit comments

Comments
 (0)