-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1071 from markshust/feature/php83
- Loading branch information
Showing
13 changed files
with
641 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: build-php-8-3 | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
php-8-3: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- | ||
name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- | ||
name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: images/php/8.3 | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: | | ||
markoshust/magento-php:8.3-fpm | ||
markoshust/magento-php:8.3-fpm-develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM php:8.1-fpm-bullseye | ||
FROM php:8.1-fpm-bookworm | ||
MAINTAINER Mark Shust <[email protected]> | ||
|
||
ARG APP_ID=1000 | ||
|
@@ -41,10 +41,10 @@ RUN apt-get update && apt-get install -y \ | |
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pecl channel-update pecl.php.net && pecl install \ | ||
imagick \ | ||
redis \ | ||
imagick-3.7.0 \ | ||
redis-6.0.2 \ | ||
ssh2-1.3.1 \ | ||
xdebug \ | ||
xdebug-3.3.1 \ | ||
&& pecl clear-cache \ | ||
&& rm -rf /tmp/pear | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM php:8.2-fpm-bullseye | ||
FROM php:8.2-fpm-bookworm | ||
MAINTAINER Mark Shust <[email protected]> | ||
|
||
ARG APP_ID=1000 | ||
|
@@ -8,7 +8,7 @@ RUN groupadd -g "$APP_ID" app \ | |
RUN mkdir -p /etc/nginx/html /var/www/html /sock \ | ||
&& chown -R app:app /etc/nginx /var/www /usr/local/etc/php/conf.d /sock | ||
|
||
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - | ||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
cron \ | ||
|
@@ -41,10 +41,10 @@ RUN apt-get update && apt-get install -y \ | |
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pecl channel-update pecl.php.net && pecl install \ | ||
imagick \ | ||
redis \ | ||
imagick-3.7.0 \ | ||
redis-6.0.2 \ | ||
ssh2-1.3.1 \ | ||
xdebug \ | ||
xdebug-3.3.1 \ | ||
&& pecl clear-cache \ | ||
&& rm -rf /tmp/pear | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
FROM php:8.3-fpm-bookworm | ||
MAINTAINER Mark Shust <[email protected]> | ||
|
||
ARG APP_ID=1000 | ||
RUN groupadd -g "$APP_ID" app \ | ||
&& useradd -g "$APP_ID" -u "$APP_ID" -d /var/www -s /bin/bash app | ||
|
||
RUN mkdir -p /etc/nginx/html /var/www/html /sock \ | ||
&& chown -R app:app /etc/nginx /var/www /usr/local/etc/php/conf.d /sock | ||
|
||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
cron \ | ||
default-mysql-client \ | ||
git \ | ||
gnupg \ | ||
gzip \ | ||
libbz2-dev \ | ||
libfreetype6-dev \ | ||
libicu-dev \ | ||
libjpeg62-turbo-dev \ | ||
libmagickwand-dev \ | ||
libmcrypt-dev \ | ||
libonig-dev \ | ||
libpng-dev \ | ||
libsodium-dev \ | ||
libssh2-1-dev \ | ||
libwebp-dev \ | ||
libxslt1-dev \ | ||
libzip-dev \ | ||
lsof \ | ||
mailutils \ | ||
msmtp \ | ||
nodejs \ | ||
procps \ | ||
strace \ | ||
vim \ | ||
zip \ | ||
zlib1g-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pecl channel-update pecl.php.net && pecl install \ | ||
redis-6.0.2 \ | ||
ssh2-1.3.1 \ | ||
xdebug-3.3.1 \ | ||
&& pecl clear-cache \ | ||
&& rm -rf /tmp/pear | ||
|
||
RUN curl -L https://github.com/Imagick/imagick/archive/28f27044e435a2b203e32675e942eb8de620ee58.zip -o imagick.zip \ | ||
&& unzip imagick.zip \ | ||
&& rm imagick.zip \ | ||
&& cd imagick-28f27044e435a2b203e32675e942eb8de620ee58 \ | ||
&& phpize \ | ||
&& ./configure --with-php-config=/usr/local/bin/php-config \ | ||
&& make \ | ||
&& make install \ | ||
&& echo "extension=imagick.so" >> $PHP_INI_DIR/conf.d/imagick.ini \ | ||
&& cd .. \ | ||
&& rm -rf imagick-master | ||
|
||
RUN docker-php-ext-configure \ | ||
gd --with-freetype --with-jpeg --with-webp \ | ||
&& docker-php-ext-install \ | ||
bcmath \ | ||
bz2 \ | ||
calendar \ | ||
exif \ | ||
gd \ | ||
gettext \ | ||
intl \ | ||
mbstring \ | ||
mysqli \ | ||
opcache \ | ||
pcntl \ | ||
pdo_mysql \ | ||
soap \ | ||
sockets \ | ||
sodium \ | ||
sysvmsg \ | ||
sysvsem \ | ||
sysvshm \ | ||
xsl \ | ||
zip \ | ||
&& docker-php-ext-enable \ | ||
imagick \ | ||
redis \ | ||
ssh2 \ | ||
xdebug | ||
|
||
RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \ | ||
&& architecture=$(uname -m) \ | ||
&& curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/$architecture/$version \ | ||
&& mkdir -p /tmp/blackfire \ | ||
&& tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire \ | ||
&& mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get ('extension_dir');")/blackfire.so \ | ||
&& rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz | ||
|
||
RUN git clone --branch v0.4.15 --depth=1 https://github.com/NoiseByNorthwest/php-spx.git /usr/lib/php-spx \ | ||
&& cd /usr/lib/php-spx \ | ||
&& phpize \ | ||
&& ./configure \ | ||
&& make \ | ||
&& make install | ||
|
||
RUN curl -sS https://getcomposer.org/installer | \ | ||
php -- --install-dir=/usr/local/bin --filename=composer | ||
|
||
COPY conf/blackfire.ini $PHP_INI_DIR/conf.d/blackfire.ini | ||
COPY conf/spx.ini $PHP_INI_DIR/conf.d/spx.ini | ||
COPY conf/msmtprc /etc/msmtprc | ||
COPY conf/php.ini $PHP_INI_DIR | ||
COPY conf/php-fpm.conf /usr/local/etc/ | ||
COPY conf/www.conf /usr/local/etc/php-fpm.d/ | ||
|
||
USER app:app | ||
VOLUME /var/www | ||
WORKDIR /var/www/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
extension=blackfire.so | ||
blackfire.agent_socket=tcp://blackfire:8307 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
account default | ||
host mailcatcher | ||
port 1025 | ||
from "[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
; This file was initially adapated from the output of: (on PHP 5.6) | ||
; grep -vE '^;|^ *$' /usr/local/etc/php-fpm.conf.default | ||
|
||
[global] | ||
|
||
error_log = /proc/self/fd/2 | ||
daemonize = no | ||
|
||
[www] | ||
|
||
; if we send this to /proc/self/fd/1, it never appears | ||
access.log = /proc/self/fd/2 | ||
|
||
;user = app | ||
;group = app | ||
|
||
listen = /sock/docker.sock | ||
listen.owner = app | ||
listen.group = app | ||
listen.mode = 0660 | ||
|
||
pm = dynamic | ||
pm.max_children = 10 | ||
pm.start_servers = 4 | ||
pm.min_spare_servers = 2 | ||
pm.max_spare_servers = 6 | ||
|
||
clear_env = no | ||
|
||
; Ensure worker stdout and stderr are sent to the main error log. | ||
catch_workers_output = yes | ||
|
||
; This needed to make PHP-SPX work in fpm mode. | ||
process.dumpable = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
memory_limit = 4G | ||
max_execution_time = 1800 | ||
zlib.output_compression = 1 | ||
cgi.fix_pathinfo = 0 | ||
date.timezone = UTC | ||
|
||
xdebug.mode = off | ||
xdebug.client_host = host.docker.internal | ||
xdebug.idekey = PHPSTORM | ||
|
||
upload_max_filesize = 100M | ||
post_max_size = 100M | ||
max_input_vars = 10000 | ||
|
||
sendmail_path = "/usr/bin/msmtp -t" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
zlib.output_compression = 0 | ||
|
||
extension = /usr/lib/php-spx/modules/spx.so | ||
spx.http_enabled = 1 | ||
spx.http_key = "dev" | ||
spx.http_ip_whitelist = "*" | ||
spx.data_dir = /var/www/spx_dumps |
Oops, something went wrong.