Skip to content

Commit

Permalink
Upgrade to PHP v8.2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
zebby76 committed Sep 27, 2023
1 parent 48ff05c commit 786bfb3
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .build.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
DOCKER_IMAGE_NAME=docker.io/elasticms/base-php

# Default PHP Version
PHP_VERSION=8.2.8
PHP_VERSION=8.2.10

# Default Versions
NODE_VERSION=18
COMPOSER_VERSION=2.5.8
COMPOSER_VERSION=2.6.3
AWS_CLI_VERSION=1.27.133
PHP_EXT_REDIS_VERSION=5.3.7
PHP_EXT_REDIS_VERSION=6.0.1
PHP_EXT_APCU_VERSION=5.1.22
PHP_EXT_XDEBUG_VERSION=3.2.2
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG COMPOSER_VERSION_ARG

FROM composer:${COMPOSER_VERSION_ARG:-2.5.8} AS composer
FROM node:${NODE_VERSION_ARG:-18}-alpine3.18 AS node
FROM php:${VERSION_ARG:-8.2.8}-fpm-alpine3.18 AS fpm-prd
FROM php:${VERSION_ARG:-8.2.10}-fpm-alpine3.18 AS fpm-prd

# include(fpm-prd.m4)

Expand All @@ -29,7 +29,7 @@ FROM fpm-dev AS nginx-dev

# include(nginx.m4)

FROM php:${VERSION_ARG:-8.2.8}-cli-alpine3.18 AS cli-prd
FROM php:${VERSION_ARG:-8.2.10}-cli-alpine3.18 AS cli-prd

# include(cli-prd.m4)

Expand Down
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,49 +43,49 @@ Default value of Docker build arguments is grabbed from the [.build.env](.build.
## Example building __fpm__ variant __prd__ Docker image

```sh
make build-fpm PHP_VERSION=8.2.8
make build-fpm PHP_VERSION=8.2.10
```

__Provide docker image__ : `docker.io/elasticms/base-php:8.2.8-fpm-prd`
__Provide docker image__ : `docker.io/elasticms/base-php:8.2.10-fpm-prd`

```sh
make build-fpm PHP_VERSION=8.2.8 DOCKER_IMAGE_NAME=docker.io/lambdauser/mybasephpimage
make build-fpm PHP_VERSION=8.2.10 DOCKER_IMAGE_NAME=docker.io/lambdauser/mybasephpimage
```

__Provide docker image__ : `docker.io/lambdauser/mybasephpimage:8.2.8-fpm-prd`
__Provide docker image__ : `docker.io/lambdauser/mybasephpimage:8.2.10-fpm-prd`

## Example building __fpm__ variant __dev__ Docker image

```sh
make build-fpm-dev PHP_VERSION=8.2.8
make build-fpm-dev PHP_VERSION=8.2.10
```

__Provide docker image__ : `docker.io/elasticms/base-php:8.2.8-fpm-dev`
__Provide docker image__ : `docker.io/elasticms/base-php:8.2.10-fpm-dev`

## Example building __nginx__ variant __dev__ Docker image

```sh
make build-nginx-dev PHP_VERSION=8.2.8
make build-nginx-dev PHP_VERSION=8.2.10
```

__Provide docker image__ : `docker.io/elasticms/base-php:8.2.8-nginx-dev`
__Provide docker image__ : `docker.io/elasticms/base-php:8.2.10-nginx-dev`

## Example building __all__ variants Docker image

```sh
make build-all PHP_VERSION=8.2.8
make build-all PHP_VERSION=8.2.10
```

__Provide docker images__ :

- `docker.io/elasticms/base-php:8.2.8-fpm-prd`
- `docker.io/elasticms/base-php:8.2.8-fpm-dev`
- `docker.io/elasticms/base-php:8.2.8-apache-prd`
- `docker.io/elasticms/base-php:8.2.8-apache-dev`
- `docker.io/elasticms/base-php:8.2.8-nginx-prd`
- `docker.io/elasticms/base-php:8.2.8-nginx-dev`
- `docker.io/elasticms/base-php:8.2.8-cli-prd`
- `docker.io/elasticms/base-php:8.2.8-cli-dev`
- `docker.io/elasticms/base-php:8.2.10-fpm-prd`
- `docker.io/elasticms/base-php:8.2.10-fpm-dev`
- `docker.io/elasticms/base-php:8.2.10-apache-prd`
- `docker.io/elasticms/base-php:8.2.10-apache-dev`
- `docker.io/elasticms/base-php:8.2.10-nginx-prd`
- `docker.io/elasticms/base-php:8.2.10-nginx-dev`
- `docker.io/elasticms/base-php:8.2.10-cli-prd`
- `docker.io/elasticms/base-php:8.2.10-cli-dev`
# Test

## Prerequisite
Expand All @@ -101,13 +101,13 @@ make test[-fpm|-apache|-nginx|-cli|-all][-dev] PHP_VERSION=<PHP Version you want
## Example testing of __prd__ builded docker image

```sh
make test PHP_VERSION=8.2.8
make test PHP_VERSION=8.2.10
```

## Example testing of __dev__ builded docker image

```sh
make test-dev PHP_VERSION=8.2.8
make test-dev PHP_VERSION=8.2.10
```

# Releases
Expand Down
2 changes: 1 addition & 1 deletion test/tests.cli.bats
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ load "helpers/dataloaders"
load "lib/batslib"
load "lib/output"

export BATS_PHP_VERSION="${PHP_VERSION:-8.2.8}"
export BATS_PHP_VERSION="${PHP_VERSION:-8.2.10}"
export BATS_AWS_CLI_VERSION="${AWS_CLI_VERSION:-1.20.58}"

export BATS_PHP_DOCKER_IMAGE_NAME="${DOCKER_IMAGE_NAME:-docker.io/elasticms/base-php:8.2-cli}"
Expand Down

0 comments on commit 786bfb3

Please sign in to comment.