Forked from wodby/solr
. Their build process
has become slightly out of date and is opinionated to their stack. This image
extends library/solr
, but
preserves the Wodby-inspired bootstrapping to chown the data directory to the
solr
user, as well as a build pipeline that imports Drupal's search_api_solr
jump-start config sets for immediate use.
8.6.2
,8
,latest
(Dockerfile)
Prior versions of Solr may be configured for builds if demand is demonstrated by community usage.
This image only builds to "current" Drupal API compatibility as pulled from the module update API, meaning Drupal 8+.
Variable | Default Value | Description |
---|---|---|
SOLR_HEAP |
1024m |
Default JVM heap size. |
docker-compose.yml
service example:
services:
solr:
image: fruition/solr:8
volumes:
- solr:/var/solr
command:
- solr-precreate
- my-core
- /opt/docker-solr/configsets/search_api_solr_4.1.6
volumes:
solr: {}
Deployment container spec excerpt (e.g., running in pod with your application):
containers:
- name: solr
args:
- solr-precreate
- my-core
- /opt/docker-solr/configsets/search_api_solr_4.1.6
image: fruition/solr:8
volumeMounts:
- mountPath: /var/solr
name: your-pvc
subPath: solr
After the core is created, you can (but don't need to) remove the args
section and the container will proceed directly to running Solr in the
foreground.