2020-09-17 11:32:00 +02:00
|
|
|
FROM solr:6.2-alpine
|
2014-10-26 22:21:58 +01:00
|
|
|
MAINTAINER Open Knowledge
|
|
|
|
|
2020-09-17 11:32:00 +02:00
|
|
|
# Enviroment
|
|
|
|
ENV SOLR_CORE ckan
|
|
|
|
ENV CKAN_VERSION dev-v2.9
|
2014-10-26 22:21:58 +01:00
|
|
|
|
2020-09-17 11:32:00 +02:00
|
|
|
# User
|
|
|
|
USER root
|
2014-10-26 22:21:58 +01:00
|
|
|
|
2020-09-17 11:32:00 +02:00
|
|
|
# Create Directories
|
|
|
|
RUN mkdir -p /opt/solr/server/solr/$SOLR_CORE/conf
|
|
|
|
RUN mkdir -p /opt/solr/server/solr/$SOLR_CORE/data
|
2014-11-15 19:02:58 +01:00
|
|
|
|
2020-09-17 11:32:00 +02:00
|
|
|
# Adding Files
|
|
|
|
ADD solrconfig.xml \
|
|
|
|
https://raw.githubusercontent.com/ckan/ckan/$CKAN_VERSION/ckan/config/solr/schema.xml \
|
|
|
|
https://raw.githubusercontent.com/apache/lucene-solr/releases/lucene-solr/6.0.0/solr/server/solr/configsets/basic_configs/conf/currency.xml \
|
|
|
|
https://raw.githubusercontent.com/apache/lucene-solr/releases/lucene-solr/6.0.0/solr/server/solr/configsets/basic_configs/conf/synonyms.txt \
|
|
|
|
https://raw.githubusercontent.com/apache/lucene-solr/releases/lucene-solr/6.0.0/solr/server/solr/configsets/basic_configs/conf/stopwords.txt \
|
|
|
|
https://raw.githubusercontent.com/apache/lucene-solr/releases/lucene-solr/6.0.0/solr/server/solr/configsets/basic_configs/conf/protwords.txt \
|
|
|
|
https://raw.githubusercontent.com/apache/lucene-solr/releases/lucene-solr/6.0.0/solr/server/solr/configsets/data_driven_schema_configs/conf/elevate.xml \
|
|
|
|
/opt/solr/server/solr/$SOLR_CORE/conf/
|
2014-10-26 22:21:58 +01:00
|
|
|
|
2020-09-17 11:32:00 +02:00
|
|
|
# Create Core.properties
|
|
|
|
RUN echo name=$SOLR_CORE > /opt/solr/server/solr/$SOLR_CORE/core.properties
|
2014-11-15 19:02:58 +01:00
|
|
|
|
2020-09-17 11:32:00 +02:00
|
|
|
# Giving ownership to Solr
|
|
|
|
RUN chown -R $SOLR_USER:$SOLR_USER /opt/solr/server/solr/$SOLR_CORE
|