Skip to content

Commit fbf58d8

Browse files
feat: add php 7.2.33
1 parent 6d6fd3c commit fbf58d8

11 files changed

Lines changed: 524 additions & 5192 deletions

File tree

.cnb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
main:
22
web_trigger_build_node_image:
33
- runner:
4-
tags: cnb:arch:amd64
4+
tags: cnb:arch:amd64:containerd-snapshotter
55
services:
66
- docker
77
imports: https://cnb.cool/1Panel-dev/secrets/-/blob/main/docker-1panel-envs.yml

.github/workflows/php7-release.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ on:
1515
description: 'PHP 7.2 Version'
1616
default: '7.2.34'
1717
required: true
18-
php71Version:
19-
description: 'PHP 7.1 Version'
20-
default: '7.1.33'
21-
required: true
2218

2319
jobs:
2420
docker:
@@ -80,17 +76,3 @@ jobs:
8076
1panel/php:${{ github.event.inputs.php72Version }}-fpm
8177
cache-from: type=gha
8278
cache-to: type=gha,mode=max
83-
84-
- name: Build PHP-7.1 and Push
85-
uses: docker/build-push-action@v5
86-
with:
87-
context: php/7
88-
file: php/7/Dockerfile
89-
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
90-
push: true
91-
build-args:
92-
PHP_VERSION=${{ github.event.inputs.php71Version }}
93-
tags: |
94-
1panel/php:${{ github.event.inputs.php71Version }}-fpm
95-
cache-from: type=gha
96-
cache-to: type=gha,mode=max

.github/workflows/php7.1.33-release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ name: Build PHP 7.1.33 Image
33
on:
44
workflow_dispatch:
55
inputs:
6-
php70Version:
6+
php_version:
77
description: 'PHP 7.1 Version'
88
default: '7.1.33'
99
required: true
10+
install_ext_version:
11+
description: 'install-php-extensions version'
12+
default: '2.8.5'
13+
required: true
1014

1115
jobs:
1216
docker:
@@ -35,8 +39,9 @@ jobs:
3539
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
3640
push: true
3741
build-args:
38-
PHP_VERSION=${{ github.event.inputs.php70Version }}
42+
PHP_VERSION=${{ github.event.inputs.php_version }}
43+
INSTALL_PHP_EXTENSIONS_VERSION=${{ github.event.inputs.install_ext_version }}
3944
tags: |
40-
1panel/php:${{ github.event.inputs.php70Version }}-fpm
45+
1panel/php:${{ github.event.inputs.php_version }}-fpm
4146
cache-from: type=gha
4247
cache-to: type=gha,mode=max
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build PHP 7.2.33 Image
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
php_version:
7+
description: 'PHP 7.2 Version'
8+
default: '7.2.33'
9+
required: true
10+
install_ext_version:
11+
description: 'install-php-extensions version'
12+
default: '2.8.5'
13+
required: true
14+
15+
jobs:
16+
docker:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v3
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
27+
28+
- name: Login to Docker Hub
29+
uses: docker/login-action@v3
30+
with:
31+
username: ${{ secrets.DOCKERHUB_USERNAME }}
32+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
33+
34+
- name: Build PHP-7.2 and Push
35+
uses: docker/build-push-action@v5
36+
with:
37+
context: php/7.2.33
38+
file: php/7.2.33/Dockerfile
39+
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
40+
push: true
41+
build-args:
42+
PHP_VERSION=${{ github.event.inputs.php_version }}
43+
INSTALL_PHP_EXTENSIONS_VERSION=${{ github.event.inputs.install_ext_version }}
44+
tags: |
45+
1panel/php:${{ github.event.inputs.php_version }}-fpm
46+
cache-from: type=gha
47+
cache-to: type=gha,mode=max

php/7.1.33/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#
44
# PLEASE DO NOT EDIT IT DIRECTLY.
55
#
6+
ARG INSTALL_EXT_VERSION
67
FROM php:7.1.33-fpm AS php-source
78

89
FROM debian:bullseye-slim
@@ -250,12 +251,13 @@ RUN set -eux; \
250251
COPY ./data/supervisor-4.2.5.tar.gz /tmp/
251252
COPY ./data/php-fpm.ini /etc/supervisor.d/php-fpm.ini
252253
COPY ./data/supervisord.conf /etc/supervisord.conf
253-
COPY ./data/install-php-extensions /usr/local/bin/
254-
COPY ./data/composer /usr/bin/composer
255254

256255
RUN apt-get update && \
257256
apt-get install -y python3 python3-pip git wget&& \
258-
rm -rf /var/lib/apt/lists/*
257+
rm -rf /var/lib/apt/lists/* && \
258+
curl -fsSL -o /usr/local/bin/install-php-extensions \
259+
https://github.com/mlocati/docker-php-extension-installer/releases/download/${INSTALL_EXT_VERSION}/install-php-extensions && \
260+
chmod uga+x /usr/local/bin/install-php-extensions
259261

260262
RUN cd /tmp && \
261263
tar -xzvf supervisor-4.2.5.tar.gz && \
@@ -268,9 +270,7 @@ RUN curl -o /tmp/composer-setup.php https://getcomposer.org/installer \
268270
&& mv /tmp/composer.phar /usr/bin/composer \
269271
&& chmod +x /usr/bin/composer \
270272
&& rm -rf /tmp/composer-setup.php
271-
272-
RUN chmod uga+x /usr/local/bin/install-php-extensions
273-
273+
274274
ENV COMPOSER_HOME=/tmp/.composer
275275

276276
RUN usermod -u 1000 www-data && groupmod -g 1000 www-data

php/7.1.33/data/composer

-2.86 MB
Binary file not shown.

0 commit comments

Comments
 (0)