Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1736251

Summary: [RFE] Need ability to install Xvfb in the ubi7 base image
Product: Red Hat Enterprise Linux 7 Reporter: Khary Mendez <kmendez>
Component: ubi7-containerAssignee: Jindrich Novy <jnovy>
Status: CLOSED CANTFIX QA Contact: Martin Jenner <mjenner>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.8CC: jjanz, joachim.kneppeck, jwboyer, rolweber, smccarty, warren.scott.rogers
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-26 01:09:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Khary Mendez 2019-08-01 15:18:23 UTC
Description of problem:
When creating an image based on ubi 7 via a docker build, we are unable to install the package xorg-x11-server-Xvfb (or find any packages that supply Xvfb).  For development purposes, many testing tools rely on Xvfb to perform UI based testing. The ability to install this package would be valuable to support containerized, automated testing. Specifically we require this package to run owasp-zap baseline scans from a container.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Create a Dockerfile as follows:

FROM registry.redhat.io/ubi7/ubi

RUN yum install -y --disableplugin=subscription-manager \
    xorg-x11-server-Xvfb && \
    yum clean all


2. Perform a docker build:

docker build -t ubi-xvfb .


Actual results:
...
Loaded plugins: ovl, product-id, search-disabled-repos
No package xorg-x11-server-Xvfb available.
Error: Nothing to do
The command '/bin/sh -c yum install -y --disableplugin=subscription-manager xorg-x11-server-Xvfb &&     yum clean all' returned a non-zero code: 1


Expected results:
Xvfb package successfully installed

Additional info:

Comment 3 Scott McCarty 2020-02-26 01:09:38 UTC
Thank you for reaching out with this request. We appreciate your interest in Red Hat Universal Base Image. Today, UBI is really targeted towards cloud native, application developers working with languages like Java, Node.js, Golang, .Net, Perl, Python, Ruby, and PHP [1]. Currently, this request does not fall within the currently approved use cases for inclusion in UBI. The scope of UBI will likely grow and we will keep this use case in mind.

[1]: https://developers.redhat.com/blog/2019/10/09/what-is-red-hat-universal-base-image/

Best Regards
Scott McCarty, RHCA
Product Management - Containers, Red Hat Enterprise Linux & OpenShift
Email: smccarty

Comment 4 Roland Weber 2020-05-25 15:44:25 UTC
(In reply to Scott McCarty from comment #3)

The Python package "plotly" for Python and Node.js requires Xvfb or an X11 server to generate images with Orca.
https://github.com/plotly/orca#linux-troubleshooting-headless-server-configuration

That seems to fall into the scope of UBI.

Comment 6 Scott 2022-04-25 13:31:26 UTC
Cypress is an automated testing suite that we use to test Node.js applications within OpenShift, which just happens to be cloud native.  Cypress tests require xvfb.

I believe that fits within the scope.

This should be reopened and the package added.

Comment 7 Jo Knep 2023-06-20 12:29:19 UTC
I ran into same issue an found this workaround on st***overflow:

Create the file /etc/yum.repos.d/centos8.repo

[CentOS-8]
name=CentOS-8
baseurl=http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/
enabled=1
gpgcheck=1
gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official

Then:

rpm --import https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official
dnf install -y xorg-x11-server-Xvfb

If you are trying to run something like cypress headless, you might also need some of these:

atk java-atk-wrapper at-spi2-atk gtk3 libXt mesa-libgbm libdrm