How to run deno in an airgapped environment? Can I package deno applications to be self contained and not require internet access? #21973
Unanswered
AudriusButkevicius
asked this question in
Q&A
Replies: 2 comments
-
Both JSR & deno.land are not supported by JFrog, I have to avoid using @std or any none npm packages. It's really painful. |
Beta Was this translation helpful? Give feedback.
0 replies
-
you can compile an standalone executable: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I work in an air-gapped environment, where I, as a user have no access to the internet, not even via a proxy.
For development, we run JFrog Artifactory which has access to the internet via a proxy, which is effectively a registry (pypi, npm, dockerhub, nuget, etc) mirror. It virus scans artefacts on ingestion.
This means I can still
pip/npm install
things off the internet to do development.Now one of the tools that I'm trying to run internally ships it's CLI via deno, and the instructions are
deno install https://deno.land/blah.ts
.I have no idea what that does behind the scenes or what the transport is for deno.
Hence my questions, with follow up questions
Does deno just use npm behind the scenes, and I could in theory just setup a npm proxy in Artifactory, pointing it to deno.land?
If yes:
deno run https://deno.land/blah
presumably I now dodeno run https://artifactory.local/blah
which now importshttps://deno.land/foo
, does that still work etc.If no:
Can I somehow outside of the air gapped environment package a deno application, so that it's self contained and deno does not need to reach out to the internet to run it?
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions