Skip to content

Conversation

@ARMBouhali
Copy link
Contributor

@ARMBouhali ARMBouhali commented Nov 5, 2022

TL;DR - Use the NPM_REGISTRY config in Dockerfile, the same way it's done in other Tutor Dockerfiles (tutor-discovery, tutor-ecommerce, tutor:openedx, tutor-contrib-credentials).

We just replace the default registry URL with the config NPM_REGISTRY which defaults to the same value.

This is required in order to use a custom registry either for caching or for accessing private packages.

Testing
I've been using that fix for a while. I'm currently surviving long repetitive downloads thanks to my local pull-through cache NPM registry powered by Verdaccio.

FYI @arbrandes @regisb

Passes the `NPM_REGISTRY` config in Dockerfile, the same way it's done in other
tutor Dockerfiles (tutor-discovery, tutor-ecommerce, tutor:openedx, tutor-contrib-credentials)
Copy link
Collaborator

@arbrandes arbrandes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes total sense to me. Thanks!

@arbrandes arbrandes merged commit fc67443 into overhangio:master Nov 7, 2022
@ARMBouhali ARMBouhali deleted the fix-use-config-s-npm-registry branch November 7, 2022 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants