Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stayallive committed Jan 15, 2025
1 parent cbf874e commit aae0e2c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ They are listed as `stayallive/php` and tagged by PHP version for both `linux/am

## PHP versions

- [`stayallive/php:8.4` (*8.4.Dockerfile*)](https://github.com/stayallive/php-docker/blob/master/8.4.Dockerfile) (Node 20 & LTS)
- [`stayallive/php:8.4` (*8.4.Dockerfile*)](https://github.com/stayallive/php-docker/blob/master/8.4.Dockerfile) (Node LTS)
- [`stayallive/php:8.3` (*8.3.Dockerfile*)](https://github.com/stayallive/php-docker/blob/master/8.3.Dockerfile) (Node 20 & LTS)
- [`stayallive/php:8.2` (*8.2.Dockerfile*)](https://github.com/stayallive/php-docker/blob/master/8.2.Dockerfile) (Node 14 & LTS)
- [`stayallive/php:8.1` (*8.1.Dockerfile*)](https://github.com/stayallive/php-docker/blob/master/8.1.Dockerfile) (Node 14 & LTS)
Expand All @@ -52,13 +52,21 @@ before_script:
- n lts
```
Note: Starting with PHP 8.4 only the LTS version of Node is pre-cached.
You can use `n` to install any other Node version you need, but they will be downloaded each run and will not be pre-cached inside the image.

## Available extensions

Some extensions are enabled by default (compiled-in) and some you have to enable when needed.

Enable the extensions below by calling `docker-php-ext-enable` in for example your `.gitlab-ci.yml` `before_script` section:
You can enable extensions by adding the environment variable `WITH_EXTENSIONS` with a space separated list of extensions you want to enable.

```bash
WITH_EXTENSIONS=imagick redis
```

Alternatively you can enable the extensions by calling `docker-php-ext-enable` in for example your `.gitlab-ci.yml` `before_script` section:

```yaml
before_script:
Expand Down Expand Up @@ -203,6 +211,10 @@ before_script:

Enables xdebug extension (disabled by default)

### `WITH_EXTENSIONS=imagick redis`

Enable extensions, separated by space

### `TIMEZONE=Europe/Amsterdam`

Set system and `php.ini` timezone. You can also set timezone in .gitlab-ci.yml - check [Example](https://github.com/TetraWeb/docker/blob/master/examples/purephp/.gitlab-ci.yml)
Expand Down

0 comments on commit aae0e2c

Please sign in to comment.