Skip to content

Commit 134d666

Browse files
Cleanup
1 parent 5ee0eb4 commit 134d666

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

docker/Dockerfile-solr7

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
FROM solr:7-alpine
22

3-
# Switch to root user to perform setup tasks
4-
#USER root
5-
63
# Copy all Solr configuration files from the project into a temporary directory in the container
74
COPY vendor/ibexa/solr/src/lib/Resources/config/solr/ /opt/solr/server/tmp
85

96
# Create the ezcloud template directory and set correct ownership for Solr
107
RUN mkdir -p /opt/solr/server/ezcloud/template
11-
# && chown -R solr:solr /opt/solr/server/ezcloud
128

139
# Copy specific Solr configuration files into the template directory
1410
COPY vendor/ibexa/solr/src/lib/Resources/config/solr/schema.xml /opt/solr/server/ezcloud/template/
@@ -29,12 +25,8 @@ RUN cp -R /opt/solr/server/tmp/* /opt/solr/server/ezcloud/template \
2925
# Change the autoSoftCommit maxTime default value in solrconfig.xml
3026
&& sed -ie 's/${solr.autoSoftCommit.maxTime:-1}/${solr.autoSoftCommit.maxTime:20}/' /opt/solr/server/ezcloud/template/solrconfig.xml
3127

32-
# Switch back to the solr user for running Solr
33-
#USER solr
34-
3528
# Set the Solr home directory environment variable
3629
ENV SOLR_HOME /opt/solr/server/ezcloud
3730

3831
# Start Solr and create a new collection using the custom template
3932
CMD ["solr-create", "-c", "collection1", "-d", "/opt/solr/server/ezcloud/template"]
40-
#CMD ["solr", "create_core", "-c", "collection1", "-d", "/opt/solr/server/ezcloud/template"]

0 commit comments

Comments
 (0)