#Running typescript sdk into a airgapped env for modules

1 messages ยท Page 1 of 1 (latest)

leaden helm
#

So we have successfully got the python sdk running in an airgapped environment. We would like to do the same for typescript. Basically we took the existing python sdk and changed the images to ref images hosted in our local registry. We also had to change the SDK Source Directory to point to the current module. This all works because the codegen piece is part of the sdk. I looks like the typescript is referencing an sdk directory that includes a built in codegen dir/exectuable that is not part of the baseline. How can we get access to the image the typescript sdk is using so we can extract the directory that the typescript module needs. I think that is all we need. Reference to the container and yank the directory out of it, but not sure how to get a hold of that.

Hopefully that all make sense.

#

This is the line I am referring to:

    WithMountedFile(codegenBinPath, t.SDKSourceDir.File("/codegen")).
leaden helm
#

Pinging @steep snow

steep snow
leaden helm
#

Okay so if I build that and add it to a container and include the sdk source it should be GTG

steep snow
#

It should be yes

leaden helm
#

Thanks!

steep snow
#

Let me know if you need something else ๐Ÿ˜„

leaden helm
#

Will do!

leaden helm
#

Was able to run the typescript module airgapped. Thanks for the help...

dire stump
#

@leaden helm Hi, I am relatively new to dagger and I also need to run the python sdk in an airgapped environment. Could please provide some more detail on how you did that?

steep snow
#

/cc @limpid bone since it looks like it's related to python runtime config ๐Ÿ˜„

leaden helm
#

@dire stump Maybe open a new help conversation and I can walk you through it. But basically the python sdk allow you to override the base image. https://github.com/dagger/dagger/blob/main/sdk/python/runtime/discovery.go You also need to setup mirrors: https://docs.dagger.io/configuration/engine/#custom-registries I need the new base image to have a python config to tell it to use my local python pypi registry.

GitHub

An open-source runtime for composable workflows. Great for AI agents and CI/CD. - dagger/dagger

dire stump
#

@leaden helm Thank you. I will see if I can figure it out from that. If I can't I will open up a new help conversation.