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

Implement persistent Lucene indexing with Docker volumes #1064

Merged
merged 3 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
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
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:
Loading