-
Notifications
You must be signed in to change notification settings - Fork 96
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
Mounted MFEs with node_modules missing fail to start the server #218
Comments
I conclude to two solutions: Solution 1:While mounting, add this line in the volume: authn: # Work on this MFE for development
image: "docker.io/overhangio/openedx-authn-dev:18.0.0"
...
volumes:
- ../plugins/mfe/apps/mfe/webpack.dev-tutor.config.js:/openedx/app/webpack.dev-tutor.config.js:ro
- /host-machine-path/.../frontend-app-authn:/openedx/app
- /openedx/app/node_modules # here, we're ignoring node_modules
... Pros:
Cons:
Solution 2:As @DawoudSheraz mentioned this method above, we can install node_modules in the host machine project folder after the mounting process (this is binding; we are binding our host machine files to container files). Pros:
Cons:
Feel free to share if you have any other method to tackle this thing. |
@hinakhadim |
Solution 1 flow:
By using solution 1, we will not face Solution 2 flow:
@arbrandes @regisb any suggestions are highly appreciated. |
I think the answer is to run |
This issue is a similar issue to overhangio/tutor#997. The steps to reproduce are:
fedx-script not found
Like the mentioned issue in tutor core, the bind-mounted MFE during image build does not get node_modules copied back to host. When running tutor, the host MFE directory without node_modules overrides the installed node_modules within image, thus resulting in fedx-script not found.
The text was updated successfully, but these errors were encountered: