Sign inSign up

roadiz/php-runner

By roadiz

•Updated 26 days ago

Gitlab CI / Github Actions PHP runner image

Image
Developer tools
1

4.0K

roadiz/php-runner repository overview

⁠Gitlab CI / Github Actions PHP runner image

This is image is a replacement for:

  • roadiz/php80-runner
  • roadiz/php81-runner
  • roadiz/php82-runner
  • roadiz/php83-runner

It does not include NodeJS runtime anymore.

⁠Available PHP extensions

  • composer
  • amqp
  • apcu
  • bcmath
  • bz2
  • calendar
  • dba
  • exif
  • gd
  • gettext
  • gmp
  • imap
  • intl
  • ldap
  • mysqli
  • opcache
  • pcntl
  • pdo
  • pdo_dblib
  • pdo_mysql
  • pdo_pgsql
  • pgsql
  • pspell
  • redis
  • shmop
  • snmp
  • soap
  • tidy
  • xdebug
  • xsl
  • zip
  • redis

⁠Building images

# Display all available targets
docker buildx bake --print runner

# Build all targets and push to Docker Hub
docker buildx bake runner --push

⁠Add your Gitlab Composer deploy token

Provide these environment variables to authorize Composer to download your private repositories from a Gitlab instance:

GITLAB_DOMAIN=gitlab.com
COMPOSER_DEPLOY_TOKEN_USER=gitlab-ci-token
COMPOSER_DEPLOY_TOKEN=your-token

Then this image will execute composer config --global gitlab-token.${GITLAB_DOMAIN} ${COMPOSER_DEPLOY_TOKEN_USER} ${COMPOSER_DEPLOY_TOKEN} before running any command.

⁠Add your Github Composer deploy token

Provide these environment variables to authorize Composer to download your private repositories from a Github:

COMPOSER_GITHUB=your-token

Then this image will execute composer config --global github-oauth.github.com "$COMPOSER_GITHUB" before running any command.

⁠Setting timezone

You can set the PHP timezone with TIMEZONE environment variable:

TIMEZONE=Europe/Paris

This does not change the docker image system timezone, only the PHP one.


Image repository: https://github.com/ambroisemaupate/docker/tree/master/php-runner⁠

Tag summary

Content type

Image

Digest

sha256:fc9787897…

Size

212.1 MB

Last updated

26 days ago

docker pull roadiz/php-runner:8.2