bisakhmondal commented on pull request #1788:
URL: https://github.com/apache/apisix-dashboard/pull/1788#issuecomment-841797154


   > Hi, @bisakhmondal
   > 
   > > it will have another job that is writing the lua package into temporary 
directory (`os.TempDir()`).
   > > I don't get the point of this line, can you give more details about it ?
   
   Sure. Actually because of this
   
https://github.com/apache/apisix-dashboard/blob/a59e8eff7ecdf38c197b4678c34d2fd15f364f72/api/internal/handler/route/route.go#L280-L296
   
   Line 281: navigating to lua package directory
   Line 296: Importing the package from the same directory.
   
   But the issue is with import when the package is in a filesystem that is 
inside memory/RAM (due to embedding).
   So, as a workaround, we can  do something like
   1. embed the package. {provides the flexibility of a single binary}
   2. when manager-api starts, it will dump the memory content of the package 
into a temp directory (maybe say /tmp). Now it'll work fine.
   What do you think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to