-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
26 lines (21 loc) · 996 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
#
# This file is used by the .github/workflows/solr.yaml action to verify
# that the solr config can be used to create a solr core
#
FROM docker.io/library/solr:latest
WORKDIR /var/solr
# Install JTS Spatial library for spatial indexing and search
ENV JTS_SHA=dbb8644cf324123d06c27aa982f570811e10b4cb1f2aef893b00de237d33efc0
ENV JTS_VERSION=1.19.0
#Set solr specific environment variables
ENV SOLR_HEAP=8192m
ENV SOLR_MODULES=ltr,clustering,analysis-extras,prometheus-exporter,scripting,langid
USER root
RUN set -x \
&& curl -fSL -o /opt/solr/server/solr-webapp/webapp/WEB-INF/lib/jts-core-$JTS_VERSION.jar \
https://github.com/locationtech/jts/releases/download/$JTS_VERSION/jts-core-$JTS_VERSION.jar \
&& echo $JTS_SHA /opt/solr/server/solr-webapp/webapp/WEB-INF/lib/jts-core-$JTS_VERSION.jar | sha256sum -c -
USER solr
# Copy the configset to temporary dir (moved to the right path in kubernetes
RUN mkdir -p /var/solr/data/configsets/adc
COPY . /var/solr/data/configsets/adc