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

How do you recommend adding additional platforms like Linux even though working from Win or Mac? #43

Open
mihaivarga opened this issue Feb 8, 2020 · 4 comments

Comments

@mihaivarga
Copy link

I am developing on Windows, AWS lambda function for video processing. The thing is when deploying to lambda only the installed platform with for the current developer will be uploaded. How can I specify a certain platform that needs to be always present there? ex. Linux 64 in case of AWS lambda

The thing is I have colleagues that work on Mac and when they will install and deploy a new version of the Lambda function it will have only Mac platform for ffmpeg. We solved this by using Jenkins and Docker to deploy from same linux container, but this is not always ok as we don't have Jenkins for all projects.

@kribblo
Copy link
Owner

kribblo commented Feb 8, 2020

Not sure if there is an easy solution, the whole point of the project is to install a binary for the current platform, so if you are building images on one platform to then run on another it will not work. And it's not using any options or anything, rather using the environment to pull in the correct dependency.

There's a similar, older project (don't recall the name) that inspired this project, that pulled in all the binaries. I made this one because I didn't want to have 5 extra binaries. Could be one solution.

Otherwise, set up some simple way to build in a virtual environment? VirtualBox or something would work if you don't have Jenkins available. I don't think the NPM env variables can be overridden, otherwise that would also work.

It's just not the use case for the project, sadly. But if you come up with some good workaround I'll be happy to add it to the README or add pull requests.

@blogwy
Copy link

blogwy commented May 11, 2020

I suggest you not do that.

@yutongs-dmai
Copy link

yutongs-dmai commented Jun 25, 2020

I encountered same problem. Using a mac and trying to deploy a lambda function. It would be nice if you can implement some installation flags like
npm install --arch=x64 --platform=linux @ffmpeg-installer/ffmpeg.

That way we can specify the actually binary we want to install.

@kribblo

@isaacpearl
Copy link
Contributor

@kribblo I was struggling with this problem for a while, and just opened a PR adding my simple workaround to the README. Please let me know if I can add any more contextual information!

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

5 participants