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

Ability to install additional CLI packages? #368

Open
DenverCoder1 opened this issue Dec 27, 2022 · 8 comments
Open

Ability to install additional CLI packages? #368

DenverCoder1 opened this issue Dec 27, 2022 · 8 comments

Comments

@DenverCoder1
Copy link

DenverCoder1 commented Dec 27, 2022

Is it currently possible to tell Vercel to install additional packages to be made available at runtime?

I am not referring to packages installable via Composer, but rather ones you would install for use on the command line.

For example, if I wanted to run inkscape via shell_exec, would I be able to tell Vercel to install the inkscape package and avoid getting the sh: line 98: inkscape: command not found error?

@f3l1x
Copy link
Collaborator

f3l1x commented Dec 30, 2022

Hi. There is build phase and runtime phase. During build phase we can install anything you want. But during runtime phase is it problematic. Is inkscape single binary without dependencies?

@DenverCoder1
Copy link
Author

Thanks for taking a look.

Not sure about dependencies, but it seems there are a few options including an executable Appimage.

https://inkscape.org/release/inkscape-1.2.2/

@DenverCoder1
Copy link
Author

Any update on this?

Is there anything I can do to get inkscape installed?

Or, if not, is it possible to get the Imagick PHP extension?

Thanks!

@f3l1x
Copy link
Collaborator

f3l1x commented Sep 13, 2023

Hi @DenverCoder1, I don't the the easy way how to do it right now.

@DenverCoder1
Copy link
Author

Ok, no problem.

On Heroku, I was able to add third party buildpacks that can install things. I have gotten inkscape working there by adding the buildpack https://github.com/heroku/heroku-buildpack-apt and having an Aptfile with "inkscape" as the contents.

Is it possible to install apt packages listed in a file with Vercel? I'm not really sure how Vercel's runtime works.

@f3l1x
Copy link
Collaborator

f3l1x commented Sep 17, 2023

Aptfile would be great, but it's not possible right now.

@DenverCoder1
Copy link
Author

Okay, I'll look forward to hearing if you do find a good solution. 👍

@f3l1x
Copy link
Collaborator

f3l1x commented Oct 19, 2024

It's still not possible.

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

No branches or pull requests

2 participants