WSL/SLF GitLab Repository

Dockerfile 801 Bytes
Newer Older
1
2
3
4
5
ARG EXTERNAL_REG
FROM ${EXTERNAL_REG}/solr:6.6.5

ARG MAINTAINER
LABEL maintainer="${MAINTAINER}" 
Sam's avatar
Sam committed
6
7
8
9
10

# Enviroment
ENV SOLR_CORE ckan

# Create Directories
11
12
RUN mkdir -p /opt/solr/server/solr/$SOLR_CORE/conf \
    && mkdir -p /opt/solr/server/solr/$SOLR_CORE/data
Sam's avatar
Sam committed
13

Sam's avatar
Sam committed
14
# Add Config Files
Sam's avatar
Sam committed
15
16
17
18
COPY --chown=solr:solr *.txt *.xml /opt/solr/server/solr/$SOLR_CORE/conf/
# Check location of security.json
COPY --chown=solr:solr security.json /opt/solr/server/solr/security.json
COPY --chown=solr:solr jts-core-1.14.0.jar /opt/solr/server/solr-webapp/webapp/WEB-INF/lib/
Sam's avatar
Sam committed
19
20
21
22
23
24

# Create Core.properties
RUN echo name=$SOLR_CORE > /opt/solr/server/solr/$SOLR_CORE/core.properties

# Giving ownership to Solr
USER root
25
RUN chown -R "$SOLR_USER:$SOLR_USER" "/opt/solr/server/solr/$SOLR_CORE"
Sam's avatar
Sam committed
26
27
28

# User
USER $SOLR_USER:$SOLR_USER