File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,15 @@ clean_all:
23
23
sudo rm -rf tests/tmp/*
24
24
25
25
up :
26
+ docker-compose build
26
27
docker-compose up -d
27
28
docker-compose run --rm php bash -c ' chmod +rw -R tests/tmp'
28
29
docker-compose run --rm php bash -c ' chmod +rw -R tests/codeception'
29
30
docker-compose run --rm php bash -c ' mkdir -p tests/testapp/runtime && chmod +rw -R tests/testapp/runtime'
30
31
docker-compose run --rm php bash -c ' chmod -R 777 tests/testapp/runtime' # TODO avoid 777
31
32
33
+ down :
34
+ docker-compose down --remove-orphans
32
35
33
36
cli :
34
37
docker-compose exec php bash
Original file line number Diff line number Diff line change 1
1
version : " 3.5"
2
2
services :
3
3
php :
4
- build : tests/docker
4
+ build :
5
+ context : tests/docker
6
+ args :
7
+ - BUILD_PHP_VERSION=${PHP_VERSION}
5
8
volumes :
6
9
- ./tests/tmp/.composer:/root/.composer:rw
7
10
- .:/app
Original file line number Diff line number Diff line change 1
- FROM yiisoftware/yii2-php:8.0-apache
1
+ ARG BUILD_PHP_VERSION
2
+
3
+ FROM yiisoftware/yii2-php:${BUILD_PHP_VERSION}-apache
4
+
5
+ ARG BUILD_PHP_VERSION
2
6
3
7
ENV INSIDE_DOCKER=1
4
8
You can’t perform that action at this time.
0 commit comments