-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.txt
71 lines (50 loc) · 2.16 KB
/
install.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
apt-get update
sudo apt-get install unzip
sudo apt-get install docker
md tibhannover
cd tibhannover
git clone https://github.com/tibhannover/vocol.git
cd /vocol
docker build -t tib/vocol .
#### For each instance use different name and port, starting from 8081
#docker run --name streamOntoVocol --rm -d -p 8081:3000 tib/vocol "/bin/bash"
docker run --name streamOntoVocol --restart=always -d -p 8081:3000 tib/vocol
docker run --name boostOntoVocol --restart=always -d -p 8082:3000 tib/vocol
docker run --name rioOntoVocol --restart=always -d -p 8083:3000 tib/vocol
#Install LDM on port 8080 and cofigure DCAT
cd tibhannover
git clone https://github.com/tibhannover/ldm.base.git
cd /ldm.base
docker build -t tib/ldm
docker run --name ontologyRegLdm --restart=always -d -p 8080:XXXX tib/ldm
#### Preparing Docker networking
docker network create ontologyNetwork
docker network connect ontologyNetwork ontologyReverseProxy
docker network connect ontologyNetwork ckan
docker network connect ontologyNetwork streamOntoVocol
docker network connect ontologyNetwork bcoOntoVocol
# docker network inspect ontologyNetwork
#### Installing and setting Nginx (https://medium.com/@mannycodes/create-an-nginx-reverse-proxy-with-docker-a1c0aa9078f1)
.
docker run -it -d -p 80:80 --network=ontologyNetwork --name ontologyReverseProxy nginx:stable-alpine
#docker run -it -d -p 80:80 --name ontologyReverseProxy nginx:alpine
## For each ontology instance (docker container with port number)
# docker exec -it ontologyReverseProxy /bin/bash or /bin/sh
# cd /etc/nginx/conf.d
location / {
proxy_pass http://ckan:5000;
}
location /stream {
proxy_pass http://streamOntoVocol:3000/; #internal port number with the tailing slash
}
location /boost/ {
proxy_pass http://bcoOntoVocol:3000/;
}
nginx -s reload
################################################################################
docker exec -it tib/vocol /bin/bash
cd
sh helper/scripts/resetApp.sh
npm start 8080 3030
cd home/project/vocol
### the above three commands are better to be put in a Dockerfile that inherits from ahemid/newvocol so that they are part of the container execution.