Update dockerfile to explictly add node-gyp #845
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What it does
This may be a known issue or have an undocumented workaround but in following along with
DOCKER.md
and runningdocker_build.sh
, I was seeing a non-zero exit status with the following output:It looks like explicitly updating the
Dockerfile
to add thisnode-gyp
dependency fixes this error.Why it is important
It's nice to meet developers where they are at. Fixing this script ensure that developers can choose to develop dockerized or not 🎉
UI Change Screenshot
Not applicable
Implementation notes
I was able to find others talking about similar issues that required doing a
yarn global add node-gyp
-- this issue is a nice inroad into lots of similar complaints. I'd personally like to understand the root of this a bit more. There was some talk about this being a concurrency problem but addingCHILD_CONCURRENCY=1
to theyarn global add heroku
produced the same error state. Since following the suggestion of the command output itself fixes this, I'm willing to just close my eyes and move on. Very happy to take feedback that this needs more investigation.Your bandwidth for additional changes to this PR
Please choose one of the following to help the project maintainers provide the appropriate level of support: