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 is the instruction of how to establish seven containers to let them connect with each other using docker-compose command in a YAML file. (one domain server + six assignment clients)_
4
+
5
+
6
+
---
7
+
## _How to start the containers_
8
+
9
+
- clone the repo or single yaml file and jump into that directory.
10
+
11
+
- modify the following commands in the yaml file.
12
+
13
+
```
14
+
domain-server:
15
+
image: <image_name>
16
+
17
+
assignment-client:
18
+
image: <image_name>
19
+
20
+
```
21
+
22
+
- run the following command in your terminal.
23
+
24
+
```
25
+
docker-compose up -d --scale assignment-client=6
26
+
```
27
+
28
+
- after running the above command, check all running and stopped containers by typing (or you can find the containers on docker desktop if you have).
29
+
30
+
```
31
+
docker ps
32
+
```
33
+
34
+
```
35
+
docker ps -a
36
+
```
37
+
38
+
---
39
+
40
+
## _How to check the servers in the containers are operating properly_
41
+
42
+
- start vircadia and type localhost in explore app.
43
+
44
+
- type "localhost:40100" in your web explorer.
45
+
46
+
- you should see seven (or six) nodes by clicking Nodes on top.
47
+
48
+
---
49
+
50
+
## _Note: the other five assigment client containers have to be started manually either through terminal or docker desktop_
## _This is the instruction of how to build the image that contains the domain-server and the assignment-clients (and the ice-server) using the Dockerfile_
4
+
5
+
---
6
+
## _How to build the image_
7
+
8
+
- clone the repo or the folder named "docker-image-generation" and jump into that directory.
9
+
10
+
- copy the .deb file into this folder and modify the following command in Dockerfile.
11
+
12
+
```
13
+
COPY <filename.deb>
14
+
```
15
+
16
+
- run the following command in your terminal (Ubuntu 20.04).
17
+
18
+
- make sure you assign a name to the image by replacing "image_name".
19
+
20
+
```
21
+
docker build -t <image_name> .
22
+
```
23
+
24
+
---
25
+
26
+
## _How to check the image is built successfully_
27
+
28
+
- run the following command (after starting docker desktop if you have).
29
+
30
+
```
31
+
docker image ls
32
+
```
33
+
34
+
- if the image is built properly, you should be able to find the image in the list.
0 commit comments