nanovms / ops

ops - build and run nanos unikernels
https://ops.city
MIT License
1.27k stars 132 forks source link

How to package a program on the outer layer of a public package? #1624

Closed leeyiding closed 4 months ago

leeyiding commented 4 months ago

Hello, I need to wrap another program on the outside of pkg eyberg/python:3.10.6. For example, the program is called wrapper and runs in a format like wrapper python3 test.py, how can I achieve my goal based on eyberg/python:3.10.6?

eyberg commented 4 months ago

can you give an example? if it's python then you just execute it using '-a test.py'

if it's not python and it's a diff. program than that's not something we support

leeyiding commented 4 months ago

like this: https://github.com/Juice-Labs/Juice-Labs/wiki/Run-Juice I need the Python environment, but juicify as the first parameter and python3 as the second parameter

eyberg commented 4 months ago

no, you wouldn't be able to use this the way it works today as nanos only supports running one program, however, it looks like they use this libjuicejuda to provide the functionality; so i imagine getting this functionality, espc. since it's a client/server model should be straight-forward enough if that lib was available; i was looking around for that and didn't find it immediately though - it looks like they've halted their community version too

leeyiding commented 4 months ago

Thank you very much for your answer. It seems that I am going to give up this project and look for an alternative project.