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

[Question] Uploading my own zip file #31

Open
arielwb opened this issue May 25, 2021 · 5 comments
Open

[Question] Uploading my own zip file #31

arielwb opened this issue May 25, 2021 · 5 comments

Comments

@arielwb
Copy link

arielwb commented May 25, 2021

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 :)

@mhart
Copy link
Member

mhart commented May 25, 2021

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

@arielwb
Copy link
Author

arielwb commented May 31, 2021

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 :)

@Mickaz89
Copy link

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

@Mickaz89
Copy link

?

1 similar comment
@leumifintech
Copy link

?

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

4 participants