Build piston from scratch - how to install runtimes?
Hey guys, I'm trying to build piston from scratch , my purpose is to make some modifications and install additional libraries.
- I first clone the repo,
- install the dependencies : cd cli && npm i && cd -
- Start the build : ./piston start
- I can see now that my server is running but it has no runtimes.
- cli/index.js ppman list > when i run this , it returns empty
- cli/index.js ppman install python > when i run this , Requested package python-* does not exist
I'm not able to install any packages, what am i missing here?
Okay, I figured it out.
I had to build packages first using :
./piston build-pkg python 3.9.4
You can do ./piston select prod to run on the production environment and you wouldn't need to build the packages. You would just install them.
You can do
./piston select prodto run on the production environment and you wouldn't need to build the packages. You would just install them.
Thanks. If I do this, do I need to install packages?
Yes, you would need to install packages only (not build them) as mentioned here. Packages will be installed from the public packages repo.
Thanks Brikaa for your help. That worked. Is there a way to avoid downloading those packages from public packages repo and use the local ones?
./piston select dev to install from the packages you built locally.
how can you use this to make an image with the builder script? im trying to make an image that has python preinstalled with the custom packages