Skip to content

Commit bba84af

Browse files
authored
Upgrade to php-8.1 image (#25)
* Upgrade to php-8.1 image * update cake image tag version to 4.4
1 parent 51ffaaa commit bba84af

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

.github/workflows/image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
fi
2525
TAGS="${DOCKER_IMAGE}:${VERSION}"
2626
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
27-
TAGS="$TAGS,${DOCKER_IMAGE}:4.2-latest"
27+
TAGS="$TAGS,${DOCKER_IMAGE}:4.4-latest"
2828
fi
2929
echo ::set-output name=tags::${TAGS}
3030
-

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#
22
# container
33
# @see https://hub.docker.com/repository/docker/cnizzardini/php-fpm-alpine
4-
# @see https://github.com/cnizzardini/php-fpm-alpine/tree/php-8.0
5-
FROM cnizzardini/php-fpm-alpine:8.0-latest AS cakephp_php
4+
# @see https://github.com/cnizzardini/php-fpm-alpine/tree/php-8.1
5+
FROM cnizzardini/php-fpm-alpine:8.1-latest AS cakephp_php
66

77
ARG ENV=prod
88
ARG UID=1000

README.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![CakePHP](https://img.shields.io/badge/cakephp-4-red?logo=cakephp)](https://book.cakephp.org/4/en/index.html)
55
[![Docker](https://img.shields.io/badge/docker-ffffff.svg?logo=docker)](.docker)
66
[![Kubernetes](https://img.shields.io/badge/kubernetes-D3D3D3.svg?logo=kubernetes)](.kube)
7-
[![PHP](https://img.shields.io/badge/php-8.0-8892BF.svg?logo=php)](https://hub.docker.com/_/php)
7+
[![PHP](https://img.shields.io/badge/php-8.1-8892BF.svg?logo=php)](https://hub.docker.com/_/php)
88
[![NGINX](https://img.shields.io/badge/nginx-1.19-009639.svg?logo=nginx)](https://hub.docker.com/_/nginx)
99
[![MySQL](https://img.shields.io/badge/mysql-8-00758F.svg?logo=mysql)](https://hub.docker.com/_/mysql)
1010

@@ -17,11 +17,11 @@ or [DevilBox](https://devilbox.readthedocs.io/en/latest/examples/setup-cakephp.h
1717
- [Docker 20](https://docs.docker.com/engine/release-notes/) or higher
1818
- Make
1919

20-
| Service | Host:Port | Docker Host | Image |
21-
| ----------- | ----------- | ----------- | ----------- |
22-
| PHP8.0-FPM w/ Xdebug 3 | - | php | [cnizzardini/php-fpm-alpine:8.0-latest](https://hub.docker.com/r/cnizzardini/php-fpm-alpine) |
23-
| NGINX 1.19 | localhost:8080 | web | [nginx:1.19-alpine](https://hub.docker.com/_/nginx) |
24-
| MySQL 8 | localhost:3607 | db | [library/mysql:8](https://hub.docker.com/_/mysql) |
20+
| Service | Host:Port | Docker Host | Image |
21+
|------------------------|----------------|-------------|----------------------------------------------------------------------------------------------|
22+
| PHP8.1-FPM w/ Xdebug 3 | - | php | [cnizzardini/php-fpm-alpine:8.1-latest](https://hub.docker.com/r/cnizzardini/php-fpm-alpine) |
23+
| NGINX 1.19 | localhost:8080 | web | [nginx:1.19-alpine](https://hub.docker.com/_/nginx) |
24+
| MySQL 8 | localhost:3607 | db | [library/mysql:8](https://hub.docker.com/_/mysql) |
2525

2626

2727
- [Installation](#installation)
@@ -65,26 +65,26 @@ After install browse to [http://localhost:8080](http://localhost:8080) to see th
6565
A [Makefile](Makefile) is provided with some optional commands for your convenience. Please review the Makefile as
6666
these commands are not exact aliases of docker-compose commands.
6767

68-
| Make Command | Description |
69-
| ----------- | ----------- |
70-
| `make` | Shows all make target commands |
71-
| `make init` | Runs docker build, docker-compose up, and copies over env files |
72-
| `make init.nocache` | Same as make.init but builds with --no-cache |
73-
| `make start` | Starts services `docker-compose -f .docker/docker-compose.yml start` |
74-
| `make stop` | Stops services `docker-compose -f .docker/docker-compose.yml stop` |
75-
| `make up` | Create and start containers `docker-compose -f .docker/docker-compose.yml up -d` |
76-
| `make down` | Take down and remove all containers `docker-compose -f .docker/docker-compose.yml down` |
77-
| `make restart` | Restarts services `docker-compose -f .docker/docker-compose.yml restart` |
78-
| `make php.sh` | PHP terminal `docker exec -it --user cakephp <PHP_CONTAINER> sh` |
79-
| `make php.restart` | Restarts the PHP container |
80-
| `make db.sh` | DB terminal `docker exec -it <DB_CONTAINER> sh` |
81-
| `make db.mysql` | MySQL terminal `mysql -u root -h 0.0.0.0 -p --port 3307` |
82-
| `make web.sh` | Web terminal `docker exec -it <WEB_CONTAINER> sh` |
83-
| `make xdebug.on` | Restarts PHP container with xdebug.mode set to debug,coverage |
84-
| `make xdebug.off` | Restarts PHP container with xdebug.mode set to off |
85-
| `make composer.install` | `docker exec <PHP_CONTAINER> composer install --no-interaction` |
86-
| `make composer.test` | `docker exec <PHP_CONTAINER> composer test` |
87-
| `make composer.check` | `docker exec <PHP_CONTAINER> composer check` |
68+
| Make Command | Description |
69+
|-------------------------|-----------------------------------------------------------------------------------------|
70+
| `make` | Shows all make target commands |
71+
| `make init` | Runs docker build, docker-compose up, and copies over env files |
72+
| `make init.nocache` | Same as make.init but builds with --no-cache |
73+
| `make start` | Starts services `docker-compose -f .docker/docker-compose.yml start` |
74+
| `make stop` | Stops services `docker-compose -f .docker/docker-compose.yml stop` |
75+
| `make up` | Create and start containers `docker-compose -f .docker/docker-compose.yml up -d` |
76+
| `make down` | Take down and remove all containers `docker-compose -f .docker/docker-compose.yml down` |
77+
| `make restart` | Restarts services `docker-compose -f .docker/docker-compose.yml restart` |
78+
| `make php.sh` | PHP terminal `docker exec -it --user cakephp <PHP_CONTAINER> sh` |
79+
| `make php.restart` | Restarts the PHP container |
80+
| `make db.sh` | DB terminal `docker exec -it <DB_CONTAINER> sh` |
81+
| `make db.mysql` | MySQL terminal `mysql -u root -h 0.0.0.0 -p --port 3307` |
82+
| `make web.sh` | Web terminal `docker exec -it <WEB_CONTAINER> sh` |
83+
| `make xdebug.on` | Restarts PHP container with xdebug.mode set to debug,coverage |
84+
| `make xdebug.off` | Restarts PHP container with xdebug.mode set to off |
85+
| `make composer.install` | `docker exec <PHP_CONTAINER> composer install --no-interaction` |
86+
| `make composer.test` | `docker exec <PHP_CONTAINER> composer test` |
87+
| `make composer.check` | `docker exec <PHP_CONTAINER> composer check` |
8888

8989
### PHP
9090

0 commit comments

Comments
 (0)