Skip to content

Luzilla/ntr-couch-docker

 
 

Repository files navigation

CouchDB with Cloudant search

This is a merge from apache/couchdb-docker and homerjam/cloudant-search

The goal is to make a production ready and up to date docker container with Cloudant search, geo search (future) and CouchDB

Current version is CouchDB 2.2.1 with full text search capabilities that follows the steps from this blog post from Cloudant.

Full text searching is enabled and fully functional. See the Cloudant documentation for more info on how to test use the full text searching capabilities.

Prerequisites

  • You need to have a recent version of Docker installed
  • You need to have Minikube
  • You need to have helm

Executing the Stack

This repository contains two helm charts:

  • .helm/cloudless-couchdb
  • .helm/cloudless-kubeseal

These charts serve as an example for a small Minikube deployment.

Deploy the cluster:

$ make helm-deploy
$ make cluster # this prints an IP:PORT to use for Fauxton
...
$ make helm-undeploy

Behind the scenese

  1. We deploy our helm chart for Kubeseal first, followed by the chart for cloudless-couchdb.
  2. In between, we ensure our master.key is used so the admin secret for CouchDB can be decrypted.

Secret and SealedSecret

Speaking of secrets! Kubeseal creates a Secret, from our SealedSecret.

Check out couchdb-secret.json-dist for our "un-sealed" base.

The sealed result is checked into .helm/cloudless-couchdb/templates/couchdb-admin-secret.yaml.

About

cloudant search with up to date couchdb

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 33.3%
  • Shell 25.9%
  • Makefile 24.1%
  • Ruby 11.0%
  • Smarty 5.7%