mirror of
https://github.com/phpmyadmin/docker.git
synced 2026-08-24 10:13:22 -05:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc38d23ff1 | ||
|
|
739bbbbe8c | ||
|
|
6bfaf085b4 | ||
|
|
04b3786429 | ||
|
|
5e91d468ca | ||
|
|
0c64340e5d | ||
|
|
24c2f1f855 |
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
|
||||
## [5.2.3] - 2025-10-08
|
||||
|
||||
- Update to PHP 8.3
|
||||
- Enable the `uploadprogress` extension
|
||||
|
||||
## [5.2.2] - 2025-01-21
|
||||
|
||||
- Add `TZ` env var to change PHP `date.timezone` (#133)
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
FROM php:%%PHP_VERSION%%-%%VARIANT%%
|
||||
|
||||
ENV UPLOAD_PROGRESS_EXT_URL="https://github.com/php/pecl-php-uploadprogress/archive/refs/tags/uploadprogress-2.0.2.tar.gz"
|
||||
ENV UPLOAD_PROGRESS_SHA256="fe3f6cdfcedad563c970c4fd1cda31e422cfc0df5cc9a217d8c80ed3c8d137f5"
|
||||
|
||||
# install and docker-entrypoint.sh dependencies
|
||||
RUN apk add --no-cache \
|
||||
bash \
|
||||
@@ -19,6 +22,11 @@ RUN set -ex; \
|
||||
libzip-dev \
|
||||
; \
|
||||
\
|
||||
mkdir -p /usr/src/php/ext/uploadprogress; \
|
||||
curl -fsSL -o uploadprogress.tar.gz "$UPLOAD_PROGRESS_EXT_URL"; \
|
||||
echo "$UPLOAD_PROGRESS_SHA256 uploadprogress.tar.gz" | sha256sum -c -; \
|
||||
tar -xf uploadprogress.tar.gz -C /usr/src/php/ext/uploadprogress --strip-components=1; \
|
||||
\
|
||||
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \
|
||||
docker-php-ext-install -j "$(nproc)" \
|
||||
bz2 \
|
||||
@@ -27,8 +35,11 @@ RUN set -ex; \
|
||||
opcache \
|
||||
zip \
|
||||
bcmath \
|
||||
uploadprogress \
|
||||
; \
|
||||
\
|
||||
rm -r /usr/src/php/ext/uploadprogress; \
|
||||
\
|
||||
runDeps="$( \
|
||||
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \
|
||||
| tr ',' '\n' \
|
||||
@@ -40,12 +51,12 @@ RUN set -ex; \
|
||||
|
||||
# set recommended PHP.ini settings
|
||||
# see https://secure.php.net/manual/en/opcache.installation.php
|
||||
ENV PMA_SSL_DIR /etc/phpmyadmin/ssl
|
||||
ENV MAX_EXECUTION_TIME 600
|
||||
ENV MEMORY_LIMIT 512M
|
||||
ENV UPLOAD_LIMIT 2048K
|
||||
ENV TZ UTC
|
||||
ENV SESSION_SAVE_PATH /sessions
|
||||
ENV PMA_SSL_DIR=/etc/phpmyadmin/ssl
|
||||
ENV MAX_EXECUTION_TIME=600
|
||||
ENV MEMORY_LIMIT=512M
|
||||
ENV UPLOAD_LIMIT=2048K
|
||||
ENV TZ=UTC
|
||||
ENV SESSION_SAVE_PATH=/sessions
|
||||
RUN set -ex; \
|
||||
mkdir $SESSION_SAVE_PATH; \
|
||||
mkdir -p $PMA_SSL_DIR; \
|
||||
@@ -82,9 +93,9 @@ RUN set -ex; \
|
||||
USER www-data:www-data
|
||||
|
||||
# Calculate download URL
|
||||
ENV VERSION %%VERSION%%
|
||||
ENV SHA256 %%SHA256%%
|
||||
ENV URL https://files.phpmyadmin.net/phpMyAdmin/${VERSION}/phpMyAdmin-${VERSION}-all-languages.tar.xz
|
||||
ENV VERSION=%%VERSION%%
|
||||
ENV SHA256=%%SHA256%%
|
||||
ENV URL=https://files.phpmyadmin.net/phpMyAdmin/${VERSION}/phpMyAdmin-${VERSION}-all-languages.tar.xz
|
||||
|
||||
LABEL org.opencontainers.image.title="Official phpMyAdmin Docker image" \
|
||||
org.opencontainers.image.description="Run phpMyAdmin with Alpine, Apache and PHP FPM." \
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
FROM php:%%PHP_VERSION%%-%%VARIANT%%
|
||||
|
||||
ENV UPLOAD_PROGRESS_EXT_URL="https://github.com/php/pecl-php-uploadprogress/archive/refs/tags/uploadprogress-2.0.2.tar.gz"
|
||||
ENV UPLOAD_PROGRESS_SHA256="fe3f6cdfcedad563c970c4fd1cda31e422cfc0df5cc9a217d8c80ed3c8d137f5"
|
||||
|
||||
# Install dependencies
|
||||
RUN set -ex; \
|
||||
\
|
||||
@@ -21,6 +24,11 @@ RUN set -ex; \
|
||||
libzip-dev \
|
||||
; \
|
||||
\
|
||||
mkdir -p /usr/src/php/ext/uploadprogress; \
|
||||
curl -fsSL -o uploadprogress.tar.gz "$UPLOAD_PROGRESS_EXT_URL"; \
|
||||
echo "$UPLOAD_PROGRESS_SHA256 uploadprogress.tar.gz" | sha256sum -c -; \
|
||||
tar -xf uploadprogress.tar.gz -C /usr/src/php/ext/uploadprogress --strip-components=1; \
|
||||
\
|
||||
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \
|
||||
docker-php-ext-install -j "$(nproc)" \
|
||||
bz2 \
|
||||
@@ -29,8 +37,11 @@ RUN set -ex; \
|
||||
opcache \
|
||||
zip \
|
||||
bcmath \
|
||||
uploadprogress \
|
||||
; \
|
||||
\
|
||||
rm -r /usr/src/php/ext/uploadprogress; \
|
||||
\
|
||||
apt-mark auto '.*' > /dev/null; \
|
||||
apt-mark manual $savedAptMark; \
|
||||
extdir="$(php -r 'echo ini_get("extension_dir");')"; \
|
||||
@@ -55,12 +66,12 @@ RUN set -ex; \
|
||||
|
||||
# set recommended PHP.ini settings
|
||||
# see https://secure.php.net/manual/en/opcache.installation.php
|
||||
ENV PMA_SSL_DIR /etc/phpmyadmin/ssl
|
||||
ENV MAX_EXECUTION_TIME 600
|
||||
ENV MEMORY_LIMIT 512M
|
||||
ENV UPLOAD_LIMIT 2048K
|
||||
ENV TZ UTC
|
||||
ENV SESSION_SAVE_PATH /sessions
|
||||
ENV PMA_SSL_DIR=/etc/phpmyadmin/ssl
|
||||
ENV MAX_EXECUTION_TIME=600
|
||||
ENV MEMORY_LIMIT=512M
|
||||
ENV UPLOAD_LIMIT=2048K
|
||||
ENV TZ=UTC
|
||||
ENV SESSION_SAVE_PATH=/sessions
|
||||
RUN set -ex; \
|
||||
mkdir $SESSION_SAVE_PATH; \
|
||||
mkdir -p $PMA_SSL_DIR; \
|
||||
@@ -97,9 +108,9 @@ RUN set -ex; \
|
||||
USER www-data:www-data
|
||||
|
||||
# Calculate download URL
|
||||
ENV VERSION %%VERSION%%
|
||||
ENV SHA256 %%SHA256%%
|
||||
ENV URL https://files.phpmyadmin.net/phpMyAdmin/${VERSION}/phpMyAdmin-${VERSION}-all-languages.tar.xz
|
||||
ENV VERSION=%%VERSION%%
|
||||
ENV SHA256=%%SHA256%%
|
||||
ENV URL=https://files.phpmyadmin.net/phpMyAdmin/${VERSION}/phpMyAdmin-${VERSION}-all-languages.tar.xz
|
||||
|
||||
LABEL org.opencontainers.image.title="Official phpMyAdmin Docker image" \
|
||||
org.opencontainers.image.description="Run phpMyAdmin with Alpine, Apache and PHP FPM." \
|
||||
|
||||
+21
-10
@@ -1,5 +1,8 @@
|
||||
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
|
||||
FROM php:8.2-apache
|
||||
FROM php:8.3-apache
|
||||
|
||||
ENV UPLOAD_PROGRESS_EXT_URL="https://github.com/php/pecl-php-uploadprogress/archive/refs/tags/uploadprogress-2.0.2.tar.gz"
|
||||
ENV UPLOAD_PROGRESS_SHA256="fe3f6cdfcedad563c970c4fd1cda31e422cfc0df5cc9a217d8c80ed3c8d137f5"
|
||||
|
||||
# Install dependencies
|
||||
RUN set -ex; \
|
||||
@@ -22,6 +25,11 @@ RUN set -ex; \
|
||||
libzip-dev \
|
||||
; \
|
||||
\
|
||||
mkdir -p /usr/src/php/ext/uploadprogress; \
|
||||
curl -fsSL -o uploadprogress.tar.gz "$UPLOAD_PROGRESS_EXT_URL"; \
|
||||
echo "$UPLOAD_PROGRESS_SHA256 uploadprogress.tar.gz" | sha256sum -c -; \
|
||||
tar -xf uploadprogress.tar.gz -C /usr/src/php/ext/uploadprogress --strip-components=1; \
|
||||
\
|
||||
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \
|
||||
docker-php-ext-install -j "$(nproc)" \
|
||||
bz2 \
|
||||
@@ -30,8 +38,11 @@ RUN set -ex; \
|
||||
opcache \
|
||||
zip \
|
||||
bcmath \
|
||||
uploadprogress \
|
||||
; \
|
||||
\
|
||||
rm -r /usr/src/php/ext/uploadprogress; \
|
||||
\
|
||||
apt-mark auto '.*' > /dev/null; \
|
||||
apt-mark manual $savedAptMark; \
|
||||
extdir="$(php -r 'echo ini_get("extension_dir");')"; \
|
||||
@@ -56,12 +67,12 @@ RUN set -ex; \
|
||||
|
||||
# set recommended PHP.ini settings
|
||||
# see https://secure.php.net/manual/en/opcache.installation.php
|
||||
ENV PMA_SSL_DIR /etc/phpmyadmin/ssl
|
||||
ENV MAX_EXECUTION_TIME 600
|
||||
ENV MEMORY_LIMIT 512M
|
||||
ENV UPLOAD_LIMIT 2048K
|
||||
ENV TZ UTC
|
||||
ENV SESSION_SAVE_PATH /sessions
|
||||
ENV PMA_SSL_DIR=/etc/phpmyadmin/ssl
|
||||
ENV MAX_EXECUTION_TIME=600
|
||||
ENV MEMORY_LIMIT=512M
|
||||
ENV UPLOAD_LIMIT=2048K
|
||||
ENV TZ=UTC
|
||||
ENV SESSION_SAVE_PATH=/sessions
|
||||
RUN set -ex; \
|
||||
mkdir $SESSION_SAVE_PATH; \
|
||||
mkdir -p $PMA_SSL_DIR; \
|
||||
@@ -98,9 +109,9 @@ RUN set -ex; \
|
||||
USER www-data:www-data
|
||||
|
||||
# Calculate download URL
|
||||
ENV VERSION 5.2.2
|
||||
ENV SHA256 f881819a3b11e653b0212afaf0cc105db85c767715cb3f5852670f7fc36c9669
|
||||
ENV URL https://files.phpmyadmin.net/phpMyAdmin/${VERSION}/phpMyAdmin-${VERSION}-all-languages.tar.xz
|
||||
ENV VERSION=5.2.3
|
||||
ENV SHA256=57881348297c4412f86c410547cf76b4d8a236574dd2c6b7d6a2beebe7fc44e3
|
||||
ENV URL=https://files.phpmyadmin.net/phpMyAdmin/${VERSION}/phpMyAdmin-${VERSION}-all-languages.tar.xz
|
||||
|
||||
LABEL org.opencontainers.image.title="Official phpMyAdmin Docker image" \
|
||||
org.opencontainers.image.description="Run phpMyAdmin with Alpine, Apache and PHP FPM." \
|
||||
|
||||
+21
-10
@@ -1,5 +1,8 @@
|
||||
# DO NOT EDIT: created by update.sh from Dockerfile-alpine.template
|
||||
FROM php:8.2-fpm-alpine
|
||||
FROM php:8.3-fpm-alpine
|
||||
|
||||
ENV UPLOAD_PROGRESS_EXT_URL="https://github.com/php/pecl-php-uploadprogress/archive/refs/tags/uploadprogress-2.0.2.tar.gz"
|
||||
ENV UPLOAD_PROGRESS_SHA256="fe3f6cdfcedad563c970c4fd1cda31e422cfc0df5cc9a217d8c80ed3c8d137f5"
|
||||
|
||||
# install and docker-entrypoint.sh dependencies
|
||||
RUN apk add --no-cache \
|
||||
@@ -20,6 +23,11 @@ RUN set -ex; \
|
||||
libzip-dev \
|
||||
; \
|
||||
\
|
||||
mkdir -p /usr/src/php/ext/uploadprogress; \
|
||||
curl -fsSL -o uploadprogress.tar.gz "$UPLOAD_PROGRESS_EXT_URL"; \
|
||||
echo "$UPLOAD_PROGRESS_SHA256 uploadprogress.tar.gz" | sha256sum -c -; \
|
||||
tar -xf uploadprogress.tar.gz -C /usr/src/php/ext/uploadprogress --strip-components=1; \
|
||||
\
|
||||
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \
|
||||
docker-php-ext-install -j "$(nproc)" \
|
||||
bz2 \
|
||||
@@ -28,8 +36,11 @@ RUN set -ex; \
|
||||
opcache \
|
||||
zip \
|
||||
bcmath \
|
||||
uploadprogress \
|
||||
; \
|
||||
\
|
||||
rm -r /usr/src/php/ext/uploadprogress; \
|
||||
\
|
||||
runDeps="$( \
|
||||
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \
|
||||
| tr ',' '\n' \
|
||||
@@ -41,12 +52,12 @@ RUN set -ex; \
|
||||
|
||||
# set recommended PHP.ini settings
|
||||
# see https://secure.php.net/manual/en/opcache.installation.php
|
||||
ENV PMA_SSL_DIR /etc/phpmyadmin/ssl
|
||||
ENV MAX_EXECUTION_TIME 600
|
||||
ENV MEMORY_LIMIT 512M
|
||||
ENV UPLOAD_LIMIT 2048K
|
||||
ENV TZ UTC
|
||||
ENV SESSION_SAVE_PATH /sessions
|
||||
ENV PMA_SSL_DIR=/etc/phpmyadmin/ssl
|
||||
ENV MAX_EXECUTION_TIME=600
|
||||
ENV MEMORY_LIMIT=512M
|
||||
ENV UPLOAD_LIMIT=2048K
|
||||
ENV TZ=UTC
|
||||
ENV SESSION_SAVE_PATH=/sessions
|
||||
RUN set -ex; \
|
||||
mkdir $SESSION_SAVE_PATH; \
|
||||
mkdir -p $PMA_SSL_DIR; \
|
||||
@@ -83,9 +94,9 @@ RUN set -ex; \
|
||||
USER www-data:www-data
|
||||
|
||||
# Calculate download URL
|
||||
ENV VERSION 5.2.2
|
||||
ENV SHA256 f881819a3b11e653b0212afaf0cc105db85c767715cb3f5852670f7fc36c9669
|
||||
ENV URL https://files.phpmyadmin.net/phpMyAdmin/${VERSION}/phpMyAdmin-${VERSION}-all-languages.tar.xz
|
||||
ENV VERSION=5.2.3
|
||||
ENV SHA256=57881348297c4412f86c410547cf76b4d8a236574dd2c6b7d6a2beebe7fc44e3
|
||||
ENV URL=https://files.phpmyadmin.net/phpMyAdmin/${VERSION}/phpMyAdmin-${VERSION}-all-languages.tar.xz
|
||||
|
||||
LABEL org.opencontainers.image.title="Official phpMyAdmin Docker image" \
|
||||
org.opencontainers.image.description="Run phpMyAdmin with Alpine, Apache and PHP FPM." \
|
||||
|
||||
+21
-10
@@ -1,5 +1,8 @@
|
||||
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
|
||||
FROM php:8.2-fpm
|
||||
FROM php:8.3-fpm
|
||||
|
||||
ENV UPLOAD_PROGRESS_EXT_URL="https://github.com/php/pecl-php-uploadprogress/archive/refs/tags/uploadprogress-2.0.2.tar.gz"
|
||||
ENV UPLOAD_PROGRESS_SHA256="fe3f6cdfcedad563c970c4fd1cda31e422cfc0df5cc9a217d8c80ed3c8d137f5"
|
||||
|
||||
# Install dependencies
|
||||
RUN set -ex; \
|
||||
@@ -22,6 +25,11 @@ RUN set -ex; \
|
||||
libzip-dev \
|
||||
; \
|
||||
\
|
||||
mkdir -p /usr/src/php/ext/uploadprogress; \
|
||||
curl -fsSL -o uploadprogress.tar.gz "$UPLOAD_PROGRESS_EXT_URL"; \
|
||||
echo "$UPLOAD_PROGRESS_SHA256 uploadprogress.tar.gz" | sha256sum -c -; \
|
||||
tar -xf uploadprogress.tar.gz -C /usr/src/php/ext/uploadprogress --strip-components=1; \
|
||||
\
|
||||
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \
|
||||
docker-php-ext-install -j "$(nproc)" \
|
||||
bz2 \
|
||||
@@ -30,8 +38,11 @@ RUN set -ex; \
|
||||
opcache \
|
||||
zip \
|
||||
bcmath \
|
||||
uploadprogress \
|
||||
; \
|
||||
\
|
||||
rm -r /usr/src/php/ext/uploadprogress; \
|
||||
\
|
||||
apt-mark auto '.*' > /dev/null; \
|
||||
apt-mark manual $savedAptMark; \
|
||||
extdir="$(php -r 'echo ini_get("extension_dir");')"; \
|
||||
@@ -53,12 +64,12 @@ RUN set -ex; \
|
||||
|
||||
# set recommended PHP.ini settings
|
||||
# see https://secure.php.net/manual/en/opcache.installation.php
|
||||
ENV PMA_SSL_DIR /etc/phpmyadmin/ssl
|
||||
ENV MAX_EXECUTION_TIME 600
|
||||
ENV MEMORY_LIMIT 512M
|
||||
ENV UPLOAD_LIMIT 2048K
|
||||
ENV TZ UTC
|
||||
ENV SESSION_SAVE_PATH /sessions
|
||||
ENV PMA_SSL_DIR=/etc/phpmyadmin/ssl
|
||||
ENV MAX_EXECUTION_TIME=600
|
||||
ENV MEMORY_LIMIT=512M
|
||||
ENV UPLOAD_LIMIT=2048K
|
||||
ENV TZ=UTC
|
||||
ENV SESSION_SAVE_PATH=/sessions
|
||||
RUN set -ex; \
|
||||
mkdir $SESSION_SAVE_PATH; \
|
||||
mkdir -p $PMA_SSL_DIR; \
|
||||
@@ -95,9 +106,9 @@ RUN set -ex; \
|
||||
USER www-data:www-data
|
||||
|
||||
# Calculate download URL
|
||||
ENV VERSION 5.2.2
|
||||
ENV SHA256 f881819a3b11e653b0212afaf0cc105db85c767715cb3f5852670f7fc36c9669
|
||||
ENV URL https://files.phpmyadmin.net/phpMyAdmin/${VERSION}/phpMyAdmin-${VERSION}-all-languages.tar.xz
|
||||
ENV VERSION=5.2.3
|
||||
ENV SHA256=57881348297c4412f86c410547cf76b4d8a236574dd2c6b7d6a2beebe7fc44e3
|
||||
ENV URL=https://files.phpmyadmin.net/phpMyAdmin/${VERSION}/phpMyAdmin-${VERSION}-all-languages.tar.xz
|
||||
|
||||
LABEL org.opencontainers.image.title="Official phpMyAdmin Docker image" \
|
||||
org.opencontainers.image.description="Run phpMyAdmin with Alpine, Apache and PHP FPM." \
|
||||
|
||||
@@ -67,7 +67,7 @@ latest="$(curl -fsSL 'https://www.phpmyadmin.net/home_page/version.json' | jq -r
|
||||
|
||||
for variant in apache fpm fpm-alpine; do
|
||||
commit="$(dirCommit "$variant")"
|
||||
fullversion="$(git show "$commit":"$variant/Dockerfile" | awk '$1 == "ENV" && $2 == "VERSION" { print $3; exit }')"
|
||||
fullversion="$(git show "$commit":"$variant/Dockerfile" | awk -F" |=" '$1 == "ENV" && $2 == "VERSION" { print $3; exit }')"
|
||||
|
||||
versionAliases=( "$fullversion" "${fullversion%.*}" "${fullversion%.*.*}" )
|
||||
if [ "$fullversion" = "$latest" ]; then
|
||||
|
||||
Reference in New Issue
Block a user