Git Product home page Git Product logo

docker-solr's Introduction

Solr logo

Solr in Docker

This GitHub repository defines a Docker container for running Solr on Windows.

The images used in this repository are based on Windows Container technology and can only be run using Docker Engine for Windows Containers.

For Solr images that run on Linux-based containers refer to the official Solr page on the Docker Store.

What is Apache Solr?

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

Learn more on the Solr homepage and in the Solr Reference Guide. For more general information refer to the Apache Solr wikipedia page.

Quickstart using Docker Hub

Using the pre-built image from Docker Hub is the fastest way to get Solr up and running on Windows.

To get a Solr instance available on it's default port of 8983 simply run the following commands:

docker pull kevinobee/windows-solr
docker run -d --name my-solr -m 4G kevinobee/windows-solr
Start-Process ("http://{0}:8983" -f (docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' my-solr))

Building and running using the Dockerfile

Build the Dockerfile and tag the image:

docker build -t kevinobee/windows-solr -m 4GB .

To start the Solr container and get it to listen for traffic on port 8983 enter the following command:

docker run -d --name my-solr -m 4G kevinobee/windows-solr

To get the IP address of the running container:

docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' my-solr

To view the Solr instance running within the container in a browser run the following command.

Start-Process ("http://{0}:8983" -f (docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' my-solr))

To stop the running container:

docker stop my-solr

To remove all stopped containers:

docker container prune

To cleanup your Docker environment:

docker system prune --volumes

Project Build Health

Project status:

Build status

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.