-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Solr): Added custom managed_schema for solr image
- Loading branch information
1 parent
3ae0379
commit 8e794bd
Showing
4 changed files
with
1,053 additions
and
3 deletions.
There are no files selected for viewing
Empty file.
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 |
---|---|---|
@@ -1,11 +1,15 @@ | ||
FROM solr:8-slim | ||
MAINTAINER Ambroise Maupate <[email protected]> | ||
|
||
ARG USER_UID=1000 | ||
ARG USER_UID=8983 | ||
|
||
USER root | ||
RUN set -ex; \ | ||
echo "USER_UID: ${USER_UID}\n"; \ | ||
usermod -u ${USER_UID} "$SOLR_USER"; \ | ||
groupmod -g ${USER_UID} "$SOLR_GROUP"; | ||
groupmod -g ${USER_UID} "$SOLR_GROUP"; \ | ||
chown -R ${USER_UID}:${USER_UID} /var/solr; | ||
|
||
COPY managed-schema.xml /opt/solr/server/solr/configsets/_default/conf/managed-schema | ||
|
||
USER $SOLR_USER |
Oops, something went wrong.