-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Create Dockerfile for contributing #9109
Conversation
Hi Alex-Cannon! Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for starting this! can you add a .dockerignore
as well that ignores node_modules
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should install all packages we need for tests to pass. Can you verify yarn && yarn test
passes with this image?
@SimenB thanks for the feedback. I'll work on these changes. I'll keep a log of my work on my top comment. |
Co-Authored-By: Simen Bekkhus <sbekkhus91@gmail.com>
@SimenB looks like all the tests are green. However, I ran
Update: The error went away when I changed my volume mount from this:
@SimenB I looked over
|
I'm not sure if mounting the volume stuff will work properly at all since we need e.g. nested Not sure about the snapshot failure, possibly related to the mounted volume thing? The mercurial errors are expected (for now), see #8653. |
@SimenB got it. So mercurial errors are expected, but not the snapshot errors. I have an idea of what might be going wrong with the snapshots. Troubleshooting now... |
@Alex-Cannon hey! are you still interested in working on this? 🙂 |
This PR should be closed and the work should be continued on pr #13009. |
This PR is stale because it has been open 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
This PR was closed because it has been stalled for 30 days with no activity. Please open a new PR if the issue is still relevant, linking to this one. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Close #9105
To Do
prettier
overCONTRIBUTING.md
Chore && Maintainance
yarn
runs correctlyyarn test
does NOT run correctly. Troubleshooting...Summary
This PR adds a Dockerfile that contributors can use. This allows people to get Jest up and running without manual installation. See #9105 for more details.
I am by no means a Docker or Jest expert. I'm sure there are improvements to this file that can be made. Feel free to let me know any changes that are requested! 👍
Test plan
Simply run the following commands to test this (Tested on Ubuntu 18.04):
Build Jest
docker build -t jest .
Run Jest
$PWD
with the path to your Jest clone.docker run --volume="$PWD:/usr/src/app" --rm jest:latest
Expected Results
.ts
file in/packages
, it should automatically re-compile.