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:
2323 sudo rm -rf tests/tmp/*
2424
2525up :
26+ docker-compose build
2627 docker-compose up -d
2728 docker-compose run --rm php bash -c ' chmod +rw -R tests/tmp'
2829 docker-compose run --rm php bash -c ' chmod +rw -R tests/codeception'
2930 docker-compose run --rm php bash -c ' mkdir -p tests/testapp/runtime && chmod +rw -R tests/testapp/runtime'
3031 docker-compose run --rm php bash -c ' chmod -R 777 tests/testapp/runtime' # TODO avoid 777
3132
33+ down :
34+ docker-compose down --remove-orphans
3235
3336cli :
3437 docker-compose exec php bash
Original file line number Diff line number Diff line change 11version : " 3.5"
22services :
33 php :
4- build : tests/docker
4+ build :
5+ context : tests/docker
6+ args :
7+ - BUILD_PHP_VERSION=${PHP_VERSION}
58 volumes :
69 - ./tests/tmp/.composer:/root/.composer:rw
710 - .:/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
26
37ENV INSIDE_DOCKER=1
48
You can’t perform that action at this time.
0 commit comments