Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 3.2.2 UBI / Clouseau reference container #223

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

willholley
Copy link
Member

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;

Why:

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:

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant