Skip to content
This repository was archived by the owner on Jan 25, 2019. It is now read-only.

Commit ed4a11e

Browse files
committed
Update README etc
1 parent dc3904d commit ed4a11e

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

Diff for: README.md

+7-15
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,13 @@ Docker scripts that install and run Moodle in a container.
99
+ https://github.com/docker-scripts/ds#installation
1010
+ https://github.com/docker-scripts/wsproxy#installation
1111

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`
1613

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`
2215

23-
- Initialize and fix the settings:
16+
- Fix the settings:
2417
```
25-
ds init /usr/local/src/moodle
18+
cd /var/ds/moodle1-example-org/
2619
vim settings.sh
2720
ds info
2821
```
@@ -39,14 +32,13 @@ Docker scripts that install and run Moodle in a container.
3932
4033
- Tell `wsproxy` that the domain `moodle1.example.org` is served by the container `moodle1-example-org`:
4134
```
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
4436
```
4537
4638
- If the domain is a real one, get a free SSL certificate from letsencrypt.org:
4739
```
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
5042
```
5143
5244
- If the domain is not a real one, add to `/etc/hosts` the line

Diff for: settings.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SRC=/usr/local/src/moodle
1+
APP=moodle
22

33
### Docker settings.
44
IMAGE=moodle

0 commit comments

Comments
 (0)