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
* You only need [Docker CE](https://hub.docker.com/search?type=edition&offering=community) and the standalone container: `docker run -p 4443:4443 -p 8080:8080 -e openvidu.secret=MY_SECRET -e initialDataFile="/initialData.json" -v /path/to/initialData.json:/initialData.json --rm diegomzmn/openviduteaching-standalone`
8
7
9
-
**TODO**
8
+
* You can choose your secret however you like. Check the [OpenVidu tutorials](https://openvidu.io/docs/tutorials/) for more info.
10
9
11
-
### JAR + Openvidu+KMS Docker container ###
12
-
13
-
* You need to have the OpenVidu server running. For that you can use the Docker container that wraps the openvidu-server and Kurento Media Server:
14
-
`docker run -p 4443:4443 --rm -e openvidu.secret=MY_SECRET openvidu/openvidu-server-kms:2.11.0`
15
-
You can choose your port and secret however you like.
16
-
Check the [OpenVidu tutorials](https://openvidu.io/docs/tutorials/) for more info.
17
-
18
-
* Get the jar file for the latest release from the [GitHub repository](https://github.com/codeurjc-students/2019-OpenViduTeaching).
19
-
20
-
* Data is initialized from a json file. You will have to add the absolute path to it as an argument for the jar file (otherwise it will use the [default file](https://github.com/codeurjc-students/2019-OpenViduTeaching/blob/master/backend/src/main/resources/json/initialData.json))
10
+
* Data is initialized from a json file. You will have to mount the file into the container and add and enviroment variable with the absolute path to where it was mounted (otherwise it will use the [default file](https://github.com/codeurjc-students/2019-OpenViduTeaching/blob/master/backend/src/main/resources/json/initialData.json)). In the example above we mount it to `/initialData.json` and add `-e initialDataFile="/initialData.json"`.
21
11
Here is an example of a valid json for the initial rooms and users:
22
12
~~~~ json
23
13
{
@@ -55,17 +45,25 @@ You only need [Docker CE](https://hub.docker.com/search?type=edition&offering=co
55
45
]
56
46
}
57
47
~~~~
58
-
As you can see, the moddedRooms, presentedRooms and participatedRooms properties are optional.
48
+
As you can see, the moddedRooms, presentedRooms and participatedRooms properties are optional. A user can have a different role for each room, so each user can have none, one or multiple rooms of each type in the json.
49
+
59
50
60
-
* You also have to set the OpenVidu server url and secret when executing the jar (the following values are the default ones for those two arguments):
For additional customizable values take a look at the [application.properties file](https://github.com/codeurjc-students/2019-OpenViduTeaching/blob/master/backend/src/main/resources/application.properties).
* Firstly get the openvidu-server + KMS container running (same as in the previous section).
68
-
69
-
* Then, get the OpenViduTeaching running:
65
+
* You can simply make a docker-compose.yml. Take [this one](https://github.com/codeurjc-students/2019-OpenViduTeaching/blob/master/docker/composed/docker-compose.yml) as an example. You have to set the ports as specified (you can change 8080 in openvidu-teaching), mount the volume and use an enviroment variable for the path (same as in first option). You MUST use the variable for the url (localhost will not work).
70
66
71
-
**TODO**
67
+
* You can also start both manually. Here's how you run both independently with the same configuration as in the compose example.
68
+
`docker run -p 4443:4443 --rm -e openvidu.secret=SECRET openvidu/openvidu-server-kms:2.11.0`
Copy file name to clipboardExpand all lines: documentation/development.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,13 @@ You will need both the OpenVidu server and OpenViduTeaching server.
9
9
~~~~shell
10
10
docker run -p 4443:4443 --rm -e openvidu.secret=MY_SECRET openvidu/openvidu-server-kms:2.11.0
11
11
~~~~
12
-
You can choose your port and secret however you like.
12
+
You can choose the secret however you like.
13
13
Check the [OpenVidu tutorials](https://openvidu.io/docs/tutorials/) for more info.
14
14
15
15
* The OpenViduTeaching backend uses Spring Boot v2.1.9. To start developing open the "backend" folder with the IDE of your choice as a Spring Boot project.
16
16
The database is H2, so you don't need to download anything else for that.
17
17
The first users and rooms are initialized from the file initialData.json located in resources/json.
18
-
You may change your OpenVidu url and secret in the application.properties file inside the resources folder.
18
+
You may change your OpenVidu url and secret in the application.properties file inside the resources folder (if you change the port you must change it in the frontend and OpenVidu server too).
0 commit comments