Git Product home page Git Product logo

openshift-solr's Introduction

Containerized SOLR + OpenShift

Apache SOLR makes it easy to add search capability into your Java apps. SOLR is a search server (backed by the Lucene serach library). This repository provides a way for you to take advantage of that in OpenShift.

THIS IS CURRENTLY IN WORK ---- YMMV

There are 2 distinct parts to this repo:

(1) A Dockerfile

This overrides the official SOLR image to tweak a few things in order to run SOLR efficiently on OpenShift.

FYI, you don't have to build the image, you can use a prebuilt image - I'll try to keep updated versions of it available on docker hub.

docker hub stats

(2) S2I scripts (comging soon)

These are to allow you to easily push your project specific configuration files in to SOLR.

How to use all of this with your apps

Sounds cool right? It is. And here's how you can use it.

If you just want to try running SOLR in OpenShift...

Create the SOLR app from a Docker image > oc new-app dudash/openshift-solr --name=solr-imageonly-demo

Now you can access it via the route that was automatically exposed on port 8983 and whereever your OpenShift apps route (e.g. openshift-solr-myproject.127.0.0.1.nip.io). Note: this won't autogenerate a SOLR core.

If you want to provide configuration in an automated way...

  • Create a repo

  • Create a folder called conf and add SOLT config files for your desired SOLR configuration (See here for an example).

  • Create a new app using oc CLI (this will also create the SOLR core and inject your configuration). Note: if your 'conf' dir isn't at the root of your repo, you'll need to append '--context-dir=PATH' > oc new-app dudash/openshift-solr~https://github.com/[YOU]/[YOUR-REPO].git --name=solr-demo

Now you can access it via the route that was automatically exposed on port 8983 and whereever your OpenShift apps route (e.g. openshift-solr-myproject.127.0.0.1.nip.io). And a SOLR core is automatically created for use.

  • (optionally) You can import the image stream to make this available in the webconsole of OpenShift > TBD need to write the image stream template

Cluster considerations

TBD node selectors to make sure SOLR goes to a node w/ enough memory TBD using with persistent storage

About this repo

Here is some information about how this all works behind the scenes.

The Dockerfile

The S2I process

This repo doesn't require the s2i tool to build the image. However, if you look into the Dockerfile, it does set some s2i LABELS in order for OpenShift to be able to use it as an s2i builder image.

assemble script details

TBD

run script details

TBD

Want to help?

If you find and issues, go ahead and write them up. If you want to submit some code changes, please see the CONTRIBUTING docs.

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.