|
1 |
| -# Delphi-registry |
2 |
| -An Instance Registry for delphi components |
3 |
| -### Port Numbers: |
4 |
| -webApi: 8080 |
| 1 | +# Delphi Registry |
| 2 | +The management and administration component for the Delphi platform. The registry provides a REST interface for querying the current state of your Delphi setup as well as for changing it. |
5 | 3 |
|
6 |
| -crawler: 8882 |
| 4 | +We are currently in pre-alpha state! There is no release and the code in |
| 5 | +this repository is purely experimental! |
7 | 6 |
|
8 |
| -webApp: 8085 |
| 7 | +|branch | status | |
| 8 | +| :---: | :---: | |
| 9 | +| master | <img src="https://travis-ci.org/delphi-hub/delphi-registry.svg?branch=master"> | |
| 10 | +| develop | <img src="https://travis-ci.org/delphi-hub/delphi-registry.svg?branch=develop"> | |
9 | 11 |
|
10 |
| -instanceRegistry: 8087 |
| 12 | +## What is the registry component? |
| 13 | +The Delphi registry is a server that provides access to all information and operations needed to set up, run and manage the Delphi system. By default, the REST interface is exposed at *0.0.0.0:8087*, and contains endpoints for: |
| 14 | +* Retrieving a list of all instances of a certain type (Crawler, WebApi, WebApp, ElasticSearch) |
| 15 | +* Retrieving the whole network graph (all instances and links between instances) |
| 16 | +* Deploying new instances of a certain type to a docker host |
| 17 | +* Starting / Stopping / Pausing / Resuming / Deleting instances deployed on the docker host |
| 18 | +* Re-Assigning dependencies to instances (e.g. assigning a certain ElasticSearch instance to a Crawler) |
| 19 | + |
| 20 | +## Requirements |
| 21 | +The Delphi registry requires a docker host to deploy containers to. By default, docker is expected to be reachable at *http://localhost:9095*, but you can override this setting by specifying the docker host URI in the environment variable *DOCKER_HOST*. |
| 22 | +To change the port of your http docker API to 9095, execute |
| 23 | +``` |
| 24 | +edit /lib/systemd/system/docker.service |
| 25 | +ExecStart=/usr/bin/dockerd -H fd:// -H=tcp://0.0.0.0:9095 |
| 26 | +systemctl daemon-reload |
| 27 | +sudo service docker restart |
| 28 | +``` |
| 29 | + |
| 30 | + |
| 31 | +The following images must be registered at the docker registry: |
| 32 | +* The Delphi Crawler ( ```delphi-crawler:1.0.0-SNAPSHOT``` ) |
| 33 | +* The Delphi WebApi ( ```delphi-webapi:1.0.0-SNAPSHOT``` ) |
| 34 | +* The Delphi WebApp ( ```delphi-webapp:1.0.0-SNAPSHOT``` ) |
| 35 | + |
| 36 | +To obtain these images, checkout the respective repositories ([here](https://github.com/delphi-hub/delphi-crawler), [here](https://github.com/delphi-hub/delphi-webapi) and [here](https://github.com/delphi-hub/delphi-webapp)) and execute the command |
| 37 | + |
| 38 | +``` |
| 39 | +sbt docker:publishLocal |
| 40 | +``` |
| 41 | +inside their root directory. This will build the docker images and register them directly at the local docker registry. |
| 42 | + |
| 43 | +## Contributing |
| 44 | + |
| 45 | +Contributions are *very* welcome! |
| 46 | + |
| 47 | +Before contributing, please read our [Code of Conduct](CODE_OF_CONDUCT.md). |
| 48 | + |
| 49 | +We use Pull Requests to collect contributions. Especially look out for "help wanted" issues |
| 50 | +[](https://github.com/delphi-hub/delphi-registry/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22), |
| 51 | +but feel free to work on other issues as well. |
| 52 | +You can ask for clarification in the issues directly, or use our Gitter |
| 53 | +chat for a more interactive experience. |
| 54 | + |
| 55 | +[](https://github.com/delphi-hub/delphi-registry/issues) |
| 56 | + |
| 57 | + |
| 58 | +## License |
| 59 | + |
| 60 | +The Delphi registry is open source and available under Apache 2 License. |
| 61 | + |
| 62 | +[](https://github.com/delphi-hub/delphi-registry/blob/master/LICENSE) |
0 commit comments