[course-authoring-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/: #0 128.7 npm notice #0 128.7 npm notice New patch version of npm available! 10.2.3 → 10.2.5 #0 128.7 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.5 #0 128.7 npm notice Run npm install -g npm@10.2.5 to update! #0 128.7 npm notice #0 128.7 npm ERR! code ETIMEDOUT #0 128.7 npm ERR! syscall read #0 128.7 npm ERR! errno -110 #0 128.7 npm ERR! network read ETIMEDOUT #0 128.7 npm ERR! network This is a problem related to network connectivity. #0 128.7 npm ERR! network In most cases you are behind a proxy or have bad network settings. #0 128.7 npm ERR! network #0 128.7 npm ERR! network If you are behind a proxy, please make sure that the #0 128.7 npm ERR! network ‘proxy’ config is set properly. See: ‘npm help config’ #0 128.9 #0 128.9 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-12-20T14_07_59_480Z-debug-0.log
[account-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/: #0 33.92 npm WARN deprecated redux-devtools-extension@2.13.9: Package moved to @redux-devtools/extension. #0 34.95 npm WARN deprecated source-map-resolve@0.5.3: See GitHub - lydell/source-map-resolve: [DEPRECATED] Resolve the source map and/or sources for a generated file. #0 35.00 npm WARN deprecated formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: formidable/VERSION_NOTES.md at master · node-formidable/formidable · GitHub #0 35.12 npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added #0 39.60 npm notice #0 39.60 npm notice New patch version of npm available! 10.2.3 → 10.2.5 #0 39.60 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.5 #0 39.60 npm notice Run npm install -g npm@10.2.5 to update! #0 39.60 npm notice #0 39.60 npm ERR! code ECONNRESET #0 39.60 npm ERR! syscall read #0 39.60 npm ERR! errno -104 #0 39.60 npm ERR! network read ECONNRESET #0 39.60 npm ERR! network This is a problem related to network connectivity. #0 39.60 npm ERR! network In most cases you are behind a proxy or have bad network settings. #0 39.60 npm ERR! network #0 39.60 npm ERR! network If you are behind a proxy, please make sure that the #0 39.60 npm ERR! network ‘proxy’ config is set properly. See: ‘npm help config’ #0 39.69 #0 39.69 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-12-21T12_19_16_776Z-debug-0.log
FROM base AS account-common
COPY --from=account-src /package.json /openedx/app/package.json
COPY --from=account-src /package-lock.json /openedx/app/package-lock.json
ARG NPM_REGISTRY=https://registry.npmjs.org/
ENV CPPFLAGS=-DPNG_ARM_NEON_OPT=0
ENV PACT_SKIP_BINARY_INSTALL=true
(line 125) RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --registry=$NPM_REGISTRY
COPY --from=account-src / /openedx/app
COPY --from=account-i18n /openedx/app/src/i18n/messages /openedx/app/src/i18n/messages
# Whenever a new MFE supports Atlas, it should be added to this list.
# When all MFEs support Atlas, this if-statement should be removed.
EXPOSE 1997
# Configuration needed at build time
ENV APP_ID=account
ENV PUBLIC_PATH='/account/'
# We could in theory point the mfe_config API directly to the LMS. But for that we would
# have to code the LMS url into the mfe image, and this configuration is user-dependent.
# So we point to a relative url that will be a proxy for the LMS.
ENV MFE_CONFIG_API_URL=/api/mfe_config/v1
ARG ENABLE_NEW_RELIC=false```
I really need a help :(
As you can see [account-common 3/5] is the packed mfe which already existed when I enable mfe plugin in docker tutor.
What I did was:
pip install "tutor[full]"
tutor plugins enable mfe
# after mfe plugin enabled, I run:
tutor build images --no-cache mfe
# this is where the error arise
Did you already do a tutor local launch immediately after first installing it? I’ve noticed I run into all sorts of trouble if I don’t do that first. In other words, try running a fully vanilla tutor once, even before you add any customizations.
I wish I had additional suggestion for you. Hopefully some of the more experienced folks can lend some assistance. I’m fairly fresh into this process myself.
nvm use - this tells node version manager to use the node version defined in the .nvmrc file in the root of the folder. This is probably going to be some flavor of node version 18.x.x npm install - installs all relevant packages for the MFE
Once that’s done, you should ideally be able to run tutor dev launch again and have it spin up.
Tip: give your MFE folder a more meaningful name - mfe_frontendapptutor is a bit vague and doesn’t indicate at all what the function of the application is. But it’s your call, ultimately.
I hope some of that helps!
FYI, I learned so much from this repository - https://github.com/Abstract-Tech/community-theme-tutor
I’m sure this setup is specific to their needs, but the way they’ve implemented changes to stock MFEs and incorporated their own really helped me tremendously, plus the instructions helped provide some clarity (although they are a bit messy). If you do decide to try this out, be sure to only use it for local development, as they have commited a config.yml file with prepopulated keys/secrets visible to the public.
I have my plugin name under PLUGINS in the config. Also, I am able to see the page title when opening it but not the body, is there a step I need to do on frontend side? I did a build but its going to dist folder which doesn’t seem to be getting served