Compare commits
7 Commits
5d1a7c80df
...
1f8a5f09c5
Author | SHA1 | Date | |
---|---|---|---|
1f8a5f09c5 | |||
22892553de | |||
2c1592d93e | |||
8398cc9ebd | |||
f7dbd3bff2 | |||
03dbebd0b8 | |||
0e44205407 |
@ -1,4 +1,4 @@
|
|||||||
FROM php:7.3.33-fpm-bullseye
|
FROM php:7.4-fpm-bullseye
|
||||||
|
|
||||||
# Set build shell to bash, default has has some issues sometimes
|
# Set build shell to bash, default has has some issues sometimes
|
||||||
SHELL ["/bin/bash", "-c"]
|
SHELL ["/bin/bash", "-c"]
|
||||||
@ -15,6 +15,6 @@ RUN apt update \
|
|||||||
# Configure and Install mysqli,pdo,pdo_mysql,bcmath,calendar,zip,gettext,exif,pcntl,shmop,-j$(nproc),gd,sysvmsg
|
# Configure and Install mysqli,pdo,pdo_mysql,bcmath,calendar,zip,gettext,exif,pcntl,shmop,-j$(nproc),gd,sysvmsg
|
||||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
&& docker-php-ext-configure pcntl --enable-pcntl \
|
&& docker-php-ext-configure pcntl --enable-pcntl \
|
||||||
&& docker-php-ext-configure zip --with-libzip \
|
&& docker-php-ext-configure zip \
|
||||||
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
|
&& docker-php-ext-configure gd \
|
||||||
&& docker-php-ext-install {mysqli,pdo,pdo_mysql,bcmath,calendar,zip,gettext,exif,pcntl,shmop,-j$(nproc),gd,sysvmsg,sysvsem,sysvshm}
|
&& docker-php-ext-install {mysqli,pdo,pdo_mysql,bcmath,calendar,zip,gettext,exif,pcntl,shmop,-j$(nproc),gd,sysvmsg,sysvsem,sysvshm}
|
@ -14,4 +14,4 @@ services:
|
|||||||
- linux/arm/v7
|
- linux/arm/v7
|
||||||
- linux/arm64
|
- linux/arm64
|
||||||
hostname: fpm
|
hostname: fpm
|
||||||
image: git.shihaam.dev/dockerfiles/php-fpm:7.3.33
|
image: git.shihaam.dev/dockerfiles/php-fpm:7.4
|
20
8.0.2/Dockerfile
Normal file
20
8.0.2/Dockerfile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
FROM php:8.0.2-fpm-buster
|
||||||
|
|
||||||
|
# Set build shell to bash, default has has some issues sometimes
|
||||||
|
SHELL ["/bin/bash", "-c"]
|
||||||
|
|
||||||
|
# Install basic tools
|
||||||
|
## libzip-dev is required for php-zip
|
||||||
|
## libfreetype6-dev libjpeg62-turbo-dev are required for php-gd
|
||||||
|
RUN apt update \
|
||||||
|
&& apt install curl nano iputils-ping libzip-dev zip unzip libfreetype6-dev libjpeg62-turbo-dev -y --no-install-recommends \
|
||||||
|
&& apt auto-remove -y \
|
||||||
|
&& apt clean -y
|
||||||
|
|
||||||
|
## Install composer and some base extensions
|
||||||
|
# Configure and Install mysqli,pdo,pdo_mysql,bcmath,calendar,zip,gettext,exif,pcntl,shmop,-j$(nproc),gd,sysvmsg
|
||||||
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
|
&& docker-php-ext-install {mysqli,pdo,pdo_mysql,bcmath,calendar,zip,gettext,exif,pcntl,shmop,-j$(nproc),gd,sysvmsg,sysvsem,sysvshm}
|
||||||
|
|
||||||
|
# Copy php.ini config
|
||||||
|
COPY php.ini /usr/local/etc/php/php.ini
|
17
8.0.2/docker-compose.yml
Normal file
17
8.0.2/docker-compose.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
version: '3.5'
|
||||||
|
services:
|
||||||
|
#########################
|
||||||
|
fpm:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
x-bake:
|
||||||
|
pull: true
|
||||||
|
platforms:
|
||||||
|
- linux/amd64/v1
|
||||||
|
- linux/amd64/v2
|
||||||
|
- linux/amd64/v3
|
||||||
|
- linux/arm/v7
|
||||||
|
- linux/arm64
|
||||||
|
hostname: fpm
|
||||||
|
image: git.shihaam.dev/dockerfiles/php-fpm:8.0.2
|
1963
8.0.2/php.ini
Normal file
1963
8.0.2/php.ini
Normal file
File diff suppressed because it is too large
Load Diff
20
8.1/Dockerfile
Normal file
20
8.1/Dockerfile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
FROM php:8.1-fpm-bullseye
|
||||||
|
|
||||||
|
# Set build shell to bash, default has has some issues sometimes
|
||||||
|
SHELL ["/bin/bash", "-c"]
|
||||||
|
|
||||||
|
# Install basic tools
|
||||||
|
## libzip-dev is required for php-zip
|
||||||
|
## libfreetype6-dev libjpeg62-turbo-dev are required for php-gd
|
||||||
|
RUN apt update \
|
||||||
|
&& apt install curl nano iputils-ping libzip-dev zip unzip libfreetype6-dev libjpeg62-turbo-dev -y --no-install-recommends \
|
||||||
|
&& apt auto-remove -y \
|
||||||
|
&& apt clean -y
|
||||||
|
|
||||||
|
## Install composer and some base extensions
|
||||||
|
# Configure and Install mysqli,pdo,pdo_mysql,bcmath,calendar,zip,gettext,exif,pcntl,shmop,-j$(nproc),gd,sysvmsg
|
||||||
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
|
&& docker-php-ext-install {mysqli,pdo,pdo_mysql,bcmath,calendar,zip,gettext,exif,pcntl,shmop,-j$(nproc),gd,sysvmsg,sysvsem,sysvshm}
|
||||||
|
|
||||||
|
# Copy php.ini config
|
||||||
|
COPY php.ini /usr/local/etc/php/php.ini
|
17
8.1/docker-compose.yml
Normal file
17
8.1/docker-compose.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
version: '3.5'
|
||||||
|
services:
|
||||||
|
#########################
|
||||||
|
fpm:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
x-bake:
|
||||||
|
pull: true
|
||||||
|
platforms:
|
||||||
|
- linux/amd64/v1
|
||||||
|
- linux/amd64/v2
|
||||||
|
- linux/amd64/v3
|
||||||
|
- linux/arm/v7
|
||||||
|
- linux/arm64
|
||||||
|
hostname: fpm
|
||||||
|
image: git.shihaam.dev/dockerfiles/php-fpm:8.1
|
1963
8.1/php.ini
Normal file
1963
8.1/php.ini
Normal file
File diff suppressed because it is too large
Load Diff
20
8.2/Dockerfile
Normal file
20
8.2/Dockerfile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
FROM php:8.2-fpm-bullseye
|
||||||
|
|
||||||
|
# Set build shell to bash, default has has some issues sometimes
|
||||||
|
SHELL ["/bin/bash", "-c"]
|
||||||
|
|
||||||
|
# Install basic tools
|
||||||
|
## libzip-dev is required for php-zip
|
||||||
|
## libfreetype6-dev libjpeg62-turbo-dev are required for php-gd
|
||||||
|
RUN apt update \
|
||||||
|
&& apt install curl nano iputils-ping libzip-dev zip unzip libfreetype6-dev libjpeg62-turbo-dev -y --no-install-recommends \
|
||||||
|
&& apt auto-remove -y \
|
||||||
|
&& apt clean -y
|
||||||
|
|
||||||
|
## Install composer and some base extensions
|
||||||
|
# Configure and Install mysqli,pdo,pdo_mysql,bcmath,calendar,zip,gettext,exif,pcntl,shmop,-j$(nproc),gd,sysvmsg
|
||||||
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
|
&& docker-php-ext-install {mysqli,pdo,pdo_mysql,bcmath,calendar,zip,gettext,exif,pcntl,shmop,-j$(nproc),gd,sysvmsg,sysvsem,sysvshm}
|
||||||
|
|
||||||
|
# Copy php.ini config
|
||||||
|
COPY php.ini /usr/local/etc/php/php.ini
|
17
8.2/docker-compose.yml
Normal file
17
8.2/docker-compose.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
version: '3.5'
|
||||||
|
services:
|
||||||
|
#########################
|
||||||
|
fpm:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
x-bake:
|
||||||
|
pull: true
|
||||||
|
platforms:
|
||||||
|
- linux/amd64/v1
|
||||||
|
- linux/amd64/v2
|
||||||
|
- linux/amd64/v3
|
||||||
|
- linux/arm/v7
|
||||||
|
- linux/arm64
|
||||||
|
hostname: fpm
|
||||||
|
image: git.shihaam.dev/dockerfiles/php-fpm:8.2
|
1963
8.2/php.ini
Normal file
1963
8.2/php.ini
Normal file
File diff suppressed because it is too large
Load Diff
23
8.3/Dockerfile
Normal file
23
8.3/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
FROM php:8.3-fpm-bullseye
|
||||||
|
|
||||||
|
# Set build shell to bash, default has has some issues sometimes
|
||||||
|
SHELL ["/bin/bash", "-c"]
|
||||||
|
|
||||||
|
# Install basic tools
|
||||||
|
## libzip-dev is required for php-zip
|
||||||
|
## libfreetype6-dev libjpeg62-turbo-dev are required for php-gd
|
||||||
|
RUN apt update \
|
||||||
|
&& apt install curl nano iputils-ping libzip-dev zip unzip libfreetype6-dev libjpeg62-turbo-dev -y --no-install-recommends \
|
||||||
|
&& apt auto-remove -y \
|
||||||
|
&& apt clean -y
|
||||||
|
|
||||||
|
# Install dependencies for intl extension
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
libicu-dev \
|
||||||
|
&& docker-php-ext-configure intl \
|
||||||
|
&& docker-php-ext-install intl
|
||||||
|
|
||||||
|
RUN docker-php-ext-install {mysqli,pdo,pdo_mysql,bcmath,intl,gd,zip}
|
||||||
|
|
||||||
|
# Copy php.ini config
|
||||||
|
COPY php.ini /usr/local/etc/php/php.ini
|
15
8.3/docker-compose.yml
Normal file
15
8.3/docker-compose.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
services:
|
||||||
|
fpm:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
x-bake:
|
||||||
|
pull: true
|
||||||
|
platforms:
|
||||||
|
- linux/amd64/v1
|
||||||
|
- linux/amd64/v2
|
||||||
|
- linux/amd64/v3
|
||||||
|
- linux/arm/v7
|
||||||
|
- linux/arm64
|
||||||
|
hostname: fpm
|
||||||
|
image: git.shihaam.dev/dockerfiles/php-fpm:8.3
|
1963
8.3/php.ini
Normal file
1963
8.3/php.ini
Normal file
File diff suppressed because it is too large
Load Diff
@ -10,7 +10,7 @@ for dir in */; do
|
|||||||
cd "$dir"
|
cd "$dir"
|
||||||
|
|
||||||
# Run docker build and push
|
# Run docker build and push
|
||||||
docker buildx bake --push
|
docker buildx bake --load
|
||||||
|
|
||||||
# Change back to the parent directory
|
# Change back to the parent directory
|
||||||
cd ..
|
cd ..
|
||||||
|
17
push-all.sh
Executable file
17
push-all.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#COMPOSE_DOCKER_CLI_BUILD=1
|
||||||
|
#DOCKER_BUILDKIT=1
|
||||||
|
#DOCKER_DEFAULT_PLATFORM=linux/amd64
|
||||||
|
|
||||||
|
# Loop through each directory
|
||||||
|
for dir in */; do
|
||||||
|
# Change into the directory
|
||||||
|
cd "$dir"
|
||||||
|
|
||||||
|
# Run docker build and push
|
||||||
|
docker buildx bake --push
|
||||||
|
|
||||||
|
# Change back to the parent directory
|
||||||
|
cd ..
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user