couchdb-docker icon indicating copy to clipboard operation
couchdb-docker copied to clipboard

Add 3.2.2 UBI / Clouseau reference container

Open willholley opened this issue 2 years ago • 0 comments

Overview

Provide an example container that includes the current CouchDB and Clouseau releases.

How:

  • Clone the 3.2.0-ubi-clouseau directory to 3.2.2-ubi-clouseau
  • In 3.2.2-ubi-clouseau:
    • Update CouchDB to 3.2.2
    • Update Clouseau to 2.21.0
    • Import and configure the SLF4J Simple logger. Clouseau 2.20.0 removed Log4J in favour of SLF4J. For most container applications, logging to Console only should suffice. If alternative SLF4J backends are required they can be imported / configured in a similar fashion.
    • Add support for the COUCHDB_ERLANG_COOKIE environment variable in the Dockerfile entrypoint. This is not precisely the same as in the images without Clouseau because the -ubi-clouseau images already supported passing in a cookie via ERL_FLAGS and extracting it to configure clouseau (which needs the cookie to connect to CouchDB). In this Dockerfile, we always pass the cookie via ERL_FLAGS and will extract it from COUCHDB_ERLANG_COOKIE if passed.

Testing recommendations

cd 3.2.2-ubi-clouseau
docker build . -t couchdb:3.2.2-ubi-clouseau

To run the container:

docker run -it -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password -e COUCHDB_ERLANG_COOKIE=notamonster -p 5984:5984 couchdb:3.2.2-ubi-clouseau

I verified that the container starts, I can create / query search indexes etc. I tested passing in COUCHDB_ERLANG_COOKIE but have not tested permutations beyond that.

GitHub issue number

Related Pull Requests

Checklist

  • [ ] Code is written and works correctly;
  • [ ] Changes are covered by tests;
  • [ ] Documentation reflects the changes;

willholley avatar May 16 '22 12:05 willholley