Skip to content

Commit

Permalink
🔀 Merge pull request #35 from likesistemas/feature/php82
Browse files Browse the repository at this point in the history
✨ Add support to PHP 8.2
  • Loading branch information
ricardoapaes authored Jan 9, 2023
2 parents bb7c7f3 + 4981df5 commit 7c2eba0
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
test:
strategy:
matrix:
PHP: [56, 73, 74, 80, 81]
PHP: [56, 73, 74, 80, 81, 82]
runs-on: ubuntu-latest

steps:
Expand All @@ -33,6 +33,7 @@ jobs:
echo "VERSAO=${PHP_VERSION}-dev" >> .env
ln -s www73 www74
ln -s www80 www81
ln -s www80 www82
- name: Run tests
env:
Expand Down Expand Up @@ -192,9 +193,23 @@ jobs:
file: ./Dockerfile-80
push: true
build-args: |
PHP_VERSION=8.1-rc-fpm
PHP_VERSION=8.1-fpm
tags: |
likesistemas/php:81
likesistemas/php:8.1
ghcr.io/likesistemas/php:81
ghcr.io/likesistemas/php:8.1
- name: PHP 8.2 -> Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile-80
push: true
build-args: |
PHP_VERSION=8.2-fpm
tags: |
likesistemas/php:82
likesistemas/php:8.2
ghcr.io/likesistemas/php:82
ghcr.io/likesistemas/php:8.2
79 changes: 79 additions & 0 deletions docker-compose-82.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
version: '3.5'
networks:
php:
name: php
driver: bridge

services:

app:
build:
context: .
dockerfile: Dockerfile-80
args:
- PHP_VERSION=8.2-fpm
image: likesistemas/php:82-dev
container_name: php_app
command: chmod +x /var/www/create-temp.sh && /var/www/create-temp.sh
environment:
- PHP_NAME=lemp
- PHP_PM=dynamic
- PHP_PM_MAX_CHILDREN=2
- PHP_PM_START_SERVERS=1
- PHP_PM_MIN_SPARE_SERVERS=1
- PHP_PM_MAX_SPARE_SERVERS=1
- PHP_PM_MAX_REQUESTS=500
- DB_HOST=mysql
- INSTALL_COMPOSER=true
- COMPOSER_INSTALL=true
- DB_MIGRATE=true
- DB_SEED=true
- SHOW_ERRORS=true
- CODECOMMIT_HOST=${CODECOMMIT_HOST:-git-codecommit.us-east-1.amazonaws.com}
- GITHUB_TOKEN=$GITHUB_TOKEN
- CODECOMMIT_USER=$CODECOMMIT_USER
- CODECOMMIT_PASSWORD=$CODECOMMIT_PASSWORD
- JIT=true
- OPCACHE_PRELOAD=/var/www/preloader.php
volumes:
- ./www80/:/var/www/
- ./events/:/var/events/
networks:
- php
links:
- mysql
depends_on:
- mysql

mysql:
image: mysql:5.5
command: --innodb-use-native-aio=0
volumes:
- php-mysql-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=php
networks:
- php

nginx:
image: likesistemas/nginx:latest
container_name: php_nginx
restart: on-failure
environment:
- HOST_PHP=php_app
- PORTA_PHP=9000
- INDEX_FILE=index.php
ports:
- 80:80
volumes:
- ./www80/:/var/www/
links:
- app
depends_on:
- app
networks:
- php

volumes:
php-mysql-data:

0 comments on commit 7c2eba0

Please sign in to comment.