Giter Club home page Giter Club logo

Comments (9)

jlandure avatar jlandure commented on August 23, 2024 1

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.

jlandure avatar jlandure commented on August 23, 2024

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.

DJFliX avatar DJFliX commented on August 23, 2024

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.

jlandure avatar jlandure commented on August 23, 2024

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.

jlandure avatar jlandure commented on August 23, 2024

Hi @DJFliX
Do you have any updates to share?
Thanks! πŸ‘

from alpine-chrome.

jlandure avatar jlandure commented on August 23, 2024

Hi @DJFliX πŸ‘‹
Last call for any updates to share? Thanks!

from alpine-chrome.

DJFliX avatar DJFliX commented on August 23, 2024

from alpine-chrome.

jlandure avatar jlandure commented on August 23, 2024

@all-contributors please add @DJFliX for bug

from alpine-chrome.

allcontributors avatar allcontributors commented on August 23, 2024

@jlandure

I've put up a pull request to add @DJFliX! πŸŽ‰

from alpine-chrome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.