forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build, use, publish dspace/dspace-solr imgs
- Loading branch information
1 parent
5d14b23
commit b36e6df
Showing
5 changed files
with
92 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# | ||
# The contents of this file are subject to the license and copyright | ||
# detailed in the LICENSE and NOTICE files at the root of the source | ||
# tree and available online at | ||
# | ||
# http://www.dspace.org/license/ | ||
# | ||
|
||
# To build use root as context for (easier) access to solr cfgs | ||
# docker build --build-arg SOLR_VERSION=8.11 -f ./dspace/src/main/docker/dspace-solr/Dockerfile . | ||
# This will be published as dspace/dspace-solr:$DSPACE_VERSION | ||
|
||
ARG SOLR_VERSION=8.11 | ||
|
||
FROM solr:${SOLR_VERSION}-slim | ||
|
||
ENV AUTHORITY_CONFIGSET_PATH=/opt/solr/server/solr/configsets/authority/conf \ | ||
OAI_CONFIGSET_PATH=/opt/solr/server/solr/configsets/oai/conf \ | ||
SEARCH_CONFIGSET_PATH=/opt/solr/server/solr/configsets/search/conf \ | ||
STATISTICS_CONFIGSET_PATH=/opt/solr/server/solr/configsets/statistics/conf | ||
|
||
USER root | ||
|
||
RUN mkdir -p $AUTHORITY_CONFIGSET_PATH && \ | ||
mkdir -p $OAI_CONFIGSET_PATH && \ | ||
mkdir -p $SEARCH_CONFIGSET_PATH && \ | ||
mkdir -p $STATISTICS_CONFIGSET_PATH | ||
|
||
COPY dspace/solr/authority/conf/* $AUTHORITY_CONFIGSET_PATH/ | ||
COPY dspace/solr/oai/conf/* $OAI_CONFIGSET_PATH/ | ||
COPY dspace/solr/search/conf/* $SEARCH_CONFIGSET_PATH/ | ||
COPY dspace/solr/statistics/conf/* $STATISTICS_CONFIGSET_PATH/ | ||
|
||
RUN chown -R solr:solr /opt/solr/server/solr/configsets | ||
|
||
USER solr |