Skip to content

Instantly share code, notes, and snippets.

@rs-ds

rs-ds/Dockerfile

Last active Jul 4, 2020
Embed
What would you like to do?
Solr
version: '3'
volumes:
solr_data: {}
services:
solr:
env_file: .env
build: solr
volumes:
- solr_data:/var/solr
ports:
- 8983
FROM solr:6.6.6
RUN precreate-core core1
RUN rm -rf /opt/solr/server/solr/mycores/core1/conf/managed-scehma
RUN rm -rf /opt/solr/server/solr/configsets/basic_configs/conf/managed-schema
COPY managed-schema /opt/solr/server/solr/configsets/basic_configs/conf/
COPY managed-schema /opt/solr/server/solr/mycores/core1/conf/
COPY schema.xml /opt/solr/server/solr/mycores/core1/conf/
<?xml version="1.0" encoding="UTF-8"?>
<!-- Solr managed schema - automatically generated - DO NOT EDIT -->
<schema name="haystack-schema" version="1.6">
<!-- Schema Defnition -->
</schema>
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Schema Defnition -->
</schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.