Unable to run puppeteer on Photon OS container. Unable to install required libraries
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 3.2k
- Forks
- 692
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the photon:4.0 Docker image and reproduce the package installation failures using the listed yum and tdnf commands. Compare the available Photon OS packages and repository certificate behavior with the CentOS steps; done means the required dependencies install and Puppeteer runs in the Photon OS container.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, javascript
- Domain
- devops, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100