You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script was created to easily run any command inside any container. First parameter will be the container name and second one will be the command. Example:
As most of the commands using the `moodle-docker-bash` script will be run on the `webserver` container, this is a shortcut of that script that runs the commands only in the `webserver` container. Example:
This script was created to be automatically installed in the webserver container and to easily run any install command. First parameter will be the database to install (moodle, phpunit or behat) and the rest will be all the parameters that want to be used to override the default one. Note that this script needs to be run either withing the container shell or using `moodle-docker-bash`. Examples:
215
+
```bash
216
+
~$ bin/mbash minstall moodle --fullname="Moodle first instance" --adminpass="admin"
You are already using the latest available Composer version 2.1.8 (stable channel).
228
+
Installing dependencies from lock file (including require-dev)
229
+
```
230
+
231
+
### mtest
232
+
This script was created to be automatically installed in the webserver container and to easily run any test command. First parameter will be the tests to be run (phpunit or behat) and the rest will be all the parameters that want to be used to override the default ones. Note that this script needs to be run either withing the container shell or using `moodle-docker-bash`. Examples:
Php: 7.4.23, pgsql: 11.13 (Debian 11.13-1.pgdg90+1), OS: Linux 5.10.47-linuxkit x86_64
237
+
```
238
+
```bash
239
+
~$ bin/mbash mtest behat --tags=@auth_manual
240
+
Running single behat site:
241
+
```
242
+
243
+
### mutil
244
+
This script was created to be automatically installed in the webserver container and to easily access the `util.php` files of phpunit and behat. First parameter will be the test environment (phpunit or behat) and the rest will be all the parameters that want to be used to override the default ones. Note that this script needs to be run either withing the container shell or using `moodle-docker-bash`. Examples:
245
+
```bash
246
+
~$ bin/mbash mutil phpunit --drop
247
+
Purging dataroot:
248
+
Dropping tables:
249
+
```
250
+
```bash
251
+
~$ bin/mbash mutil behat --drop
252
+
Dropping tables:
253
+
```
254
+
255
+
### mfixversion
256
+
After increasing the version number in a branch, going back to the master branch might cause version problems. This script was created to easily solve that issue. Note that this script needs to be run either withing the container shell or using `moodle-docker-bash`. Example:
0 commit comments