Apache Solr Orbit Docker Image

This Docker image provides a container with all dependencies pre-installed so you can run Apache Solr Orbit without a local Python setup.

Prerequisite: Docker Desktop or Docker Engine must be installed.

Running the Image

docker run apache/solr-orbit [ARGS]

For example, passing -h prints the help text. The container exits automatically when the process finishes.

To run interactively:

docker run --entrypoint bash -it apache/solr-orbit -c /bin/bash

This drops you into a shell inside the container where you can invoke solr-orbit with any subcommand or option. Exit the shell to terminate the container.

Building a Local Image

  1. Clone the repository:

    git clone https://github.com/apache/solr-orbit.git
    cd solr-orbit
    
  2. Make any local changes.

  3. Build the image:

    docker build --build-arg VERSION=<version> -t solr-orbit:<tag> -f docker/Dockerfile .
    

    The VERSION build argument is embedded in the image labels. You can set it to any string that identifies your build (e.g. dev or a semantic version).

Dockerfile Best Practices

Follow the Dockerfile best practices guide when modifying the Dockerfile.