Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Commit 3a8d45f

Browse files
committed
php 7.4 support
Signed-off-by: BlackEagle <[email protected]>
1 parent a334487 commit 3a8d45f

File tree

6 files changed

+68
-0
lines changed

6 files changed

+68
-0
lines changed

.gitlab-ci.yml

+27
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ prepare:7.3:
5050
only:
5151
- master
5252

53+
prepare:7.4:
54+
stage: prepare
55+
tags:
56+
- dockerwest
57+
script:
58+
- docker pull dockerwest/php:7.4
59+
only:
60+
- master
61+
5362
build:5.6:
5463
stage: build
5564
tags:
@@ -95,6 +104,15 @@ build:7.3:
95104
only:
96105
- master
97106

107+
build:7.4:
108+
stage: build
109+
tags:
110+
- dockerwest
111+
script:
112+
- cd 7.4; ./build.sh
113+
only:
114+
- master
115+
98116
release:5.6:
99117
stage: release
100118
tags:
@@ -139,3 +157,12 @@ release:7.3:
139157
- docker push dockerwest/php-magento2:7.3
140158
only:
141159
- master
160+
161+
release:7.4:
162+
stage: release
163+
tags:
164+
- dockerwest
165+
script:
166+
- docker push dockerwest/php-magento2:7.4
167+
only:
168+
- master

7.4/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM dockerwest/php:7.4
2+
3+
COPY ./scripts /
4+
RUN /install.sh
5+
RUN rm /install*

7.4/build.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
#docker pull dockerwest/php:7.4
3+
4+
docker build --no-cache -t dockerwest/php-magento2:7.4 .
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
; priority=80
2+
opcache.enable_cli=1
3+
opcache.memory_consumption=512
4+
opcache.max_accelerated_files=100000
5+
opcache.validate_timestamps=0
6+
opcache.consistency_checks=0
7+
opcache.save_comments=1

7.4/scripts/install.sh

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
# install packages
6+
apt-get update
7+
8+
extensions -i bcmath gd intl mbstring mysql readline redis soap sodium xsl amqp
9+
10+
apt-get clean -y
11+
12+
# magento needs a bit more memory than 256M
13+
sed -e 's/^\(memory_limit\).*/\1 = 1024M/' \
14+
-i /etc/php/${DW_PHP_VERSION}/mods-available/custom.ini
15+
16+
sed -e 's/\(max_nesting_level\).*/\1=1000/' \
17+
-i /etc/php/${DW_PHP_VERSION}/mods-available/xdebug.ini
18+
19+
# install magerun
20+
curl -sS -o /usr/local/bin/magerun https://files.magerun.net/n98-magerun2.phar
21+
chmod +x /usr/local/bin/magerun
22+
23+
# update permissions to allow rootless operation
24+
/usr/local/bin/permissions

buildall.sh

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
( cd 7.1; ./build.sh )
66
( cd 7.2; ./build.sh )
77
( cd 7.3; ./build.sh )
8+
( cd 7.4; ./build.sh )

0 commit comments

Comments
 (0)