Files
yii2/tests/docker-compose.yml
Tobias Munk b9fc1f3ca6 Build image in dockerized tests with BUILD_ARG (#15559)
* added build argument for Yii 2.0 PHP base image version
- streamlined build
- dropped network config for CI
- updated local test script

* added default for PHP (7.2) image on GitLab CI

* use PHP 7.1 as a default on GitLab CI, see https://github.com/yiisoft/yii2/issues/15512
2018-02-05 17:57:06 +07:00

20 lines
566 B
YAML

version: '2'
services:
php:
build:
context: ..
args:
DOCKER_YII2_PHP_IMAGE: ${DOCKER_YII2_PHP_IMAGE}
working_dir: /project
volumes:
- ../tests/data/config-docker.php:/project/tests/data/config.php
# Enable for debugging, enabling tests might be slow for file access (data) on host-volume
#- ../tests:/project/tests
# - ../framework:/project/framework
# Tmpfs volume (experimental, asset tests may fail)
#tmpfs:
# - /project/tests/runtime
environment:
- TEST_RUNTIME_PATH=/tmp/runtime