@@ -9,20 +9,13 @@ Docker scripts that install and run Moodle in a container.
9
9
+ https://github.com/docker-scripts/ds#installation
10
10
+ https://github.com/docker-scripts/wsproxy#installation
11
11
12
- - Then get the moodle scripts from github:
13
- ```
14
- git clone https://github.com/docker-scripts/moodle /usr/local/src/moodle
15
- ```
12
+ - Then get the moodle scripts from github: ` ds pull moodle `
16
13
17
- - Create a working directory for the moodle container:
18
- ```
19
- mkdir -p /var/containers/moodle1-example-org
20
- cd /var/containers/moodle1-example-org/
21
- ```
14
+ - Create a directory for the moodle container: ` ds init moodle @moodle1-example-org `
22
15
23
- - Initialize and fix the settings:
16
+ - Fix the settings:
24
17
```
25
- ds init /usr/local/src/moodle
18
+ cd /var/ds/moodle1-example-org/
26
19
vim settings.sh
27
20
ds info
28
21
```
@@ -39,14 +32,13 @@ Docker scripts that install and run Moodle in a container.
39
32
40
33
- Tell `wsproxy` that the domain `moodle1.example.org` is served by the container `moodle1-example-org`:
41
34
```
42
- cd /var/container/wsproxy/
43
- ds domains-add moodle1-example-org moodle1.example.org
35
+ ds @wsproxy domains-add moodle1-example-org moodle1.example.org
44
36
```
45
37
46
38
- If the domain is a real one, get a free SSL certificate from letsencrypt.org:
47
39
```
48
- ds get-ssl-cert user@example.org moodle1.example.org --test
49
- ds get-ssl-cert user@example.org moodle1.example.org
40
+ ds @wsproxy get-ssl-cert user@example.org moodle1.example.org --test
41
+ ds @wsproxy get-ssl-cert user@example.org moodle1.example.org
50
42
```
51
43
52
44
- If the domain is not a real one, add to `/etc/hosts` the line
0 commit comments