This repository contains source code and instructions for building a builder. You can use the builder to package SOLR with schema configuration as reproducible Docker container images using source-to-image.
For more information about using these images with OpenShift, please see the official OpenShift Documentation.
For more information about the open source SOLR search engine goto the Apache website.
Below you can read how to build and how to use. FYI, you don't have to build this repo, you can use a prebuilt image - it's available on docker hub.
SOLR versions available
- 7.2.1
Target versions available
- redhat = RHEL 7 based OpenJDK from access.redhat.com
- jboss = CentOS 7 based OpenJDK for community development use
You'll need to have the s2i tool.
$ docker search dudash/solr
$ docker pull dudash/solr-<version>-<target>:<tag>
Use the s2i
tool to build the final image that contains your SOLR search service
- Hello SOLR from github example
$ s2i build https://github.com/dudash/openshiftexamples-solr.git dudash/solr-66-jboss:latest demo-solr
$ docker run demo-solr
TBD
You can install the S2I SOLR imagestreams from a template:
$ oc create -n openshift -f https://raw.githubusercontent.com/dudash/s2i-solr/master/openshift-resources/solr-all-rhel7-imagestreamlist.json
Note: Drop the -n openshift
if you don't have admin rights... or ask your admin to create it.
To set environment variables, you can place them as a key value pair into a .s2i/environment
file inside your source code repository.
- TBD
To prepare the s2i builder image:
$ git clone https://github.com/dudash/s2i-solr.git
$ cd s2i-solr
$ make build VERSION=<version> TARGET=<target>
**[solr-version]/Dockerfile**: Dockerfile to build container images from **[solr-version]/Dockerfile.xxx**: Dockerfile to build alternative container images **[solr-version]/test/test-app**: Sample application used for tests **hack/**: Folder containing scripts which are responsible for the build and test actions performed by the Makefile **s2i/**: Build scripts which will be injected into the builder image and executed during application source code builds