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
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,35 @@ The Delphi registry is a server that provides access to all information and oper
18
18
* Starting / Stopping / Pausing / Resuming / Deleting instances deployed on the docker host
19
19
* Re-Assigning dependencies to instances (e.g. assigning a certain ElasticSearch instance to a Crawler)
20
20
21
+
## Quick Setup (Linux)
22
+
Potentially there two different machines involved in the registry setup, the Docker host machine (*Docker Host*) and the machine the registry is hosted at (*Registry Host*). However, you can also use the same machine for hosting both applications.
23
+
24
+
On the *Docker Host*, execute the following steps:
25
+
26
+
1) Clone this repository to your machine
27
+
2) Execute the setup script ```Setup/Delphi_install.sh```
28
+
3) Deploy [ElasticSearch](https://www.elastic.co/de/products/elasticsearch) by executing ```docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.6.0```
* Change the line that starts with ```ExecStart``` to look like this: ```ExecStart=/usr/bin/dockerd -H fd:// -H=tcp://0.0.0.0:9095```
32
+
* Save your changes and execute ```systemctl daemon-reload``` and ```sudo service docker restart```
33
+
5) Note down the IP address of your machine in the LAN ( execute ```ifconfig``` )
34
+
35
+
36
+
On the *Registry Host*, execute the following steps:
37
+
38
+
1) Clone this repository to your local machine
39
+
2) Note down the IP address of your machine in the LAN ( execute ```ifconfig``` )
40
+
3) Edit the configuration file located at ```src/main/scala/de/upb/cs/swt/delphi/instanceregistry/Configuration.scala```
41
+
* Set ```traefikUri``` to ```http://<DOCKER-HOST-IP-HERE>:80```
42
+
* Set ```defaultElasticSearchInstanceHost``` to ```http://<DOCKER-HOST-IP-HERE>```
43
+
* Set ```uriInLocalNetwork``` to ```http://<REGISTRY-HOST-IP-HERE>:8087```
44
+
* Set ```dockerUri``` to ```http://<DOCKER-HOST-IP-HERE>:9095```
45
+
* Set ```jwtSecretKey``` to a secret password not known to anybody else
46
+
4) Save your changes. Navigate to the root folder of the repository and execute the application by calling ```sbt run```
47
+
48
+
The setup of the registry is now complete. You should now be able to connect to the registry component at ```http://<REGISTRY-HOST-IP-HERE>:8087```. You can verify your setup by calling ```curl <REGISTRY-HOST-IP-HERE>:8087/configuration```, which should lead to a ```401 Unauthorized``` response. To find out more about how to authorize yourself, please have look at the **Authorization** section of this document.
49
+
21
50
## Requirements
22
51
In order to compile or execute the instance registry, you must have the latest version of the *Scala Build Tool* (SBT) installed. You can get it [here](https://www.scala-sbt.org/).
0 commit comments