-
Notifications
You must be signed in to change notification settings - Fork 184
/
Copy pathDockerfile
37 lines (28 loc) · 943 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#++++++++++++++++++++++++++++++++++++++
# Solr Docker container
#++++++++++++++++++++++++++++++++++++++
#
# Images:
#
# guywithnose/solr
# https://hub.docker.com/r/guywithnose/solr/
#
#++++++++++++++++++++++++++++++++++++++
FROM guywithnose/solr:4.9.0
ENV DEBIAN_FRONTEND noninteractive
ADD entrypoint.sh /entrypoint.sh
COPY ./conf/ /opt/solr-conf/
# Download plugin
RUN curl -sf -o /tmp/solr-typo3-plugin.jar -L http://www.typo3-solr.com/fileadmin/files/solr/solr-typo3-plugin-1.3.0.jar
# Init directories
RUN cp -a /opt/solr-conf/* /opt/solr/example/solr/
RUN mkdir -p /opt/solr/example/solr/typo3cores/data
RUN mkdir -p /opt/solr/example/solr/typo3lib
# Add plugins
RUN mv /tmp/solr-typo3-plugin.jar /opt/solr/example/solr/typo3lib/
RUN ln -s /opt/solr/contrib /opt/solr/example/solr/contrib
# Fix rights
RUN chown solr:solr -R /opt/solr/example/solr/
VOLUME "/storage"
ENTRYPOINT ["/entrypoint.sh"]
CMD ["solr"]