Spotter-VM/solr/lxcfile

26 lines
590 B
Plaintext
Raw Normal View History

2018-09-05 17:41:38 +02:00
IMAGE solr
LAYER shared/alpine
LAYER shared/java
LAYER solr/solr
SCRIPT
# Install runtime dependencies
apk --no-cache add bash lsof
# Download and install Solr
mkdir /opt
2018-09-06 21:15:43 +02: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-05 17:41:38 +02:00
RUN
MOUNT /srv/solr/data var/lib/solr
USER 8983 8983
2018-09-11 19:20:18 +02:00
ENV HOME /var/lib/solr
2018-09-07 15:47:44 +02:00
CMD /opt/solr/bin/solr start -f