Skip to content

Commit 98f6508

Browse files
committed
Merge branch 'clojure' of github.com:diogok/biodiv-ui into clojure
2 parents e0446cf + 759011c commit 98f6508

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM diogok/java8:zulu
2+
3+
ENV PORT 80
4+
EXPOSE 80
5+
6+
WORKDIR /opt
7+
CMD ["java","-server","-XX:+UseConcMarkSweepGC","-XX:+UseCompressedOops","-XX:+DoEscapeAnalysis","-DPORT=80","-jar","rrapp-ui.jar"]
8+
9+
ADD target/rrapp-ui-0.0.1-standalone.jar /opt/rrapp-ui.jar
10+

README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# RRAPP-UI
2+
3+
This is the webinterface for [Rapid Risk Assessment App](https://br.biodiversity.cloud).
4+
5+
It reads and display statistics and visualization from an ElasticSearch with data of [rrapp-idx](https://github.com/biodivdev/rrapp-idx).
6+
7+
## Running
8+
9+
### Manual
10+
11+
First, start your ElasticSearch 5.0.
12+
13+
Then [run the dwc-bot-es](https://github.com/biodivdev/rrapp-idx/) and [run rrapp-idx](https://github.com/biodivdev/rrapp-idx).
14+
15+
This will populate the database.
16+
17+
### Run with Docker
18+
19+
Run the docker container
20+
21+
$ docker run -d -volume /etc/biodiv:/etc/biodiv:ro -p8080:80 diogok/rrapp-ui
22+
23+
### Run the JAR
24+
25+
Download the latest jar from the [ realases page ](https://github.com/biodivdev/rrapp-ui/releases) and run it:
26+
27+
$ java -server -jar rrapp-ui.jar
28+
29+
### Configuration
30+
31+
It will look for a configuration file on /etc/biodiv/config.ini or at the file defined by CONFIG environment variable.
32+
33+
The configuration file looks like the following:
34+
35+
ELASTICSEARCH=http://localhost:9200
36+
INDEX=dwc
37+
38+
ElasticSearch tells to which elasticsearch server to connect. INDEX tells which ElasticSearch index to use.
39+
40+
You can set the configuration override to use with environment variables, such as:
41+
42+
$ CONFIG=/etc/biodiv/dwc.ini ELASTICSEARCH=http://localhost:9200 INDEX=dwc java -jar rrapp-ui.jar
43+
44+
If not running on a system with environment variables you can also set them using java properties, as such:
45+
46+
$ java -jar -DLOOP=true -DCONFIG=/etc/biodiv/config.ini -DELASTICSEARCH=http://localhost:9200 -DINDEX=dwc rrapp-ui.jar
47+
48+
## License
49+
50+
MIT
51+

0 commit comments

Comments
 (0)