Set Solr heap size
This commit is contained in:
parent
3b6c8471fe
commit
1ea2b63636
1
solr.sh
1
solr.sh
@ -8,6 +8,7 @@ docker build -t solr ${SOURCE_DIR}
|
|||||||
# Configure Solr
|
# Configure Solr
|
||||||
mkdir -p /srv/solr/data
|
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.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
|
chown -R 8983:8983 /srv/solr/data
|
||||||
|
|
||||||
# Configure Solr service
|
# Configure Solr service
|
||||||
|
@ -22,4 +22,4 @@ VOLUME ["/var/lib/solr"]
|
|||||||
EXPOSE 8983
|
EXPOSE 8983
|
||||||
|
|
||||||
USER solr
|
USER solr
|
||||||
CMD ["solr", "start", "-f", "-s", "/var/lib/solr"]
|
CMD ["solr", "start", "-f"]
|
||||||
|
3
solr/srv/solr/data/.solr.in.sh
Normal file
3
solr/srv/solr/data/.solr.in.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
SOLR_JAVA_MEM="-Xms32m -Xmx256m"
|
||||||
|
SOLR_HOME=/var/lib/solr
|
||||||
|
SOLR_PORT=8983
|
Loading…
Reference in New Issue
Block a user