question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configurable binary asset download (source) location

See original GitHub issue

This feature request originated here https://github.com/prisma/prisma2/issues/916

and is not covered via https://github.com/prisma/prisma2/issues/506

Prisma CLI, tries to download binaries from Prisma’s S3 bucket. In some environments, this download fails.

This requires spec work but a potential solution can be to have a configurable CDN URL via an env var like PRISMA_CDN_URL.

The responsibility of maintaining a mirror would be on the users.

An alternative is to link binaries to a release: https://github.com/prisma/prisma2/releases

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
game7commented, Jan 29, 2020

I’ve also been having proxy/firewall issues but after digging around the code I’ve discovered that the binary asset locations are already configurable via environment variables. In my case I’m able to wget the binaries down to my container via our corporate proxy and simply point to them locally using these environment variables:

const binaryToEnvVar = {
  'migration-engine': 'PRISMA_MIGRATION_ENGINE_BINARY',
  'query-engine': 'PRISMA_QUERY_ENGINE_BINARY',
  'introspection-engine': 'PRISMA_INTROSPECTION_ENGINE_BINARY',
}
2reactions
timsuchanekcommented, Apr 2, 2020

Support for the env var PRISMA_BINARIES_MIRROR is now implemented. A valid example URL is: https://binaries.prisma.sh

You can try it out in the latest alpha: @prisma/cli@alpha & @prisma/client@alpha

Read more comments on GitHub >

github_iconTop Results From Across the Web

Asset Modules - webpack
Asset Modules is a type of module that allows one to use asset files (fonts, icons, etc) without configuring additional loaders. Prior to...
Read more >
Installation from binary - Docs - Gitea
Download. You can find the file matching your platform from the downloads page after navigating to the version you want to download.
Read more >
Download assets | Adobe Experience Manager
When you select a folder to download, the complete asset hierarchy under the folder is downloaded. To include each asset you download (including ......
Read more >
Manual: Storing and loading binary data in an AssetBundle
bytes” extension. Unity will treat this file as a TextAsset. As a TextAsset the file can be included when you build your AssetBundle....
Read more >
ASP.NET Core Blazor file downloads - Microsoft Learn
Files can be downloaded from the app's own static assets or from any other location: ASP.NET Core apps use Static File Middleware to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found