Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
php: ["8.2", "8.3", "8.4"]

steps:
-
Expand Down
2 changes: 1 addition & 1 deletion 8.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM php:8.2

MAINTAINER Open Swoole Group <hello@openswoole>
MAINTAINER Open Swoole Group <hello@openswoole.com>

RUN apt update -y

Expand Down
4 changes: 2 additions & 2 deletions 8.3-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM php:8.3.0RC5-cli-alpine3.18
FROM php:8.3-alpine

MAINTAINER Open Swoole Group <hello@swoole.co.uk>
MAINTAINER Open Swoole Group <hello@openswoole.com>

RUN apk update

Expand Down
4 changes: 2 additions & 2 deletions 8.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM php:8.3.0RC5-cli
FROM php:8.3

MAINTAINER Open Swoole Group <hello@swoole.co.uk>
MAINTAINER Open Swoole Group <hello@openswoole.com>

RUN apt update -y

Expand Down
64 changes: 64 additions & 0 deletions 8.4-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
FROM php:8.4-alpine

MAINTAINER Open Swoole Group <hello@openswoole.com>

RUN apk update

# common tools
RUN apk add --no-cache \
bash \
curl \
wget \
zip \
unzip \
git \
vim

# dev tools
RUN apk add --no-cache \
autoconf \
automake \
c-ares \
c-ares-dev \
dpkg \
dpkg-dev \
file \
g++ \
gcc \
libgcc \
libstdc++ \
libtool \
make \
openssl \
openssl-dev \
pcre-dev \
pkgconf \
re2c \
zlib \
zlib-dev \
libcurl \
libpq-dev \
curl-dev


# extensions
RUN docker-php-ext-install \
pdo_mysql \
mysqli \
opcache \
sockets \
pcntl && \
echo "opcache.enable_cli=1" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini && \
pecl install redis && docker-php-ext-enable redis

# install composer
ENV COMPOSER_ALLOW_SUPERUSER 1
RUN curl -sS https://getcomposer.org/installer | php && \
mv composer.phar /usr/local/bin/composer && \
composer self-update --clean-backups

# dev tools
RUN apk add --no-cache \
gdb \
strace \
valgrind
50 changes: 50 additions & 0 deletions 8.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
FROM php:8.4

MAINTAINER Open Swoole Group <hello@openswoole.com>

RUN apt update -y

RUN apt install -y \
procps \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
openssl \
libssh-dev \
libpcre3 \
libpcre3-dev \
libonig-dev \
libcurl4-openssl-dev \
libc-ares-dev \
libpq-dev \
curl \
wget \
zip \
unzip \
git \
vim

RUN docker-php-ext-install \
gd \
pdo_mysql \
mysqli \
opcache \
sockets \
pcntl && \
echo "opcache.enable_cli=1" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini && \
pecl install redis && docker-php-ext-enable redis

# install composer
ENV COMPOSER_ALLOW_SUPERUSER 1
RUN curl -sS https://getcomposer.org/installer | php && \
mv composer.phar /usr/local/bin/composer && \
composer self-update --clean-backups

# dev-tools
RUN apt install -y \
gdb \
strace \
valgrind

# clean up
RUN apt autoremove && apt clean
4 changes: 2 additions & 2 deletions generate
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function replace_hook_string(string $string, $from, $to): string
}

$standard_template = file_get_contents(__DIR__ . '/templates/standard/Dockerfile');
$standard_tags = ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', 'latest'];
$standard_tags = ['8.2', '8.3', '8.4', 'latest'];
foreach ($standard_tags as $tag) {
$content = replace_hook_string($standard_template, 'tag', $tag);
@mkdir(__DIR__ . '/' . $tag);
Expand All @@ -41,7 +41,7 @@ foreach ($standard_tags as $tag) {

// generate alpine
$alpine_template = file_get_contents(__DIR__ . '/templates/alpine/Dockerfile');
$alpine_tags = ['7.2-alpine', '7.3-alpine', '7.4-alpine', '8.0-alpine', '8.1-alpine', '8.2-alpine', '8.3-alpine', 'latest-alpine'];
$alpine_tags = ['8.2-alpine', '8.3-alpine', '8.4-alpine', 'latest-alpine'];
foreach ($alpine_tags as $tag) {
$content = replace_hook_string($alpine_template, 'tag', $tag);
@mkdir(__DIR__ . '/' . $tag);
Expand Down
2 changes: 1 addition & 1 deletion latest-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM php:latest-alpine

MAINTAINER Open Swoole Group <hello@swoole.co.uk>
MAINTAINER Open Swoole Group <hello@openswoole.com>

RUN apk update

Expand Down
2 changes: 1 addition & 1 deletion latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM php:latest

MAINTAINER Open Swoole Group <hello@swoole.co.uk>
MAINTAINER Open Swoole Group <hello@openswoole.com>

RUN apt update -y

Expand Down
2 changes: 1 addition & 1 deletion templates/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM php:{{tag}}

MAINTAINER Open Swoole Group <hello@swoole.co.uk>
MAINTAINER Open Swoole Group <hello@openswoole.com>

RUN apk update

Expand Down
2 changes: 1 addition & 1 deletion templates/standard/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM php:{{tag}}

MAINTAINER Open Swoole Group <hello@swoole.co.uk>
MAINTAINER Open Swoole Group <hello@openswoole.com>

RUN apt update -y

Expand Down
Loading