-
Notifications
You must be signed in to change notification settings - Fork 301
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
local_resource should have a way to expose stdin #3442
Labels
enhancement
New feature or request
Comments
nicks
changed the title
local_resource should have a way to expose stding
local_resource should have a way to expose stdin
Jun 11, 2020
Just ran into this issue trying to get Tilt to run the webpack dev server. In case anyone else searches for the error, it prints |
@lizzthabet nope! that's just for local() in the tiltfile. i wouldn't be surprised if webpack got fixed to handle this mode, but there are still lots of tools that don't handle stdin correctly. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Repro steps:
Expected behavior:
We should start up the tilt webpack server on 3000
Actual behavior:
The tilt webpack server dies with exit code 0 immediately
The problem:
Webpack exits immediately if no stdin is attached to the process
The workaround:
Rewrite the Tiltfile like this:
which creates a "dumb" stdin that webpack can pull from forever
Possible solutions:
Most orchestration systems have an
stdin
parameter so you can specify stdinhttps://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core
The text was updated successfully, but these errors were encountered: