Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env-example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UID=1000
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
tests/_support
tests/_output
tests/cases/yii2-app-advanced/_data/db.sqlite
.env
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ARG PHP_VERSION="8.3-alpine"

FROM php:$PHP_VERSION

ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/

RUN chmod +x /usr/local/bin/install-php-extensions \
&& apk add --no-cache git \
&& install-php-extensions gd intl zip intl pcov @composer

WORKDIR /var/www/html
39 changes: 39 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
services:
php8.0: &phpbase
user: ${UID:-1000}
volumes:
# Mount source-code for development
- ./:/var/www/html
env_file:
- .env
environment:
- XDEBUG_CONFIG=client_host=host.docker.internal
extra_hosts:
- "host.docker.internal:host-gateway"
build:
context: ./
dockerfile: Dockerfile
args:
- PHP_VERSION=8.0-alpine

php8.1:
<<: *phpbase
build:
args:
- PHP_VERSION=8.1-alpine
php8.2:
<<: *phpbase
build:
args:
- PHP_VERSION=8.2-alpine

php8.3:
<<: *phpbase
build:
args:
- PHP_VERSION=8.3-alpine
php8.4:
<<: *phpbase
build:
args:
- PHP_VERSION=8.4-alpine
8 changes: 8 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,11 @@ composer require "codeception/module-yii2" --dev
`Codeception Module Yii2` is open-sourced software licensed under the [MIT](/LICENSE) License.

© Codeception PHP Testing Framework

## Test with docker-compose

```bash
docker-compose run php8.4 composer install
docker-compose run php8.4 vendor/bin/codecept build
docker-compose run php8.4 vendor/bin/codecept run
```