Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build piston from scratch - how to install runtimes? #657

Open
rizal-rovins opened this issue May 3, 2024 · 7 comments
Open

Build piston from scratch - how to install runtimes? #657

rizal-rovins opened this issue May 3, 2024 · 7 comments

Comments

@rizal-rovins
Copy link

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
Copy link
Author

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

@Brikaa
Copy link
Member

Brikaa commented May 3, 2024

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.

@rhlarora84
Copy link

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?

@Brikaa
Copy link
Member

Brikaa commented Jul 30, 2024

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

@rhlarora84
Copy link

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?

@Brikaa
Copy link
Member

Brikaa commented Aug 1, 2024

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

@jackrankin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants