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

Commit ae0ae50

Browse files
committed
add php 8.0 images
Signed-off-by: BlackEagle <[email protected]>
1 parent 0ece2c1 commit ae0ae50

File tree

6 files changed

+68
-0
lines changed

6 files changed

+68
-0
lines changed

Diff for: .gitlab-ci.yml

+27
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ prepare:7.4:
5959
only:
6060
- master
6161

62+
prepare:8.0:
63+
stage: prepare
64+
tags:
65+
- dockerwest
66+
script:
67+
- docker pull dockerwest/php:8.0
68+
only:
69+
- master
70+
6271
build:5.6:
6372
stage: build
6473
tags:
@@ -113,6 +122,15 @@ build:7.4:
113122
only:
114123
- master
115124

125+
build:8.0:
126+
stage: build
127+
tags:
128+
- dockerwest
129+
script:
130+
- cd 8.0; ./build.sh
131+
only:
132+
- master
133+
116134
release:5.6:
117135
stage: release
118136
tags:
@@ -166,3 +184,12 @@ release:7.4:
166184
- docker push dockerwest/php-magento2:7.4
167185
only:
168186
- master
187+
188+
release:8.0:
189+
stage: release
190+
tags:
191+
- dockerwest
192+
script:
193+
- docker push dockerwest/php-magento2:8.0
194+
only:
195+
- master

Diff for: 8.0/Dockerfile

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

Diff for: 8.0/build.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
#docker pull dockerwest/php:8.0
3+
4+
docker build --no-cache -t dockerwest/php-magento2:8.0 .
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

Diff for: 8.0/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

Diff for: buildall.sh

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
( cd 7.2; ./build.sh )
77
( cd 7.3; ./build.sh )
88
( cd 7.4; ./build.sh )
9+
( cd 8.0; ./build.sh )

0 commit comments

Comments
 (0)