Skip to content

Commit 382ee99

Browse files
committed
Add PHP 7.4
1 parent 3f2d3f5 commit 382ee99

4 files changed

Lines changed: 114 additions & 4 deletions

File tree

.github/workflows/registry.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
version: ["7.3", "7.2", "7.1", "7.0", "5.6", "5.5"]
10+
version: ["7.4", "7.3", "7.2", "7.1", "7.0", "5.6", "5.5"]
1111
steps:
1212
- uses: actions/checkout@master
1313
- name: Build PHP ${{ matrix.version }} Alpine and publish to GitHub Registry
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
strategy:
3232
matrix:
33-
version: ["7.3", "7.2", "7.1", "7.0", "5.6", "5.5"]
33+
version: ["7.4", "7.3", "7.2", "7.1", "7.0", "5.6", "5.5"]
3434
steps:
3535
- uses: actions/checkout@master
3636
- name: Build PHP ${{ matrix.version }} Apache and publish to GitHub Registry

7.4/Dockerfile

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
FROM mileschou/xdebug:7.4
2+
3+
ENV COMPOSER_PATH /usr/local/bin/composer
4+
5+
# Install extensions
6+
RUN set -xe && \
7+
# Runtime dependency
8+
apk add --no-cache \
9+
libgmpxx \
10+
libjpeg-turbo \
11+
libmemcached-libs \
12+
libpng \
13+
libzip \
14+
&& \
15+
apk add --no-cache --virtual .build-deps \
16+
autoconf \
17+
cyrus-sasl-dev \
18+
g++ \
19+
gmp-dev \
20+
libjpeg-turbo-dev \
21+
libmemcached-dev \
22+
libpng-dev \
23+
libxml2-dev \
24+
libzip-dev \
25+
make \
26+
zlib-dev \
27+
&& \
28+
# See https://github.com/docker-library/php/issues/912#issuecomment-559918036
29+
docker-php-ext-configure gd \
30+
--with-jpeg \
31+
&& \
32+
docker-php-ext-install -j $(getconf _NPROCESSORS_ONLN) \
33+
bcmath \
34+
exif \
35+
gd \
36+
gmp \
37+
pdo_mysql \
38+
soap \
39+
sockets \
40+
zip \
41+
&& \
42+
pecl install \
43+
memcached \
44+
redis \
45+
&& \
46+
docker-php-ext-enable \
47+
memcached \
48+
redis \
49+
&& \
50+
apk del .build-deps \
51+
&& \
52+
php -m
53+
54+
# Install Composer and configure
55+
COPY --from=composer:1 /usr/bin/composer /usr/local/bin/composer
56+
57+
RUN set -xe && \
58+
composer global require hirak/prestissimo && \
59+
composer clear-cache

7.4/apache/Dockerfile

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
FROM mileschou/xdebug:7.4-apache
2+
3+
ENV COMPOSER_PATH /usr/local/bin/composer
4+
5+
# Install extensions
6+
RUN set -xe && \
7+
apt-get update -y && apt-get install -y --no-install-recommends --no-install-suggests \
8+
libgmp-dev \
9+
libjpeg-dev \
10+
libmemcached-dev \
11+
libpng-dev \
12+
libxml2-dev \
13+
libzip-dev \
14+
zlib1g-dev \
15+
&& \
16+
apt-get clean && rm -rf /var/lib/apt/lists/* \
17+
&& \
18+
# See https://github.com/docker-library/php/issues/912#issuecomment-559918036
19+
docker-php-ext-configure gd \
20+
--with-jpeg \
21+
&& \
22+
docker-php-ext-install -j $(getconf _NPROCESSORS_ONLN) \
23+
bcmath \
24+
exif \
25+
gd \
26+
gmp \
27+
pdo_mysql \
28+
soap \
29+
sockets \
30+
zip \
31+
&& \
32+
pecl install \
33+
memcached \
34+
redis \
35+
&& \
36+
docker-php-ext-enable \
37+
memcached \
38+
redis \
39+
&& \
40+
php -m
41+
42+
# Install Composer and configure
43+
COPY --from=composer:1 /usr/bin/composer /usr/local/bin/composer
44+
45+
RUN set -xe && \
46+
composer global require hirak/prestissimo && \
47+
composer clear-cache

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/make -f
22

33
IMAGE := 104corp/php-testing
4-
.PHONY: 5.5 5.6 7.0 7.1 7.2 7.3
4+
.PHONY: 5.5 5.6 7.0 7.1 7.2 7.3 7.4
55

66
# ------------------------------------------------------------------------------
77

8-
all: 5.5 5.6 7.0 7.1 7.2 7.3
8+
all: 5.5 5.6 7.0 7.1 7.2 7.3 7.4
99

1010
5.5:
1111
docker build -t=$(IMAGE):5.5 -f 5.5/Dockerfile .
@@ -30,3 +30,7 @@ all: 5.5 5.6 7.0 7.1 7.2 7.3
3030
7.3:
3131
docker build -t=$(IMAGE):7.3 -f 7.3/Dockerfile .
3232
docker build -t=$(IMAGE):7.3-apache -f 7.3/apache/Dockerfile .
33+
34+
7.4:
35+
docker build -t=$(IMAGE):7.4 -f 7.4/Dockerfile .
36+
docker build -t=$(IMAGE):7.4-apache -f 7.4/apache/Dockerfile .

0 commit comments

Comments
 (0)