-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
openBrowser() causes docker-compose set ups to fail because of spawn EACCESS #710
Comments
What is the use case for running npm start inside Docker? (I don't know anything about Docker. :-) |
I run a lot of projects, most of them with different node requirements. It is really convenient to just run this stuff in docker. Think of it as vagrant without the slowness. |
I think there are several cases that justify disabling the browser spawn. One of them being Electron, another being docker-compose, another being missing privileges for spawning processes (e.g. restricted user), another one being that it's cool to have it for demonstration but it get's quickly annoying when developing. I restore sessions on every boot and get multiple tabs of my react app because I forgot to close the old tabs. It's annoying because I hate FF dev tools and every time I run npm start I have to close the tab in ff and open it in chrome. I think it's ok-ish to not support all of the use cases (docker, electron) with dev power, but disabling browser spawn is a very simple thing to do, that will not only resolve those issues, it will also save me and others a lot of anger when dealing with create-react-app. I can speak for myself because I had browser spawn in my projects too until the community got me to rethink and give them something to disable it. Please reconsider your position on this. |
Or at least make it in such a way that openBrowser doesn't kill the npm start process when failing. |
…EACCESS - closes facebook#710 Signed-off-by: Aeneas Rekkas (arekkas) <aeneas@ory.am>
…EACCESS (facebook#711) * openBrowser() causes docker-compose set ups to fail because of spawn EACCESS - closes facebook#710 Signed-off-by: Aeneas Rekkas (arekkas) <aeneas@ory.am> * Ignore errors
Description
I am running
npm start
inside of a docker container that is orchestrated using docker-compose, which isn't working. Running the image with pure docker however works.This issue was already tackled in #306 but rejected.
Expected behavior
The image should boot up normally.
Actual behavior
I get this exception:
Environment
Dockerfile
docker-compose.yml
Then, specify:
Reproducible Demo
Here: https://github.com/arekkas/cra-docker-bug
Solution
Have a setting that disables browser spawn. It's annoying anyways when working with different browers (I use ff for browsing and chrome for dev) ;)
The text was updated successfully, but these errors were encountered: