1
0
Эх сурвалжийг харах

Merge pull request #346 from docker-solr/master

add solr
Tianon Gravi 10 жил өмнө
parent
commit
979778153d

+ 1 - 0
solr/README-short.txt

@@ -0,0 +1 @@
+Solr is the popular, blazing-fast, open source enterprise search platform built on Apache Lucene™.

+ 114 - 0
solr/README.md

@@ -0,0 +1,114 @@
+# Supported tags and respective `Dockerfile` links
+
+-	[`5.3.1`, `5.3`, `5`, `latest` (*5.3/Dockerfile*)](https://github.com/docker-solr/docker-solr/blob/80ee84f565414c4f1218d39417049049d9f2c0d1/5.3/Dockerfile)
+
+For more information about this image and its history, please see [the relevant manifest file (`library/solr`)](https://github.com/docker-library/official-images/blob/master/library/solr). This image is updated via pull requests to [the `docker-solr/docker-solr` GitHub repo](https://github.com/docker-solr/docker-solr).
+
+For detailed information about the virtual/transfer sizes and individual layers of each of the above supported tags, please see [the `solr/tag-details.md` file](https://github.com/docker-library/docs/blob/master/solr/tag-details.md) in [the `docker-library/docs` GitHub repo](https://github.com/docker-library/docs).
+
+# What is Solr?
+
+Solr is highly reliable, scalable and fault tolerant, providing distributed indexing, replication and load-balanced querying, automated failover and recovery, centralized configuration and more. Solr powers the search and navigation features of many of the world's largest internet sites.
+
+Learn more on [Apache Solr homepage](http://lucene.apache.org/solr/) and in the [Apache Solr Reference Guide](https://www.apache.org/dyn/closer.cgi/lucene/solr/ref-guide/).
+
+> [wikipedia.org/wiki/Apache_Solr](https://en.wikipedia.org/wiki/Apache_Solr)
+
+![logo](https://raw.githubusercontent.com/docker-library/docs/master/solr/logo.png)
+
+# How to use this Docker image
+
+To run a single Solr server:
+
+```console
+$ docker run --name my_solr -d -p 8983:8983 -t solr
+```
+
+Then with a web browser go to `http://localhost:8983/` to see the Admin Console (adjust the hostname for your docker host).
+
+To use Solr, you need to create a "core", an index for your data. For example:
+
+```console
+$ docker exec -it --user=solr my_solr bin/solr create_core -c gettingstarted
+```
+
+In the web UI if you click on "Core Admin" you should now see the "gettingstarted" core.
+
+If you want to load some example data:
+
+```console
+$ docker exec -it --user=solr my_solr bin/post -c gettingstarted example/exampledocs/manufacturers.xml
+```
+
+In the UI, find the "Core selector" popup menu and select the "gettingstarted" core, then select the "Query" menu item. This gives you a default search for "*:*" which returns all docs. Hit the "Execute Query" button, and you should see a few docs with data. Congratulations!
+
+To learn more about Solr, see the [Apache Solr Reference Guide](https://cwiki.apache.org/confluence/display/solr/Apache+Solr+Reference+Guide).
+
+## Distributed Solr
+
+You can also run a distributed Solr configuration, with Solr nodes in separate containers, sharing a single ZooKeeper server:
+
+Run ZooKeeper, and define a name so we can link to it:
+
+```console
+$ docker run --name zookeeper -d -p 2181:2181 -p 2888:2888 -p 3888:3888 jplock/zookeeper
+```
+
+Run two Solr nodes, linked to the zookeeper container:
+
+```console
+$ docker run --name solr1 --link zookeeper:ZK -d -p 8983:8983 \
+      solr \
+      bash -c '/opt/solr/bin/solr start -f -z $ZK_PORT_2181_TCP_ADDR:$ZK_PORT_2181_TCP_PORT'
+
+$ docker run --name solr2 --link zookeeper:ZK -d -p 8984:8983 \
+      solr \
+      bash -c '/opt/solr/bin/solr start -f -z $ZK_PORT_2181_TCP_ADDR:$ZK_PORT_2181_TCP_PORT'
+```
+
+Create a collection:
+
+```console
+$ docker exec -i -t solr1 /opt/solr/bin/solr create_collection \
+        -c collection1 -shards 2 -p 8983
+```
+
+Then go to `http://localhost:8983/solr/#/~cloud` (adjust the hostname for your docker host) to see the two shards and Solr nodes.
+
+# About this repository
+
+This repository is available on [github.com/docker-solr/docker-solr](https://github.com/docker-solr/docker-solr), and the official build is on the [Docker Hub](https://hub.docker.com/_/solr/).
+
+This repository is based on (and replaces) `makuk66/docker-solr`, and has been sponsored by [Lucidworks](http://www.lucidworks.com/).
+
+# License
+
+Solr is licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
+
+This repository is also licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
+
+Copyright 2015 Martijn Koster
+
+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.
+
+# Supported Docker versions
+
+This image is officially supported on Docker version 1.8.2.
+
+Support for older versions (down to 1.0) is provided on a best-effort basis.
+
+# User Feedback
+
+## Issues
+
+Please report issues with this docker image on this [Github project](https://github.com/docker-solr/docker-solr).
+
+For general questions about Solr, see the [Community information](http://lucene.apache.org/solr/resources.html#community), in particular the solr-user mailing list.
+
+## Contributing
+
+If you want to contribute to Solr, see the [Solr Resources](http://lucene.apache.org/solr/resources.html#community).

+ 74 - 0
solr/content.md

@@ -0,0 +1,74 @@
+# What is Solr?
+
+Solr is highly reliable, scalable and fault tolerant, providing distributed indexing, replication and load-balanced querying, automated failover and recovery, centralized configuration and more. Solr powers the search and navigation features of many of the world's largest internet sites.
+
+Learn more on [Apache Solr homepage](http://lucene.apache.org/solr/) and in the [Apache Solr Reference Guide](https://www.apache.org/dyn/closer.cgi/lucene/solr/ref-guide/).
+
+> [wikipedia.org/wiki/Apache_Solr](https://en.wikipedia.org/wiki/Apache_Solr)
+
+%%LOGO%%
+
+# How to use this Docker image
+
+To run a single Solr server:
+
+```console
+$ docker run --name my_solr -d -p 8983:8983 -t solr
+```
+
+Then with a web browser go to `http://localhost:8983/` to see the Admin Console (adjust the hostname for your docker host).
+
+To use Solr, you need to create a "core", an index for your data. For example:
+
+```console
+$ docker exec -it --user=solr my_solr bin/solr create_core -c gettingstarted
+```
+
+In the web UI if you click on "Core Admin" you should now see the "gettingstarted" core.
+
+If you want to load some example data:
+
+```console
+$ docker exec -it --user=solr my_solr bin/post -c gettingstarted example/exampledocs/manufacturers.xml
+```
+
+In the UI, find the "Core selector" popup menu and select the "gettingstarted" core, then select the "Query" menu item. This gives you a default search for "*:*" which returns all docs. Hit the "Execute Query" button, and you should see a few docs with data. Congratulations!
+
+To learn more about Solr, see the [Apache Solr Reference Guide](https://cwiki.apache.org/confluence/display/solr/Apache+Solr+Reference+Guide).
+
+## Distributed Solr
+
+You can also run a distributed Solr configuration, with Solr nodes in separate containers, sharing a single ZooKeeper server:
+
+Run ZooKeeper, and define a name so we can link to it:
+
+```console
+$ docker run --name zookeeper -d -p 2181:2181 -p 2888:2888 -p 3888:3888 jplock/zookeeper
+```
+
+Run two Solr nodes, linked to the zookeeper container:
+
+```console
+$ docker run --name solr1 --link zookeeper:ZK -d -p 8983:8983 \
+      solr \
+      bash -c '/opt/solr/bin/solr start -f -z $ZK_PORT_2181_TCP_ADDR:$ZK_PORT_2181_TCP_PORT'
+
+$ docker run --name solr2 --link zookeeper:ZK -d -p 8984:8983 \
+      solr \
+      bash -c '/opt/solr/bin/solr start -f -z $ZK_PORT_2181_TCP_ADDR:$ZK_PORT_2181_TCP_PORT'
+```
+
+Create a collection:
+
+```console
+$ docker exec -i -t solr1 /opt/solr/bin/solr create_collection \
+        -c collection1 -shards 2 -p 8983
+```
+
+Then go to `http://localhost:8983/solr/#/~cloud` (adjust the hostname for your docker host) to see the two shards and Solr nodes.
+
+# About this repository
+
+This repository is available on [github.com/docker-solr/docker-solr](https://github.com/docker-solr/docker-solr), and the official build is on the [Docker Hub](https://hub.docker.com/_/solr/).
+
+This repository is based on (and replaces) `makuk66/docker-solr`, and has been sponsored by [Lucidworks](http://www.lucidworks.com/).

+ 11 - 0
solr/license.md

@@ -0,0 +1,11 @@
+Solr is licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
+
+This repository is also licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
+
+Copyright 2015 Martijn Koster
+
+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.

BIN
solr/logo.png


+ 1 - 0
solr/tag-details.md

@@ -0,0 +1 @@
+<!-- THIS FILE IS GENERATED VIA '.template-helpers/generate-tag-details.pl' -->

+ 9 - 0
solr/user-feedback.md

@@ -0,0 +1,9 @@
+## Issues
+
+Please report issues with this docker image on this [Github project](https://github.com/docker-solr/docker-solr).
+
+For general questions about Solr, see the [Community information](http://lucene.apache.org/solr/resources.html#community), in particular the solr-user mailing list.
+
+## Contributing
+
+If you want to contribute to Solr, see the [Solr Resources](http://lucene.apache.org/solr/resources.html#community).

+ 1 - 0
update.sh

@@ -63,6 +63,7 @@ declare -A otherRepos=(
 	[rocket.chat]='https://github.com/RocketChat/Docker.Official.Image'
 	[ros]='https://github.com/osrf/docker_images'
 	[sentry]='https://github.com/getsentry/docker-sentry'
+	[solr]='https://github.com/docker-solr/solr'
 	[sonarqube]='https://github.com/SonarSource/docker-sonarqube'
 	[swarm]='https://github.com/docker/swarm-library-image'
 	[thrift]='https://github.com/ahawkins/docker-thrift'