piston icon indicating copy to clipboard operation
piston copied to clipboard

Build piston from scratch - how to install runtimes?

Open rizal-rovins opened this issue 1 year ago • 11 comments

Hey guys, I'm trying to build piston from scratch , my purpose is to make some modifications and install additional libraries.

  1. I first clone the repo,
  2. install the dependencies : cd cli && npm i && cd -
  3. Start the build : ./piston start
  4. I can see now that my server is running but it has no runtimes.
  5. cli/index.js ppman list > when i run this , it returns empty
  6. 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?

rizal-rovins avatar May 03 '24 10:05 rizal-rovins

Okay, I figured it out. I had to build packages first using : ./piston build-pkg python 3.9.4

rizal-rovins avatar May 03 '24 11:05 rizal-rovins

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.

Brikaa avatar May 03 '24 11:05 Brikaa

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.

Thanks. If I do this, do I need to install packages?

rhlarora84 avatar Jul 30 '24 11:07 rhlarora84

Yes, you would need to install packages only (not build them) as mentioned here. Packages will be installed from the public packages repo.

Brikaa avatar Jul 30 '24 18:07 Brikaa

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?

rhlarora84 avatar Aug 01 '24 14:08 rhlarora84

./piston select dev to install from the packages you built locally.

Brikaa avatar Aug 01 '24 18:08 Brikaa

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

jackrankin avatar Aug 18 '24 22:08 jackrankin