mc256 / starlight

Fast Container Provisioning on the Edge and over the WAN
Apache License 2.0
42 stars 6 forks source link

Can Starlight pull dynamic libraries as needed? #73

Open PerseidMeteor opened 2 months ago

PerseidMeteor commented 2 months ago

Describe your question here

Assuming such a situation, program A needs to use a libhello.so, but libhello.so is in the remote registry and does not exist in the container, can Starlight pull this libhello.so?

As far as I know, it seems that the dynamic linker does not go through the FUSE file system.

mc256 commented 2 months ago

Hi @PerseidMeteor , Starlight is not lazy pulling, all the files that does not exist in the local filesystem WILL be eventually pulled from the registry to the local filesystem. So a simple answer to this question is yes.

mc256 commented 1 month ago

it seems that the dynamic linker does not go through the FUSE file system. I think this is not true.

It depends on how you implement the FUSE API, you can see our implementation here: https://github.com/mc256/starlight/blob/master/client/fs/fs.go#L169-L210

Other docs that you could perhaps refer to: https://www.cs.hmc.edu/~geoff/classes/hmc.cs137.201601/homework/fuse/fuse_doc.html