-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add support for git lfs #22
Comments
Good question – what's required to support that? |
I'm not sure, really. I think it would depend on how you went about installing it: I tried to install with yumda using their rpm installer script, but it tries to add an external repo, which doesn't seem to work with yumda. Alternatively, it looks like they mention adding their raw binary I'm working on a lambda that does a git clone, zip, ship to s3 that uses this lambda layer. It works great until I try to do this with a repo that uses LFS. |
Resolves lambci#22 This adds the appropriate `git-lfs` RPM repo and validates its signature, then installs it with the `yum install` command. We have to manually move the `git-lfs` binary (which is [the only file required for git-lfs](https://github.com/git-lfs/git-lfs/wiki/Installation#other)) into the `/opt/bin/` folder of the output so that it will be available in the `$PATH` in the lambda layer. This manual handling of the RPM repo is done because the [standard git-lfs install script](https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh) has hardcoded `/etc/` all over the place, whereas we need it to respect the `/lambda/` root.
I think I've got the I'm pretty sure it'll work just fine based on testing within the container in which it was built, but I'll report back here when I'm able to get it up on AWS for additional testing, and if it's all good I'll open a PR here. This commit only targets the Lambda Runtime 2 (so far...). |
PR submitted. I updated it to allow specification of the git-lfs version, and I added a line in the test lambda function to run |
Any chance it would be worthwhile for you guys to add support for
git lfs
to this layer? Or perhaps that should be something I request be added to yumda?The text was updated successfully, but these errors were encountered: