Packaging deno packages to be used in an air-gapped environment
I work in an air-gapped environment, where I, as a user have no access to the internet.
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 via artifactory.
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 a few questions:
1. Outside of the airgapped environment, how do I go about packaging that CLI, so that I could use it in an airgapped environment?
2. Can I somehow leverage artifactory and it's proxies to be able to use deno and deno install in the airgapped environment?
Many thanks.4 Replies
Behind the scenes, it’s literally just an http request to the url. You could just clone the repository locally and install it from that
I’m not informed on artifactory so maybe someone else could advise
Is there a guide how to "package" whatever I've
deno install
ed?Currently you do
deno vendor https://deno.land/blah.ts
. It will generate a vendor
folder with everything you need inside
Then you install it with deno install blah.ts
But the vendor
command will be deprecated soon in favor of something elsethanks