All Projects → bitnami → bitnami-docker-solr

bitnami / bitnami-docker-solr

Licence: other
Bitnami Docker Image for Solr

Programming Languages

shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to bitnami-docker-solr

bitnami-docker-sonarqube
Bitnami Docker Image for SonarQube
Stars: ✭ 65 (+96.97%)
Mutual labels:  non-root
turing
✨ 🧬 Turing AI - Semantic Navigation, Chatbot using Search Engine and Many NLP Vendors.
Stars: ✭ 30 (-9.09%)
Mutual labels:  solr
jesterj
Document Ingestion Framework for Search Systems
Stars: ✭ 26 (-21.21%)
Mutual labels:  solr
solr-stack
Ambari stack service for easily installing and managing Solr on HDP cluster
Stars: ✭ 18 (-45.45%)
Mutual labels:  solr
nlpir-analysis-cn-ictclas
Lucene/Solr Analyzer Plugin. Support MacOS,Linux x86/64,Windows x86/64. It's a maven project, which allows you change the lucene/solr version. //Maven工程,修改Lucene/Solr版本,以兼容相应版本。
Stars: ✭ 71 (+115.15%)
Mutual labels:  solr
mdserver-web
Simple Linux Panel
Stars: ✭ 1,064 (+3124.24%)
Mutual labels:  solr
kitodo-presentation
Kitodo.Presentation is a feature-rich framework for building a METS- or IIIF-based digital library. It is part of the Kitodo Digital Library Suite.
Stars: ✭ 33 (+0%)
Mutual labels:  solr
basic-solr-config
A starting point for solr schema, config and xslt.
Stars: ✭ 17 (-48.48%)
Mutual labels:  solr
solrq
Python Solr query utility // http://solrq.readthedocs.org/en/latest/
Stars: ✭ 18 (-45.45%)
Mutual labels:  solr
bitnami-docker-prometheus
Bitnami Docker Image for Prometheus
Stars: ✭ 30 (-9.09%)
Mutual labels:  non-root
hello-nlp
A natural language search microservice
Stars: ✭ 85 (+157.58%)
Mutual labels:  solr
bitnami-docker-keycloak
Bitnami Docker Image for Keycloak
Stars: ✭ 62 (+87.88%)
Mutual labels:  non-root
BnLMetsExporter
Command Line Interface (CLI) to export METS/ALTO documents to other formats.
Stars: ✭ 11 (-66.67%)
Mutual labels:  solr
IATI.cloud
The open-source IATI datastore for IATI data with RESTful web API providing XML, JSON, CSV output. It extracts and parses IATI XML files referenced in the IATI Registry and powered by Apache Solr.
Stars: ✭ 35 (+6.06%)
Mutual labels:  solr
bitnami-docker-elasticsearch
Bitnami Docker Image for Elasticsearch
Stars: ✭ 71 (+115.15%)
Mutual labels:  non-root
jstarcraft-nlp
专注于解决自然语言处理领域的几个核心问题:词法分析,句法分析,语义分析,语种检测,信息抽取,文本聚类和文本分类. 为相关领域的研发人员提供完整的通用设计与参考实现. 涵盖了多种自然语言处理算法,适配了多个自然语言处理框架. 兼容Lucene/Solr/ElasticSearch插件.
Stars: ✭ 92 (+178.79%)
Mutual labels:  solr
bitnami-docker-fluentd
Bitnami Docker Image for Fluentd
Stars: ✭ 16 (-51.52%)
Mutual labels:  non-root
bitnami-docker-osclass
Bitnami Docker Image for Osclass
Stars: ✭ 12 (-63.64%)
Mutual labels:  non-root
solr-ontology-tagger
Automatic tagging and analysis of documents in an Apache Solr index for faceted search by RDF(S) Ontologies & SKOS thesauri
Stars: ✭ 36 (+9.09%)
Mutual labels:  solr
ezplatform-search-extra
Netgen's extra bits for eZ Platform search
Stars: ✭ 13 (-60.61%)
Mutual labels:  solr

Apache Solr packaged by Bitnami

What is Apache Solr?

Apache Solr is an extremely powerful, open source enterprise search platform built on Apache Lucene. It is highly reliable and flexible, scalable, and designed to add value very quickly after launch.

Overview of Apache Solr

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

TL;DR

$ docker run --name solr bitnami/solr:latest

Docker Compose

$ curl -sSL https://raw.githubusercontent.com/bitnami/bitnami-docker-solr/master/docker-compose.yml > docker-compose.yml
$ docker-compose up -d

You can find the available configuration options in the Environment Variables section.

Why use Bitnami Images?

  • Bitnami closely tracks upstream source changes and promptly publishes new versions of this image using our automated systems.
  • With Bitnami images the latest bug fixes and features are available as soon as possible.
  • Bitnami containers, virtual machines and cloud images use the same components and configuration approach - making it easy to switch between formats based on your project needs.
  • All our images are based on minideb a minimalist Debian based container image which gives you a small base container image and the familiarity of a leading Linux distribution.
  • All Bitnami images available in Docker Hub are signed with Docker Content Trust (DCT). You can use DOCKER_CONTENT_TRUST=1 to verify the integrity of the images.
  • Bitnami container images are released daily with the latest distribution packages available.

Supported tags and respective Dockerfile links

Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags in our documentation page.

Subscribe to project updates by watching the bitnami/solr GitHub repo.

Get this image

The recommended way to get the Bitnami solr Docker Image is to pull the prebuilt image from the Docker Hub Registry.

$ docker pull bitnami/solr:latest

To use a specific version, you can pull a versioned tag. You can view the list of available versions in the Docker Hub Registry.

$ docker pull bitnami/solr:[TAG]

If you wish, you can also build the image yourself.

$ docker build -t bitnami/solr:latest 'https://github.com/bitnami/bitnami-docker-solr.git#master:8/debian-10'

Persisting your application

If you remove the container all your data and configurations will be lost, and the next time you run the image the database will be reinitialized. To avoid this loss of data, you should mount a volume that will persist even after the container is removed.

For persistence you should mount a volume at the /bitnami path. The above examples define a docker volume namely solr_data. The Solr application state will persist as long as this volume is not removed.

To avoid inadvertent removal of this volume you can mount host directories as data volumes. Alternatively you can make use of volume plugins to host the volume data.

$ docker run -v /path/to/solr-persistence:/bitnami bitnami/solr:latest

or by modifying the docker-compose.yml file present in this repository:

solr:
  ...
  volumes:
    - /path/to/solr-persistence:/bitnami
  ...

NOTE: As this is a non-root container, the mounted files and directories must have the proper permissions for the UID 1001.

Connecting to other containers

Using Docker container networking, a Solr server running inside a container can easily be accessed by your application containers.

Containers attached to the same network can communicate with each other using the container name as the hostname.

Using the Command Line

Step 1: Create a network

$ docker network create solr-network --driver bridge

Step 2: Launch the solr container within your network

Use the --network <NETWORK> argument to the docker run command to attach the container to the solr-network network.

$ docker run --name solr-node1 --network solr-network bitnami/solr:latest

Step 3: Run another containers

We can launch another containers using the same flag (--network NETWORK) in the docker run command. If you also set a name to your container, you will be able to use it as hostname in your network.

Using Docker Compose

When not specified, Docker Compose automatically sets up a new network and attaches all deployed services to that network. However, we will explicitly define a new bridge network named solr-network.

version: '2'

networks:
  solr-network:
    driver: bridge

services:
  solr-node1:
    image: bitnami/solr:latest
    networks:
      - solr-network
    ports:
      - '8983:8983'
  solr-node2:
    image: bitnami/solr:latest
    networks:
      - solr-network
    ports:
      - '8984:8984'

Then, launch the containers using:

$ docker-compose up -d

Configuration

Environment variables

When you start the solr image, you can adjust the configuration of the instance by passing one or more environment variables either on the docker-compose file or on the docker run command line. The following environment values are provided to custom Solr:

  • SOLR_PORT_NUMBER: Port used by Solr server. Default: 8983
  • SOLR_SERVER_DIR: Specify the Solr server directory. Default: /opt/bitnami/solr/server
  • SOLR_CORES: List of core names to create at first run separated by either a space, ( ), a comma (,) or a semicolon (;). No default. (E.g.: 'my_core_en,my_core_es')
  • SOLR_CORE_CONF_DIR: Configuration directory to copy when creating a new core. Default: data_driven_schema_configs
  • SOLR_OPTS: List of Solr server options and flags separated by either a space, ( ), a comma (,) or a semicolon (;). No default. (E.g.: '-XX:+AggressiveOpts -XX:G1HeapRegionSize=8m')

Cluster related environment variables:

  • SOLR_CLOUD_BOOTSTRAP: Indicates if this node is going to bootstrap the cluster. Default: no
  • SOLR_ENABLE_CLOUD_MODE: Enable cloud mode. Default: no
  • SOLR_COLLECTION: Create collection at the first run. By default, it will not create a core. (E.g.: 'my_collection')
  • SOLR_COLLECTION_SHARDS: Number of shards for the collection created at first run. Default: 1
  • SOLR_COLLECTION_REPLICAS: Number of replicas for the collection create at first run. Default: 1
  • SOLR_NUMBER_OF_NODES: Number of the node of the Solr cloud cluster. Default: 1
  • SOLR_HOST: Name of the node. If not set the node IP will be used. Default: null
  • SORL_ZK_SLEEP_TIME: Sleep time when waiting for init configuration operations to finish. Default: 5
  • SOLR_ZK_MAX_RETRIES: Maximum retries when waitinf for init configuration operations to finish. Default: 5

Authentication related environment variables:

  • SOLR_ENABLE_AUTHENTICATION: Enable the authentication, you can indicate the administrator credentiales with the following variables. Default: no
  • SOLR_ADMIN_USERNAME: Username for the administrator user. Default: admin
  • SOLR_ADMIN_PASSWORD: Password for the administrator user. Default: Bitnami

SSL related environment variables:

  • SOLR_SSL_ENABLED: Indicates if solr is going to enable SSL. Default: no
  • SOLR_SSL_KEY_STORE: Key store file. Default: null
  • SOLR_SSL_KEY_STORE_PASSWORD: Password for the key store file. Default: null
  • SOLR_SSL_TRUST_STORE: Trust store file. Default: null
  • SOLR_SSL_TRUST_STORE_PASSWORD: Password for the trust store file. Default: null
  • SOLR_SSL_CHECK_PEER_NAME: Indicates if the peer name should be checked. Default: false

Specifying Environment Variables using Docker Compose

This requires a minor change to the docker-compose.yml file present in this repository:

solr:
  ...
  environment:
    - SOLR_CORES=my_core
  ...

Specifying Environment Variables on the Docker command line

$ docker run -d -e SOLR_CORES=my_core --name solr bitnami/solr:latest

Using your Apache Solr Cores configuration files

In order to load your own configuration files, you will have to make them available to the container. You can do it mounting a volume in the desired location and setting the environment variable with the customized value (as it is pointed above, the default value is data_driven_schema_configs).

Using Docker Compose

This requires a minor change to the docker-compose.yml file present in this repository:

solr:
  ...
  environment:
    - SOLR_CORE_CONF_DIR=/container/path/to/your/confDir
  volumes:
    - '/local/path/to/your/confDir:/container/path/to/your/confDir'
  ...

Logging

The Bitnami solr Docker image sends the container logs to the stdout. To view the logs:

$ docker logs solr

or using Docker Compose:

$ docker-compose logs solr

You can configure the containers logging driver using the --log-driver option if you wish to consume the container logs differently. In the default configuration docker uses the json-file driver.

Maintenance

Upgrade this image

Bitnami provides up-to-date versions of solr, including security patches, soon after they are made upstream. We recommend that you follow these steps to upgrade your container.

Step 1: Get the updated image

$ docker pull bitnami/solr:latest

or if you're using Docker Compose, update the value of the image property to bitnami/solr:latest.

Step 2: Stop and backup the currently running container

Stop the currently running container using the command

$ docker stop solr

or using Docker Compose:

$ docker-compose stop solr

Next, take a snapshot of the persistent volume /path/to/solr-persistence using:

$ rsync -a /path/to/solr-persistence /path/to/solr-persistence.bkp.$(date +%Y%m%d-%H.%M.%S)

You can use this snapshot to restore the database state should the upgrade fail.

Step 3: Remove the currently running container

$ docker rm -v solr

or using Docker Compose:

$ docker-compose rm -v solr

Step 4: Run the new image

Re-create your container from the new image, restoring your backup if necessary.

$ docker run --name solr bitnami/solr:latest

or using Docker Compose:

$ docker-compose up solr

Notable Changes

8.8.0-debian-10-r11

  • Adds SSL support.

8.8.0-debian-10-r9

  • The Solr container initialization logic has been moved to Bash scripts.
  • The size of the container image has been decreased.
  • Added the support for cloud mode.
  • Added support for authentication and admin user creation.
  • Data migration for the upgrades. If you are running an older version of this container, run this version as user root and it will migrate your current data.

7.4.0-r23

  • The Solr container has been migrated to a non-root user approach. Previously the container ran as the root user and the Solr daemon was started as the solr user. From now on, both the container and the Solr daemon run as user 1001. As a consequence, the data directory must be writable by that user. You can revert this behavior by changing USER 1001 to USER root in the Dockerfile.

Contributing

We'd love for you to contribute to this container. You can request new features by creating an issue, or submit a pull request with your contribution.

Issues

If you encountered a problem running this container, you can file an issue. For us to provide better support, be sure to include the following information in your issue:

  • Host OS and version
  • Docker version (docker version)
  • Output of docker info
  • Version of this container
  • The command you used to run the container, and any relevant output you saw (masking any sensitive information)

License

Copyright © 2022 Bitnami

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].