-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add official image for PM2 runtime #3888
Conversation
We know that currently we use the latest version each time we build the image, and we are looking for solution but since we need the have different image for each
Do someone has an idea on how to handle this without these problems ? |
As a Docker user that previously used pm2 outside of containers [1] I feel like this encourages users to not use Docker in a way Docker is optimized for: Immutable, reproducible containers that run a single atomic service. The main issue of the PID 1 problem inside containers is easily solved by adding the All in all I don't really see the benefit in an official pm2 image that after all only saves the user a single Am I missing something? [1] In fact I still do on a machine for a few legacy services. |
Hi @TimWolla, Using PM2 to run Node.js in production is beneficial for these reasons:
Just to cite some of the key features when using pm2 inside containers (w/o speaking about process files, automatic json logs transposition and so on) and we are moving toward offering more and more features for Node.js users that use containers. I don't think the "single atomic service" is still a credo at Docker; I let you compare how PHP, Python, Java applications are handled inside containers. After all it's a question of technical choice. We have a growing user base using Docker & PM2 and we are now doing efforts to answer to the community by offering a good integration with Docker (now there is even a pm2-docker binary that is a pre-configured PM2 for Docker + we built an Docker official image and now there is this PR). Best, |
@vmarchaud I think there's been a little misunderstanding here -- @TimWolla is definitely not confused about the benefits of PM2, but on the contrary is a fan (and is actively using it in at least one deployment, from the sounds of it) The thing @TimWolla is trying to point out is that having a dedicated There have been other images somewhat similar to what's proposed here, at least in their intended usage, that have since been deprecated. The most similar that comes to mind is Other examples I can think of are |
@tianon Forgot to answer but thanks for the explanation, i understand that the cost is too high here ! |
Summary
This PR add the
pm2
file as requested in the README, the PR for the documentation is here.Github repo: https://github.com/Unitech/pm2
Checklist for Review
NOTE: This checklist is intended for the use of the Official Images maintainers both to track the status of your PR and to help inform you and others of where we're at. As such, please leave the "checking" of items to the repository maintainers. If there is a point below for which you would like to provide additional information or note completion, please do so by commenting on the PR. Thanks! (and thanks for staying patient with us ❤️)
- @keymetrics / @Unitech / @vmarchaud
- not sure but i would say
service
- see https://github.com/Unitech/pm2
- add pm2 runtime image doc docs#1118
foobar
needs Node.js, hasFROM node:...
instead of grabbingnode
via other means been considered?)FROM scratch
, tarballs only exist in a single commit within the associated history?- We have our tests here and the build are done here