Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for running in development #57

Merged
merged 1 commit into from
May 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,22 @@ For example

`docker run -ti -v /path/to/config:/config ghcr.io/teragrep/lsh_01:latest`

== How to run and use in development

Run maven on java 11:

`mvn clean package`

Run the .jar file (example with default properties):

`java -Dproperties.file=etc/config.properties -Dcredentials.file=etc/credentials.json -Dlookups.hostname.file=etc/hostname.json -Dlookups.appname.file=etc/appname.json -Dlog4j2.configurationFile=file:rpm/src/main/resources/log4j2.xml -jar target/lsh_01-jar-with-dependencies.jar`

A RELP-server has to be in place. A server and documentation for setting it up can be found in https://github.com/teragrep/rlp_07[rlp_07]. Make sure that you set `relp.port` in `configuration.properties` to the same port that you are using with the RELP-server.

Example for sending messages from command line:

`curl localhost:8080 -d "foo foo"`

== Contributing

You can involve yourself with our project by https://github.com/teragrep/lsh_01/issues/new/choose[opening an issue] or submitting a pull request.
Expand Down