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

Adding multiple packages at once #689

Open
SammyWhamy opened this issue Sep 25, 2024 · 4 comments
Open

Adding multiple packages at once #689

SammyWhamy opened this issue Sep 25, 2024 · 4 comments

Comments

@SammyWhamy
Copy link

I would like to see a way to install multiple packages at once. Currently, i run this in docker, and i dont want to make like ~25 api requests just to install the packages. I know you can do something with building the container yourself and adding them, but I don't want to have to maintain the image myself.
I don't mind the install time, but I'd just like an easy way to automate installing a list of packages.

I've also seen stuff about a specfile, which I can't really find any docs on aside from using them in the build step. It would be great if piston could be configured to read the specfile on startup!

@karastoyanov
Copy link

I had the same use case. My solution was to write a Python script which executes once the container is deployed and sends the POST requests to the Piston endpoint in order to install the runtimes envs.

I am fallowing in case another alternative exists.

@SammyWhamy
Copy link
Author

Yes this is my seemingly the only option currently. If there was a way to at least do multiple packages in one api request, that would be much more viable. But as per #270 this was rejected and instead implemented in the cli.

@dreamgineer
Copy link

There is absolutely no reason to worry about API request count or bandwidth when you're requesting in the same server. although this might be useful in multi-server setup.

@SammyWhamy
Copy link
Author

It's not about throughput, it's about the fact I'd have to use some other language to, for example, loop over an array of package specifications to then execute them one by one.
Piston seems to have a nice thing doing exactly this (specfile) but currently seems to be only usable in the build stage (Please correct me if im wrong on this). It would be very nice if this can be used on startup too. This way I'd just need to commit one specfile, which would also make sure I'm up to date on versions and get new packages once they are available in piston

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

3 participants