apache / couchdb-pkg

Apache CouchDB Packaging support files
https://github.com/apache/couchdb-pkg
Apache License 2.0
30 stars 30 forks source link

Create RPMs for Nouveau and extend CouchDB RPM to optionally include Nouveau #142

Open janl opened 2 months ago

janl commented 2 months ago

The next version of CouchDB (3.4.0) will include a new component for full text search called Nouveau. Nouveau is a Java project that integrates with the rest of CouchDB which is written in Erlang.

We’d like the following scenarios to be handled:

nickva commented 2 months ago

That's a good ideal solution. Initially I think we were going with an intermediate solution if this one proved too difficult.

All the artifacts in one RPM, with both a couchdb service unit file and nouveau unit service file.

By default couchdb service is enabled and nouveau disabled. Configuration can be altered at install time via a environment variable like we do with a COUCHDB_COOKIE.

At runtime users can then enable either service at will via systemd unit commands systemctl enable ...

tcurdt commented 2 months ago

I am lacking context but that does feels oddly complicated.

Why isn't it just like this?

couchdb -optional-> couchdb-fts

couchdb-fts:
  post-install:
    if local couchdb
      reload

Each package exposing binaries, configs and services.

janl commented 2 months ago

@tcurdt we’re looking for someone to help us encode this into the existing package definitions