2019-06-25 15:56:35 +02:00
|
|
|
IMAGE solr 6.5.1-190620
|
|
|
|
META title Solr
|
|
|
|
META desc-cs Platforma pro fulltextové a fasetové vyhledávání
|
|
|
|
META desc-en Fulltext and faceted search platform
|
|
|
|
META type service
|
|
|
|
META license GPL
|
|
|
|
|
|
|
|
LAYER alpine3.9 3.9.4-190620
|
|
|
|
LAYER alpine3.9-java8 8.212.04-190620
|
2018-09-05 17:41:38 +02:00
|
|
|
|
2018-09-12 16:08:10 +02:00
|
|
|
RUN EOF
|
2018-09-05 17:41:38 +02:00
|
|
|
# Install runtime dependencies
|
|
|
|
apk --no-cache add bash lsof
|
|
|
|
|
|
|
|
# Download and install Solr
|
2019-02-26 20:24:02 +01:00
|
|
|
wget http://archive.apache.org/dist/lucene/solr/6.5.1/solr-6.5.1.tgz -O - | tar xzf - -C /opt
|
2018-09-05 17:41:38 +02:00
|
|
|
mv /opt/solr-6.5.1 /opt/solr
|
|
|
|
|
|
|
|
# Create OS user
|
|
|
|
addgroup -S -g 8983 solr
|
|
|
|
adduser -S -u 8983 -h /var/lib/solr -s /bin/false -g solr -G solr solr
|
2018-09-11 19:20:18 +02:00
|
|
|
chown -R solr:solr /opt/solr
|
2018-09-11 20:28:59 +02:00
|
|
|
|
|
|
|
# Make start/stop script visible globally (also defines directory for solr.in.sh)
|
|
|
|
ln -s /opt/solr/bin/solr /usr/bin/solr
|
2018-09-12 16:08:10 +02:00
|
|
|
EOF
|
2018-09-05 17:41:38 +02:00
|
|
|
|
2018-09-11 20:28:59 +02:00
|
|
|
COPY lxc
|
|
|
|
|
2018-09-14 18:13:11 +02:00
|
|
|
MOUNT DIR /srv/solr/data var/lib/solr
|
2018-09-05 17:41:38 +02:00
|
|
|
|
|
|
|
USER 8983 8983
|
2018-09-13 16:21:16 +02:00
|
|
|
CMD solr start -f
|