datahub-project / datahub

The Metadata Platform for your Data and AI Stack
https://datahubproject.io
Apache License 2.0
9.93k stars 2.94k forks source link

Add mirrors for building in enterprise environments #11854

Open mihai103 opened 1 week ago

mihai103 commented 1 week ago

Allow enterprise developers to build it behind corporate firewalls

Issue faced At my company we're prohibited to pull from most public registries (Gradle, Maven, Npm, ...) directly and are forced to go via artifactory mirrors.

There are some missing mirrors that are blocking the isolated build process. I propose the current changes, that add the possibility to pass the GOPROXY_URL mirror as a build argument in the dockerfiles and a npm registry mirror for installing yarn, which can be set through gradle opts property npmRegistryBaseUrl.

With these mirrors set the build is working in the corporate environment. When exiting the corporate network and unsetting these mirrors everything works for me like before.

Please let me know if you see something missing or something is not working properly for you.

Checklist