vmware / photon

Minimal Linux container host
https://vmware.github.io/photon
Other
3.05k stars 697 forks source link

Unable to run puppeteer on Photon OS container. Unable to install required libraries #1346

Open RamWebDev opened 2 years ago

RamWebDev commented 2 years ago

Describe the bug

I am using Photon OS as container and trying to install and run puppeteer in it and it is failing to install missing libraries. Tried via tdnf and yum, both fails. Even tried adding addition repo to /etc/yum.repos.d but it failed with certificate error.

Can you please help me in installing below mentioned libaries in Photon OS container, which are pre-requites for running puppeteer to run? yum install pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 ipa-gothic-fonts xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-utils xorg-x11-fonts-cyrillic xorg-x11-fonts-Type1 xorg-x11-fonts-misc

Same works with CentOS following the steps mentioned in link below https://frugalisminds.com/how-to-setup-puppeteer-in-centos-7/ yum install pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 ipa-gothic-fonts xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-utils xorg-x11-fonts-cyrillic xorg-x11-fonts-Type1 xorg-x11-fonts-misc

In Ubuntu OS, below libraries are required as pre-requites for puppeteer to run and was able to install them in Ubuntu OS and get puppeteer up and running

apt-get update && sudo apt-get install -y --no-install-recommends \
        gosu \
        libpangocairo-1.0-0 \
        libx11-xcb1 \
        libxcomposite1 \
        libxcursor1 \
        libxdamage1 \
        libxi6 \
        libxtst6 \
        libnss3 \
        libcups2 \
        libxss1 \
        libxrandr2 \
        libgconf-2-4 \
        libasound2 \
        libatk1.0-0 \
        libgtk-3-0 \
        libxcb-dri3-0 \
        libdrm2 \
        libgbm1

Reproduction steps

1. Having Docker runtime running, download Photon OS from docker hub
2. FROM photon:4.0
3. Follow the steps mentioned in link below on Photon OS container
https://frugalisminds.com/how-to-setup-puppeteer-in-centos-7/
4. Unable to install pre-requites libraries to get puppeteer running on Photon OS
5. Follow the same steps in CentOS container
6. FROM centos:7
7. You can observe that dependent libraries get installed in CentOS7 container and puppeteer works fine whereas, in Photon OS container, we are unable to install dependent libraries and puppeteer is unable to run.

Expected behavior

Follow the steps mentioned in https://frugalisminds.com/how-to-setup-puppeteer-in-centos-7/ and get puppeteer up and running in Photon OS container. Should be able to install dependent libraries.

Additional context

No response

Vasavisirnapalli commented 2 years ago

@gpiyush-dev