git-lambda-layer icon indicating copy to clipboard operation
git-lambda-layer copied to clipboard

[Question] Uploading my own zip file

Open arielwb opened this issue 3 years ago • 5 comments

Hello!

I'm trying to use your project in my lambda, but due to restriction of my company's infrastructure, I need to deploy the git layer to our own s3.

I uploaded this zip file to our s3 but it did not work, git is still unavailable.

My question is: Is this zip file supposed to work used like this? It totally can be something on my end, but it appears that everything is as it should, so I came here to exclude this possibility :)

arielwb avatar May 25 '21 19:05 arielwb

Yep, that should work (make sure you're using the appropriate zipfile for your Lambda runtime) – you can just copy the commands here to publish your own layer: https://github.com/lambci/git-lambda-layer/blob/master/lambda2/publish.sh

mhart avatar May 25 '21 19:05 mhart

Thank you for your reply!

I did manage to go a step further than I was before, but I'm not there yet hahahhah

I'm using your build script to generate the zip file, and I'm getting the following error when I try to clone a repo:

/opt/libexec/git-core/git-remote-https: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory

I'm thinking that maybe I'm not using the correct docker image for my runtime? My Lambda runs on node 12.x, and from what I got from the repo, the image you use to build is lambci/yumda:2 right?

Thank you so much! Any help will be appreciated :)

arielwb avatar May 31 '21 13:05 arielwb

Same error for me , i uploaded the zip but git still unavailable

Mickaz89 avatar Jul 26 '21 11:07 Mickaz89

?

Mickaz89 avatar Jul 26 '21 14:07 Mickaz89

?

leumifintech avatar Aug 09 '21 11:08 leumifintech