Comments (9)
Hi @DJFliX π
Thanks for your feedback. π
Honestly, I didn't know that adding tini
in the entrypoint could affect another CMD
. π
Can you try launching your Docker image running docker container run -it [your params] --entrypoint "" zenika/alpine-chrome:with-puppeteer
to check it's always working? π
And I'm curious. What does the CMD ["node", "run"]
? π€
from alpine-chrome.
Hey @DJFliX
I was reading your comment: you didn't need to fix older versions of your images. You're safe if they are already built. I know the current tini
commit breaks existing behaviour but older ones are safe. Do you agree with that?
Anyway, can we have a closer look to your problem? π
from alpine-chrome.
Hi @jlandure! Thanks for responding so quickly! So I was (ab)using your container because it contains all the dependencies (including a version of puppeteer matching the version of chromium installed). But I had some quirks out of the box so I decided to add a CMD to my Dockerfile after adding my sources to fix the issue.
So CMD ["node", "run"]
runs my run.js
with node. Because of the new ENTRYPOINT apparently it was trying to call tini instead of my app resulting in a process exit.
I agree that older images won't have to be fixed, but re-running pipelines for older code revisions will now fail. I did work around the issue by overriding the ENTRYPOINT in our container runner (Amazon Elastic Container Service). It's possible that using tini
instead of CMD ["node", "run"]
might fix the quirks I experienced but right now I was just looking for an easy fix to repair my pipelines π .
So I do have a workaround that's not pretty (I always override the ENTRYPOINT in ECS) and quite specific to my environment but it 'solves' it for me.
from alpine-chrome.
Thanks for your reply @DJFliX π
FYI, I've tried an equivalent of your CMD
instruction and have no problem π€
Example:
ls -R
Dockerfile src
./src:
pdf.js
Dockerfile:
FROM zenika/alpine-chrome:with-puppeteer
CMD ["node", "src/pdf"]
Build command: docker build -t zenika/example .
Launch command: docker container run -it --rm -v $(pwd)/src:/usr/src/app/src --cap-add=SYS_ADMIN zenika/example
Can you help me describing your error? logs perhaps? π
from alpine-chrome.
Hi @DJFliX
Do you have any updates to share?
Thanks! π
from alpine-chrome.
Hi @DJFliX π
Last call for any updates to share? Thanks!
from alpine-chrome.
from alpine-chrome.
@all-contributors please add @DJFliX for bug
from alpine-chrome.
I've put up a pull request to add @DJFliX! π
from alpine-chrome.
Related Issues (20)
- Arm64 cpu startup card is stuck, Unable to use HOT 4
- Please add tzdata
- Node 18 now LTS HOT 2
- pulseaudio can't install in 102-with-puppeteer-xvfb HOT 1
- Chrome fails to load web page and crashes due to net::ERR_INSUFFICIENT_RESOURCES HOT 3
- Failed to write file pdf: No such file or directory (2) when using `print-to-pdf` HOT 1
- Support --headless=new HOT 3
- zenika/alpine-chrome:100-with-puppeteer has segmentation fault during apk-upgrade HOT 2
- [Help-Wanted] How to run chrome in docker like `jlesage/firefox`
- R2Devops β€οΈ zenika/alpine-chrome ! HOT 1
- WebGL not work as expected HOT 2
- How to configure supported locales for Intl apis
- cannot install alpine packages HOT 1
- Bun Support HOT 2
- Publish images to ghcr.io as well HOT 1
- How can I have/build a version of zenika/alpine-chrome:with-puppeteer for armv7? HOT 3
- Chrome hangs when taking a screenshot of a page with a large image HOT 3
- When using zenika/alpine-chrome:with-chromedriver docker image then in GitLab CI ChromeDriver was started successfully. is display but it get stuck and do nothing HOT 9
- Unable to load some pages(GPU crash) HOT 1
- Puppeteer version out of sync with Chromium
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alpine-chrome.