add php8.2 fpm
Some checks failed
Build and push image / Build (push) Failing after 36s

This commit is contained in:
Jack 2024-07-15 11:26:11 +01:00
parent 24f9633771
commit b27aa50671
153 changed files with 9146 additions and 4 deletions

View File

@ -20,12 +20,12 @@ jobs:
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64 ./nginx-web -t git.tgj.services/thatguyjack/nginx-web:latest --push
- name: Build php-8.1-CLI
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64 ./php-8-1-cli/ -t git.tgj.services/thatguyjack/php-cli:8.1 --push
- name: Build php-8.1-CLI
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64 ./php-8-1-cli/ -t git.tgj.services/thatguyjack/php-cli:latest --push
- name: Build php-8.2-CLI
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64 ./php-8-2-cli/ -t git.tgj.services/thatguyjack/php-cli:8.2 --push
- name: Build php-FPM
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64 ./php-fpm/ -t git.tgj.services/thatguyjack/php-fpm:latest --push
- name: Build php8-1-FPM
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64 ./php-8-1-fpm/ -t git.tgj.services/thatguyjack/php-fpm:8.1 --push
- name: Build php-8-2-FPM
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64 ./php-8-2-fpm/ -t git.tgj.services/thatguyjack/php-fpm:8.2 --push
# - name: Push
# run: |
# docker push git.tgj.services/thatguyjack/php-fpm:latest

80
php-8-2-fpm/Dockerfile Normal file
View File

@ -0,0 +1,80 @@
FROM php:8.2-fpm-alpine
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
COPY ./config/php.ini-production "$PHP_INI_DIR/php.ini-production"
COPY ./config/pool.d "$PHP_INI_DIR/"
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
&& pecl install uploadprogress \
&& docker-php-ext-enable uploadprogress \
&& apk del .build-deps $PHPIZE_DEPS \
&& chmod uga+x /usr/local/bin/install-php-extensions && sync
RUN install-php-extensions bcmath \
bz2 \
smbclient \
calendar \
curl \
exif \
fileinfo \
ftp \
gd \
gettext \
imagick \
imap \
intl \
ldap \
mbstring \
mcrypt \
memcached \
mongodb \
mysqli \
opcache \
openssl \
pdo \
pdo_mysql \
redis \
soap \
sodium \
sysvsem \
sysvshm \
xmlrpc \
xsl \
zip \
gmp
#RUN apk add --no-cache ssmbclient
RUN echo -e "\n opcache.enable=1 \n opcache.enable_cli=1 \n opcache.memory_consumption=2048 \n opcache.interned_strings_buffer=1024 \n opcache.max_accelerated_files=8000 \n opcache.revalidate_freq=60 \n opcache.fast_shutdown=1" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini \
&& echo -e "\n xdebug.remote_enable=1 \n xdebug.remote_host=localhost \n xdebug.remote_port=9000" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo -e "\n xhprof.output_dir='/var/tmp/xhprof'" >> /usr/local/etc/php/conf.d/docker-php-ext-xhprof.ini \
&& cd ~
# Install composer
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php -r "copy('https://composer.github.io/installer.sig', 'signature');" \
&& php -r "if (hash_file('SHA384', 'composer-setup.php') === trim(file_get_contents('signature'))) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
&& php -r "unlink('composer-setup.php');"
# Install WP-CLI
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
&& chmod +x wp-cli.phar \
&& mv wp-cli.phar /usr/local/bin/wp
# Install msmtp - To Send Mails on Production & Development
RUN apk add msmtp
RUN apk add --no-cache gnupg
# modify www-data user to have id 1000
RUN apk add \
--no-cache \
--repository http://dl-3.alpinelinux.org/alpine/edge/community/ --allow-untrusted \
--virtual .shadow-deps \
shadow \
&& usermod -u 1000 www-data \
&& groupmod -g 1000 www-data \
&& apk del .shadow-deps

View File

@ -0,0 +1,3 @@
; configuration for php mysql module
; priority=10
extension=mysqlnd.so

View File

@ -0,0 +1,4 @@
; configuration for php opcache module
; priority=10
zend_extension=opcache.so
opcache.jit=off

View File

@ -0,0 +1,3 @@
; configuration for php common module
; priority=10
extension=pdo.so

View File

@ -0,0 +1,3 @@
; configuration for php xml module
; priority=15
extension=xml.so

View File

@ -0,0 +1 @@
extension=apcu.so

View File

@ -0,0 +1,3 @@
; configuration for php bcmath module
; priority=20
extension=bcmath.so

View File

@ -0,0 +1,3 @@
; configuration for php common module
; priority=20
extension=calendar.so

View File

@ -0,0 +1,3 @@
; configuration for php common module
; priority=20
extension=ctype.so

View File

@ -0,0 +1,3 @@
; configuration for php curl module
; priority=20
extension=curl.so

View File

@ -0,0 +1,3 @@
; configuration for php xml module
; priority=20
extension=dom.so

View File

@ -0,0 +1,3 @@
; configuration for php common module
; priority=20
extension=exif.so

View File

@ -0,0 +1,3 @@
; configuration for php common module
; priority=20
extension=ffi.so

View File

@ -0,0 +1,3 @@
; configuration for php common module
; priority=20
extension=fileinfo.so

View File

@ -0,0 +1,3 @@
; configuration for php common module
; priority=20
extension=ftp.so

View File

@ -0,0 +1,3 @@
; configuration for php gd module
; priority=20
extension=gd.so

View File

@ -0,0 +1,3 @@
; configuration for php common module
; priority=20
extension=gettext.so

View File

@ -0,0 +1,3 @@
; configuration for php gmp module
; priority=20
extension=gmp.so

View File

@ -0,0 +1,3 @@
; configuration for php common module
; priority=20
extension=iconv.so

View File

@ -0,0 +1,15 @@
; configuration for php igbinary module
; priority=20
; Load igbinary extension
extension=igbinary.so
; Use igbinary as session serializer
;session.serialize_handler=igbinary
; Enable or disable compacting of duplicate strings
; The default is On.
igbinary.compact_strings=On
; Use igbinary as serializer in APC cache (3.1.7 or later)
;apc.serializer=igbinary

View File

@ -0,0 +1,2 @@
; configuration for php imagick module
extension=imagick.so

View File

@ -0,0 +1,3 @@
; configuration for php intl module
; priority=20
extension=intl.so

View File

@ -0,0 +1,3 @@
; configuration for php mbstring module
; priority=20
extension=mbstring.so

Some files were not shown because too many files have changed in this diff Show More