Skip to content

Commit 440c148

Browse files
committed
Improved variable names for the Moodle App
1 parent 93649b4 commit 440c148

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ install:
6565
- export MOODLE_DOCKER_BROWSER=$BROWSER
6666
- export MOODLE_DOCKER_WWWROOT="$HOME/moodle"
6767
- export MOODLE_DOCKER_PHP_VERSION=$PHP
68-
- export MOODLE_MOBILE_VERSION=$MOBILE
68+
- export MOODLE_APP_VERSION=$MOBILE
6969
before_script:
7070
- tests/setup.sh
7171
script:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ You can change the configuration of the docker images by setting various environ
134134
| `MOODLE_DOCKER_WEB_HOST` | no | any valid hostname | localhost | The hostname for web |
135135
| `MOODLE_DOCKER_WEB_PORT` | no | any integer value (or bind_ip:integer)| 127.0.0.1:8000| The port number for web. If set to 0, no port is used.<br/>If you want to bind to any host IP different from the default 127.0.0.1, you can specify it with the bind_ip:port format (0.0.0.0 means bind to all) |
136136
| `MOODLE_DOCKER_SELENIUM_VNC_PORT` | no | any integer value (or bind_ip:integer)| not set | If set, the selenium node will expose a vnc session on the port specified. Similar to MOODLE_DOCKER_WEB_PORT, you can optionally define the host IP to bind to. If you just set the port, VNC binds to 127.0.0.1 |
137-
| `MOODLE_MOBILE_VERSION` | no | next, latest, or an app version number| not set | If set will start an instance of the Mmodle app if the chrome browser is selected |
137+
| `MOODLE_APP_VERSION` | no | next, latest, or an app version number| not set | If set will start an instance of the Mmodle app if the chrome browser is selected |
138138

139139
## Advanced usage
140140

bin/moodle-docker-compose

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if [ -f $filename ]; then
4545
fi
4646

4747
# Mobile app
48-
if [[ ! -z "$MOODLE_DOCKER_BROWSER" ]] && [[ "$MOODLE_DOCKER_BROWSER" == "chrome" ]] && [[ ! -z "$MOODLE_MOBILE_VERSION" ]];
48+
if [[ ! -z "$MOODLE_DOCKER_BROWSER" ]] && [[ "$MOODLE_DOCKER_BROWSER" == "chrome" ]] && [[ ! -z "$MOODLE_APP_VERSION" ]];
4949
then
5050
dockercompose="${dockercompose} -f ${basedir}/moodle-app.yml"
5151
fi

bin/moodle-docker-compose.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if exist %filename% (
3535
)
3636

3737
IF "%MOODLE_DOCKER_BROWSER%"=="chrome" (
38-
IF NOT "%MOODLE_MOBILE_VERSION%"=="" (
38+
IF NOT "%MOODLE_APP_VERSION%"=="" (
3939
SET DOCKERCOMPOSE=%DOCKERCOMPOSE% -f "%BASEDIR%\moodle-app.yml"
4040
)
4141
)

bin/moodle-docker-wait-for-app

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ set -e
33

44
basedir="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )"
55

6-
if [[ ! -z "$MOODLE_DOCKER_BROWSER" ]] && [[ "$MOODLE_DOCKER_BROWSER" == "chrome" ]] && [[ ! -z "$MOODLE_MOBILE_VERSION" ]];
6+
if [[ ! -z "$MOODLE_DOCKER_BROWSER" ]] && [[ "$MOODLE_DOCKER_BROWSER" == "chrome" ]] && [[ ! -z "$MOODLE_APP_VERSION" ]];
77
then
8-
until $basedir/bin/moodle-docker-compose logs mobileapp | grep -q 'dev server running: ';
8+
until $basedir/bin/moodle-docker-compose logs moodleapp | grep -q 'dev server running: ';
99
do
1010
echo 'Waiting for Moodle app to come up...'
1111
sleep 15

config.docker-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
define('PHPUNIT_LONGTEST', true);
6060

61-
if (getenv('MOODLE_DOCKER_MOBILE')) {
61+
if (getenv('MOODLE_DOCKER_APP')) {
6262
$CFG->behat_ionic_wwwroot = 'http://mobileapp:8100';
6363
}
6464

moodle-app.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ version: "2"
22
services:
33
webserver:
44
environment:
5-
MOODLE_DOCKER_MOBILE: "true"
6-
mobileapp:
7-
image: "moodlehq/moodleapp:${MOODLE_MOBILE_VERSION}"
5+
MOODLE_DOCKER_APP: "true"
6+
moodleapp:
7+
image: "moodlehq/moodleapp:${MOODLE_APP_VERSION}"

0 commit comments

Comments
 (0)