Skip to content

Commit

Permalink
Merge pull request #1064 from rahul6603/lucene-index-volume
Browse files Browse the repository at this point in the history
Implement persistent Lucene indexing with Docker volumes
  • Loading branch information
mozzy11 authored Jun 6, 2024
2 parents b7d5655 + 49eedaa commit da661b8
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ RUN chown tomcat_admin:tomcat /healthcheck.sh; \

ADD install/docker-entrypoint.sh /docker-entrypoint.sh
RUN chown tomcat_admin:tomcat /docker-entrypoint.sh; \
chmod 770 /docker-entrypoint.sh;
chmod 770 /docker-entrypoint.sh;

RUN mkdir -p /var/lib/lucene_index; \
chown -R tomcat_admin:tomcat /var/lib/lucene_index; \
chmod -R 770 /var/lib/lucene_index;

USER tomcat_admin

ENTRYPOINT [ "/docker-entrypoint.sh" ]
Expand Down
7 changes: 4 additions & 3 deletions app.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ services:
volumes:
- ./dev/plugins:/var/lib/openelis-global/plugins
- ./dev/tomcat/oe_server.xml:/usr/local/tomcat/conf/server.xml
- lucene_index-vol:/var/lib/lucene_index
secrets:
- source: common.properties
tty: true
stdin_open: true
entrypoint: bash
secrets:
common.properties:
file: ./dev/properties/common.properties
file: ./dev/properties/common.properties
volumes:
lucene_index-vol:
2 changes: 2 additions & 0 deletions build.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ services:
- key_trust-store-volume:/etc/openelis-global
- ./volume/plugins/:/var/lib/openelis-global/plugins
- ./volume/tomcat/oe_server.xml:/usr/local/tomcat/conf/server.xml
- lucene_index-vol:/var/lib/lucene_index
secrets:
- source: datasource.password
- source: common.properties
Expand Down Expand Up @@ -145,3 +146,4 @@ volumes:
key_trust-store-volume:
certs-vol:
keys-vol:
lucene_index-vol:
4 changes: 3 additions & 1 deletion dev.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ services:
- ./volume/plugins/:/var/lib/openelis-global/plugins
- ./volume/tomcat/oe_server.xml:/usr/local/tomcat/conf/server.xml
- ./target/OpenELIS-Global.war:/usr/local/tomcat/webapps/OpenELIS-Global.war
- lucene_index-vol:/var/lib/lucene_index
secrets:
- source: datasource.password
- source: common.properties
Expand Down Expand Up @@ -140,4 +141,5 @@ volumes:
db-data:
key_trust-store-volume:
certs-vol:
keys-vol:
keys-vol:
lucene_index-vol:
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ services:
- key_trust-store-volume:/etc/openelis-global
- ./volume/plugins/:/var/lib/openelis-global/plugins
- ./volume/tomcat/oe_server.xml:/usr/local/tomcat/conf/server.xml
- lucene_index-vol:/var/lib/lucene_index
#Runing OpenELIS with the locally compiled war file
#- ./target/OpenELIS-Global.war:/usr/local/tomcat/webapps/OpenELIS-Global.war
secrets:
Expand Down Expand Up @@ -139,4 +140,5 @@ volumes:
db-data:
key_trust-store-volume:
certs-vol:
keys-vol:
keys-vol:
lucene_index-vol:

0 comments on commit da661b8

Please sign in to comment.