I want to make some changes on the authn. For that
- I have to fork the authn repo. I have forked the open-release/redwood.1 as the tutor version I have deployed is redwood.1
- Make the required code changes
- write a custom plugin. My custom plugin looks like
@MFE_APPS.add()
def _add_my_mfe(mfes):
mfes["authn"] = {
"repository": "https://github.com/hamzaCraftsCode/frontend-app-authn",
"port": 1999
}
return mfes
- Activate the plugin
- Lastly build the mfe docker using this command
tutor images build mfe
The docker build begins and gets stuck and throws this error bellow
=> CANCELED [ora-grading-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/ 4834.7s
=> CANCELED [discussions-common 3/8] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/ 4832.3s
=> CANCELED [communications-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/ 4831.1s
=> CANCELED [learner-dashboard-common 3/7] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/ 4833.3s
=> CANCELED [learning-common 3/8] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/ 4834.0s
=> CANCELED [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/ 4831.9s
=> CANCELED [profile-common 3/8] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/ 4835.5s
=> ERROR [gradebook-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/ 4829.1s
=> CANCELED [account-common 3/8] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/ 4831.6s
=> CACHED [authn-common 1/6] COPY --from=authn-src /package.json /openedx/app/package.json 0.0s
=> CACHED [authn-common 2/6] COPY --from=authn-src /package-lock.json /openedx/app/package-lock.json 0.0s
=> CANCELED [authn-common 3/6] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/ 4829.9s
------
> [gradebook-common 3/5] RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/:
4827.9 npm ERR! code EIDLETIMEOUT
4827.9 npm ERR! Idle timeout reached for host registry.npmjs.org:443
4828.3
4828.3 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-09-29T14_37_20_405Z-debug-0.log
------
Dockerfile:270
--------------------
268 | ENV CPPFLAGS=-DPNG_ARM_NEON_OPT=0
269 | ENV PACT_SKIP_BINARY_INSTALL=true
270 | >>> RUN --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --no-fund --registry=$NPM_REGISTRY
271 |
272 |
--------------------
ERROR: failed to solve: process "/bin/sh -c npm clean-install --no-audit --no-fund --registry=$NPM_REGISTRY" did not complete successfully: exit code: 1
Error: Command failed with status 1: docker buildx build --tag=docker.io/overhangio/openedx-mfe:18.0.0-indigo --output=type=docker --cache-from=type=registry,ref=docker.io/overhangio/openedx-mfe:18.0.0-indigo-cache --build-context=authn-src=/root/.local/share/tutor/frontend-app-authn /root/.local/share/tutor/env/plugins/mfe/build/mfe
Please help me with this error.
Thanks in advance!