-
Notifications
You must be signed in to change notification settings - Fork 1
Lock yarn to 1.10.1 in 8-alpine,10-alpine images #42
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
Conversation
|
This is becoming a rabbit hole. I've confirm that this does indeed install dependences to I'm going to try to come up with minimum repro steps to see if its a Jest bug or something with our setup. But it's becoming a time suck, so i don't expect this to move quickly. |
|
...And as @pklingem pointed out, i was using an alpine image which has no Works as expected with the stretch 8 image. Haven't seen any of the missing modules i was seeing before. |
|
@mgreystone sounds like we should install git into those base images? Its needed to install any git-based deps right? |
|
@tecnobrat Nah, twas my misunderstanding. Any image that runs jest or anything else that depends on git can either use stretch or bring git into its own image. No reason to dirty the base image. |
|
We'd prefer single base images, So we're re-evaluating things, but at the end of the day we wanna pick one base image type and stick to it. |
|
I'm going to close this PR for now, we can reopen if it's needed. @mgreystone and I were attempting to move the |
1.10.1NODE_MODULES_DIRenv var, set to/node_moduleswhich can be used toyarn install --modules-folder=$NODE_MODULES_DIR(yes, I refuse to call it a folder).yarn
1.10.0includes a bug fix for a bug preventing using a custom directory fornode_modules. This is a feature we've wanted to use because it will allow us to avoid tricky volume issues with thehack, originally described here. If we put
node_modulesoutside of the/servicepath we can avoid the issues.To test:
make build_10-alpineDockerfilein a clean directory, where theFROMline uses the sha from theSuccessfully built 83ef3548012boutput of the previous command:npm initusing all defaultsyarn add leftpaddocker build .docker run --rm e2c0384e7eaa ls /node_moduleswheree2c0384e7eaais the sha output from the previous commandleftpadin the output8-alpine