File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 11# set user to "root" to run commands as root in docker
22USER =$$(whoami )
33# The docker command to execute commands directly in docker
4- DOCKER =docker-compose exec -- user=$(USER ) backend-php
4+ DOCKER =docker-compose exec -T -- user=" $(USER ) " backend-php
55# The PHP binary to use, you may add arguments to PHP here
66PHP =php
77# directories writeable by webserver
88WRITEABLE_DIRS =/app/runtime /app/logs /app/backend/web/assets
99
10+ TESTCASE =
11+ COMMAND =
1012
1113# default target lists general usage information
1214default :
4345# run bash inside docker container
4446bash : cli
4547cli :
46- $(DOCKER ) bash
48+ docker-compose exec --user=" $( USER) " backend-php bash
49+
50+ run :
51+ $(DOCKER ) sh -c ' $(COMMAND)'
4752
4853start-docker : docker-compose.override.yml runtime/build-docker config/components-dev.local.php backend/config/cookie-validation.key env.php stop
4954 docker-compose up -d
@@ -79,7 +84,7 @@ backend/config/cookie-validation.key:
7984# # Docker Runtime Tests ##
8085
8186test : tests/_data/dump.sql
82- $(DOCKER ) vendor/bin/codecept run
87+ $(DOCKER ) vendor/bin/codecept run $( TESTCASE )
8388
8489clean :
8590 rm -rf tests/_data/dump.sql
You can’t perform that action at this time.
0 commit comments