Set Solr heap size

This commit is contained in:
Disassembler 2017-12-20 09:40:01 +01:00
parent 3b6c8471fe
commit 1ea2b63636
3 changed files with 5 additions and 1 deletions

View File

@ -8,6 +8,7 @@ docker build -t solr ${SOURCE_DIR}
# Configure Solr
mkdir -p /srv/solr/data
cp ${SOURCE_DIR}/srv/solr/data/solr.xml /srv/solr/data/solr.xml
cp ${SOURCE_DIR}/srv/solr/data/.solr.in.sh /srv/solr/data/.solr.in.sh
chown -R 8983:8983 /srv/solr/data
# Configure Solr service

View File

@ -22,4 +22,4 @@ VOLUME ["/var/lib/solr"]
EXPOSE 8983
USER solr
CMD ["solr", "start", "-f", "-s", "/var/lib/solr"]
CMD ["solr", "start", "-f"]

View File

@ -0,0 +1,3 @@
SOLR_JAVA_MEM="-Xms32m -Xmx256m"
SOLR_HOME=/var/lib/solr
SOLR_PORT=8983