Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-28574

EAP 81 ubi9 images contain python command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • 8.1.0.Beta, 8.1.0.GA
    • OpenShift
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Is it possible to remove python from EAP 81 Images? I am not aware of python needed for any image functionality. It makes images (builder and runtime) bigger about 30 MB. And makes OpenShift images sensitive for CVEs in python.

      python is located in /usr/lib64/python3.6/

       drwxr-xr-x         0:0      29 MB  │   │   ├── python3.6                                                                       
       __future__.py                                                               
                                                                                                                                     -rw-r--r--         0:0       64 B  │   │   │   ├── __phello__.foo.py                                                           
                                                                                                                                     drwxr-xr-x         0:0     6.8 MB  │   │   │   ├── __pycache__                                                                 
                                                                                                                                     -rw-r--r--         0:0     4.2 kB  │   │   │   │   ├── __future__.cpython-36.opt-1.pyc                                         
                                                                                                                                     -rw-r--r--         0:0     2.2 kB  │   │   │   │   ├── __future__.cpython-36.opt-2.pyc
      

      Seems python is dependency of java and maven rpm packages.

      [root@f350b8ebec7d ~]# microdnf install java-21-openjdk-devel
      
      (microdnf:8): librhsm-WARNING **: 11:03:47.766: Found 0 entitlement certificates
      
      (microdnf:8): librhsm-WARNING **: 11:03:47.767: Found 0 entitlement certificates
      Downloading metadata...
      Downloading metadata...
      Downloading metadata...
      Package                                                                                                                                                                Repository                                                         Size
      Installing:                                                                                                                                                                                                                                   
       NetworkManager-libnm-1:1.48.10-2.el9_5.x86_64                                                                                                                         ubi-9-baseos-rpms                                                1.9 MB
      ...
      pulseaudio-libs-15.0-2.el9.x86_64                                                                                                                                     ubi-9-appstream-rpms                                           699.0 kB
       python-unversioned-command-3.9.19-8.el9_5.1.noarch                      
      

      I woulnd't expect that. Can someone check if that is necessary.

      Python libraries are already present in ubi8 images, but what is different with ubi9 is there is also callable python command available.

              Unassigned Unassigned
              mchoma@redhat.com Martin Choma
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: