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

Commit

Permalink
add php 8.0 images
Browse files Browse the repository at this point in the history
Signed-off-by: BlackEagle <[email protected]>
  • Loading branch information
BlackIkeEagle committed Feb 5, 2021
1 parent 0ece2c1 commit ae0ae50
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ prepare:7.4:
only:
- master

prepare:8.0:
stage: prepare
tags:
- dockerwest
script:
- docker pull dockerwest/php:8.0
only:
- master

build:5.6:
stage: build
tags:
Expand Down Expand Up @@ -113,6 +122,15 @@ build:7.4:
only:
- master

build:8.0:
stage: build
tags:
- dockerwest
script:
- cd 8.0; ./build.sh
only:
- master

release:5.6:
stage: release
tags:
Expand Down Expand Up @@ -166,3 +184,12 @@ release:7.4:
- docker push dockerwest/php-magento2:7.4
only:
- master

release:8.0:
stage: release
tags:
- dockerwest
script:
- docker push dockerwest/php-magento2:8.0
only:
- master
5 changes: 5 additions & 0 deletions 8.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM dockerwest/php:8.0

COPY ./scripts /
RUN /install.sh
RUN rm /install*
4 changes: 4 additions & 0 deletions 8.0/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
#docker pull dockerwest/php:8.0

docker build --no-cache -t dockerwest/php-magento2:8.0 .
7 changes: 7 additions & 0 deletions 8.0/scripts/etc/php/8.0/mods-available/opcache_settings.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
; priority=80
opcache.enable_cli=1
opcache.memory_consumption=512
opcache.max_accelerated_files=100000
opcache.validate_timestamps=0
opcache.consistency_checks=0
opcache.save_comments=1
24 changes: 24 additions & 0 deletions 8.0/scripts/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh

set -e

# install packages
apt-get update

extensions -i bcmath gd intl mbstring mysql readline redis soap sodium xsl amqp

apt-get clean -y

# magento needs a bit more memory than 256M
sed -e 's/^\(memory_limit\).*/\1 = 1024M/' \
-i /etc/php/${DW_PHP_VERSION}/mods-available/custom.ini

sed -e 's/\(max_nesting_level\).*/\1=1000/' \
-i /etc/php/${DW_PHP_VERSION}/mods-available/xdebug.ini

# install magerun
curl -sS -o /usr/local/bin/magerun https://files.magerun.net/n98-magerun2.phar
chmod +x /usr/local/bin/magerun

# update permissions to allow rootless operation
/usr/local/bin/permissions
1 change: 1 addition & 0 deletions buildall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
( cd 7.2; ./build.sh )
( cd 7.3; ./build.sh )
( cd 7.4; ./build.sh )
( cd 8.0; ./build.sh )

0 comments on commit ae0ae50

Please sign in to comment.