-
Notifications
You must be signed in to change notification settings - Fork 1k
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
RHEL 8 Support for CouchDB #2231
Comments
There is already a discussion about this at apache/couchdb-pkg#55. If it's of interest, the Cloudant/IBM team maintain a Red Hat certified CouchDB container (based on UBI 7) at https://access.redhat.com/containers/?tab=overview#/registry.connect.redhat.com/ibm/couchdb2. We'll update it to use ubi8 when the CouchDB packages are available. |
Thanks for your fast reply, I'll have a look into that image. |
RPMs for CentOS 8 are now published. Follow the usual instructions. |
That are good news, thanks for following up on this @wohali. |
I run a quick sniff test but had no success installing it on CentOS 8 Docker image. I used http://docs.couchdb.org/en/latest/install/unix.html#installation-using-the-apache-couchdb-convenience-binary-packages as starting point. Example
Build output
Were the packages python-requests and python-progressbar and maybe renamed in CentOS 8? |
Good catch, it's python3-requests and there is no python3-progress bar (which is an optional dependency anyway). I'll have to respin them; for now the packages are taken down. |
@konrad-ohms New package is up - can you test for me? Thanks! |
@konrad-ohms fyi here's my install transcript of it working fine: [root@be33776c0942 /]# vi /etc/yum.repos.d/couchdb.repo
[root@be33776c0942 /]# cat /etc/yum.repos.d/couchdb.repo
[bintray--apache-couchdb-rpm]
name=bintray--apache-couchdb-rpm
baseurl=http://apache.bintray.com/couchdb-rpm/el$releasever/$basearch/
gpgcheck=0
repo_gpgcheck=0
enabled=1
[root@be33776c0942 /]# yum -y install epel-release
Failed to set locale, defaulting to C
CentOS-8 - AppStream 1.0 MB/s | 5.6 MB 00:05
CentOS-8 - Base 1.3 MB/s | 5.3 MB 00:03
CentOS-8 - Extras 1.8 kB/s | 2.1 kB 00:01
bintray--apache-couchdb-rpm 14 kB/s | 22 kB 00:01
Dependencies resolved.
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
epel-release noarch 8-5.el8 extras 22 k
Transaction Summary
====================================================================================================================================
Install 1 Package
Total download size: 22 k
Installed size: 30 k
Downloading Packages:
epel-release-8-5.el8.noarch.rpm 335 kB/s | 22 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------
Total 141 kB/s | 22 kB 00:00
warning: /var/cache/dnf/extras-cbfb2f07b0021b7e/packages/epel-release-8-5.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
CentOS-8 - Extras 1.6 MB/s | 1.6 kB 00:00
Importing GPG key 0x8483C65D:
Userid : "CentOS (CentOS Official Signing Key) <security@centos.org>"
Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : epel-release-8-5.el8.noarch 1/1
Running scriptlet: epel-release-8-5.el8.noarch 1/1
Verifying : epel-release-8-5.el8.noarch 1/1
Installed:
epel-release-8-5.el8.noarch
Complete!
[root@be33776c0942 /]# yum install couchdb
Failed to set locale, defaulting to C
Extra Packages for Enterprise Linux 8 - x86_64 660 kB/s | 2.1 MB 00:03
Last metadata expiration check: 0:00:01 ago on Fri Oct 11 02:44:29 2019.
Dependencies resolved.
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
couchdb x86_64 2.3.1-1.el8 bintray--apache-couchdb-rpm 24 M
Installing dependencies:
nspr x86_64 4.20.0-2.el8 AppStream 143 k
libicu x86_64 60.2-7.el8 BaseOS 8.8 M
python3-chardet noarch 3.0.4-7.el8 BaseOS 195 k
python3-idna noarch 2.5-5.el8 BaseOS 97 k
python3-pysocks noarch 1.6.8-3.el8 BaseOS 34 k
python3-requests noarch 2.20.0-1.el8 BaseOS 123 k
python3-urllib3 noarch 1.23-5.el8 BaseOS 178 k
couch-js x86_64 1:1.8.5-21.el8 bintray--apache-couchdb-rpm 2.1 M
Transaction Summary
====================================================================================================================================
Install 9 Packages
Total download size: 35 M
Installed size: 101 M
Is this ok [y/N]: y
Downloading Packages:
(1/9): nspr-4.20.0-2.el8.x86_64.rpm 461 kB/s | 143 kB 00:00
(2/9): python3-idna-2.5-5.el8.noarch.rpm 341 kB/s | 97 kB 00:00
(3/9): python3-pysocks-1.6.8-3.el8.noarch.rpm 243 kB/s | 34 kB 00:00
(4/9): python3-requests-2.20.0-1.el8.noarch.rpm 505 kB/s | 123 kB 00:00
(5/9): python3-chardet-3.0.4-7.el8.noarch.rpm 188 kB/s | 195 kB 00:01
(6/9): python3-urllib3-1.23-5.el8.noarch.rpm 586 kB/s | 178 kB 00:00
(7/9): couch-js-1.8.5-21.el8.x86_64.rpm 740 kB/s | 2.1 MB 00:02
(8/9): libicu-60.2-7.el8.x86_64.rpm 557 kB/s | 8.8 MB 00:16
(9/9): couchdb-2.3.1-1.el8.x86_64.rpm 1.2 MB/s | 24 MB 00:20
------------------------------------------------------------------------------------------------------------------------------------
Total 1.6 MB/s | 35 MB 00:22
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : python3-pysocks-1.6.8-3.el8.noarch 1/9
Installing : python3-urllib3-1.23-5.el8.noarch 2/9
Installing : python3-idna-2.5-5.el8.noarch 3/9
Installing : python3-chardet-3.0.4-7.el8.noarch 4/9
Installing : python3-requests-2.20.0-1.el8.noarch 5/9
Installing : libicu-60.2-7.el8.x86_64 6/9
Running scriptlet: libicu-60.2-7.el8.x86_64 6/9
Installing : nspr-4.20.0-2.el8.x86_64 7/9
Running scriptlet: nspr-4.20.0-2.el8.x86_64 7/9
Installing : couch-js-1:1.8.5-21.el8.x86_64 8/9
Running scriptlet: couch-js-1:1.8.5-21.el8.x86_64 8/9
Running scriptlet: couchdb-2.3.1-1.el8.x86_64 9/9
Installing : couchdb-2.3.1-1.el8.x86_64 9/9
Running scriptlet: couchdb-2.3.1-1.el8.x86_64 9/9
Verifying : nspr-4.20.0-2.el8.x86_64 1/9
Verifying : libicu-60.2-7.el8.x86_64 2/9
Verifying : python3-chardet-3.0.4-7.el8.noarch 3/9
Verifying : python3-idna-2.5-5.el8.noarch 4/9
Verifying : python3-pysocks-1.6.8-3.el8.noarch 5/9
Verifying : python3-requests-2.20.0-1.el8.noarch 6/9
Verifying : python3-urllib3-1.23-5.el8.noarch 7/9
Verifying : couch-js-1:1.8.5-21.el8.x86_64 8/9
Verifying : couchdb-2.3.1-1.el8.x86_64 9/9
Installed:
couchdb-2.3.1-1.el8.x86_64 nspr-4.20.0-2.el8.x86_64 libicu-60.2-7.el8.x86_64
python3-chardet-3.0.4-7.el8.noarch python3-idna-2.5-5.el8.noarch python3-pysocks-1.6.8-3.el8.noarch
python3-requests-2.20.0-1.el8.noarch python3-urllib3-1.23-5.el8.noarch couch-js-1:1.8.5-21.el8.x86_64
Complete!
[root@be33776c0942 /]# # because this is Docker and systemd is not running:
[root@be33776c0942 /]# /opt/couchdb/bin/couchdb &
[1] 94
[root@be33776c0942 /]# curl localhost:5984
{"couchdb":"Welcome","version":"2.3.1","git_sha":"c298091a4","uuid":"0a36733d84b201682ad025265b360a45","features":["pluggable-storage-engines","scheduler"],"vendor":{"name":"The Apache Software Foundation"}} I doubt there are further issues, but if there are, please let me know. |
Thank you very much @wohali, I tried the build from yesterday again, this time the dependencies could be resolved:
|
Just recognized, that it even works without enabling EPEL, even better :-) |
Summary
CouchDB v2.3.1 does not provide RPM packages for Red Hat Enterprise Linux 8 at the moment, the bintray repositories are only providing el6 and el7 packages.
Desired Behaviour
I would appreciate having RPM based precompiled packages for RHEL 8 hosts (released in May 2019).
Possible Solution
Add CentOS 8 build node in Jenkins
couchdb/Jenkinsfile
Lines 145 to 183 in a5858b9
Additional context
While trying to build a CouchDB OCI/Docker image for the Red Hat's OpenShift platform I tried to find installation instructions of CouchDB for Red Hat based installations. I found instructions to install CouchDB 2.3.1 on RHEL 6 and RHEL 7, but it looks like that no package is available for RHEL 8. Is it planned to add support for RHEL 8 in future or maybe only in new CouchDB versions?
Currently my other images are based on Red Hat Universal Base Image 8 (base image name:
registry.access.redhat.com/ubi8-minimal
, see also RHEL 8 Documentation or Introducing the Red Hat Universal Base Image), CouchDB right now need to use Red Hat Universal Base Image 7 as base image in order to leverage existing rpms for RHEL 7.I cannot directly use docker images provided by the CouchDB project, as only RHEL or UBI based images are getting certified on Red Hat OpenShift, therefore the existing Dockerfile is not an option for my use case as it is based on Debian and will not pass the certification.
The text was updated successfully, but these errors were encountered: