Skip to content

Commit

Permalink
Add PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Mar 24, 2024
1 parent 9311f18 commit 140c855
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ build-php-7.4: _docker-build-php74
build-php-8.0: _docker-build-php80
build-php-8.1: _docker-build-php81
build-php-8.2: _docker-build-php82
build-php-8.3: _docker-build-php83

build-node9: _docker-build-node9
build-node10: _docker-build-node10
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

| PHP | OS | Tag | Dockerfile |
|----------|--------------|--------|----------------------------------------------------------------------------|
| PHP 8.3 | Alpine v3.19 | php83 | [Dockerfile](https://github.com/dockette/ci/blob/master/php83/Dockerfile) |
| PHP 8.2 | Alpine v3.17 | php82 | [Dockerfile](https://github.com/dockette/ci/blob/master/php82/Dockerfile) |
| PHP 8.1 | Alpine v3.16 | php81 | [Dockerfile](https://github.com/dockette/ci/blob/master/php81/Dockerfile) |
| PHP 8.0 | Alpine v3.12 | php80 | [Dockerfile](https://github.com/dockette/ci/blob/master/php80/Dockerfile) |
Expand All @@ -48,6 +49,7 @@ All PHP images have a few preinstalled packages:
**Terminal**

```
docker run -it --rm -v $(pwd):/srv dockette/ci:php83
docker run -it --rm -v $(pwd):/srv dockette/ci:php82
docker run -it --rm -v $(pwd):/srv dockette/ci:php81
docker run -it --rm -v $(pwd):/srv dockette/ci:php80
Expand All @@ -63,6 +65,8 @@ docker run -it --rm -v $(pwd):/srv dockette/ci:php56

| NodeJS | OS | Tag | Dockerfile |
|-----------------|--------------|---------------|----------------------------------------------------------------------------|
| NodeJS 21 | Alpine v3.19 | node21 | [Dockerfile](https://github.com/dockette/ci/blob/master/node19/Dockerfile) |
| NodeJS 20 | Alpine v3.18 | node20 | [Dockerfile](https://github.com/dockette/ci/blob/master/node19/Dockerfile) |
| NodeJS 19 | Alpine v3.17 | node19 | [Dockerfile](https://github.com/dockette/ci/blob/master/node19/Dockerfile) |
| NodeJS 18 | Alpine v3.16 | node18 | [Dockerfile](https://github.com/dockette/ci/blob/master/node18/Dockerfile) |
| NodeJS 17 | Alpine v3.16 | node17 | [Dockerfile](https://github.com/dockette/ci/blob/master/node17/Dockerfile) |
Expand Down
87 changes: 87 additions & 0 deletions php83/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
FROM dockette/alpine:3.19

LABEL maintainer="Milan Sulc <sulcmil@gmail.com>"

ADD conf/php.ini /etc/php83/conf.d/999-php.ini

ENV PHP_DIR=/usr/bin
ENV PHP_BIN=$PHP_DIR/php
ENV PHP8_BIN=$PHP_DIR/php83
ENV PHPXD_BIN=$PHP_DIR/phpxd
ENV COMPOSER_DIR=/usr/bin/
ENV COMPOSER_BIN=$COMPOSER_DIR/composer
ENV TZ=Europe/Prague
ENV LD_PRELOAD="/usr/lib/preloadable_libiconv.so php"

RUN echo '@community http://dl-cdn.alpinelinux.org/alpine/v3.19/community/' >> /etc/apk/repositories && \
# DEPENDENCIES #############################################################
apk update && \
apk upgrade && \
apk --no-cache add \
bash \
git \
ca-certificates \
curl \
openssh \
tzdata \
make \
direnv \
gnu-libiconv@community && \
# PHP ######################################################################
apk --no-cache add \
php83@community \
php83-pecl-apcu@community \
php83-bcmath@community \
php83-bz2@community \
php83-calendar@community \
php83-cgi@community \
php83-ctype@community \
php83-curl@community \
php83-dom@community \
php83-exif@community \
php83-fileinfo@community \
php83-gd@community \
php83-gettext@community \
php83-iconv@community \
php83-pecl-imagick@community \
php83-imap@community \
php83-intl@community \
php83-ldap@community \
php83-mbstring@community \
php83-pecl-memcache@community \
php83-pecl-memcached@community \
php83-mysqli@community \
php83-mysqlnd@community \
php83-openssl@community \
php83-pcntl@community \
php83-pdo_mysql@community \
php83-pdo_pgsql@community \
php83-pdo_sqlite@community \
php83-pdo@community \
php83-pgsql@community \
php83-phar@community \
php83-posix@community \
php83-redis@community \
php83-session@community \
php83-simplexml@community \
php83-soap@community \
php83-sodium@community \
php83-sqlite3@community \
php83-tokenizer@community \
php83-xdebug@community \
php83-xml@community \
php83-xmlreader@community \
php83-xmlwriter@community \
php83-xsl@community \
php83-zip@community \
php83-zlib@community && \
sed -i -- 's/zend/;zend/g' /etc/php83/conf.d/50_xdebug.ini && \
echo "php -dzend_extension=xdebug.so \$@" >> $PHPXD_BIN && \
chmod +x $PHPXD_BIN && \
ln -s $PHP8_BIN $PHP_BIN && \
# COMPOSER #################################################################
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --2 && \
# CLEAN UP #################################################################
rm -rf /var/cache/apk/* /tmp/*

CMD php
22 changes: 22 additions & 0 deletions php83/conf/php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
; Update memory
memory_limit = 512M
upload_max_filesize = 2048M
post_max_size = 2048M

; No disabled functions
disable_functions =

; Dates
date.timezone=Europe/Prague

; Xdebug
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=0
xdebug.profiler_output_dir="/var/tmp"

; Errors
display_errors=1
display_startup_errors=1
error_reporting=E_ALL

0 comments on commit 140c855

Please sign in to comment.