Comments (4)
I finally realized I was reading the error backwards. It's not pg_ext.so
that was missing, it was libldap_r-2.4.so.2
. After much trial and error I ended up getting things to work with this expanded list of native_libs
.
custom:
rubyLayer:
use_docker: true
docker_yums:
- postgresql-devel
native_libs:
- /usr/lib64/libpq.so.5
- /usr/lib64/libldap_r-2.4.so.2
- /usr/lib64/liblber-2.4.so.2
- /usr/lib64/libsasl2.so.3
- /usr/lib64/libssl3.so
- /usr/lib64/libsmime3.so
- /usr/lib64/libnss3.so
from serverless-ruby-layer.
Test case failed for this code example. The current example that we have for pg gem is valid for the ruby 2.5 version. Looks like these extra lib dependencies needed only when we are using ruby 2.7
from serverless-ruby-layer.
I have reverted these changes. Please add it in a separate folder as pg deploy for 2.7 example if possible. I will update the docs from my side.
from serverless-ruby-layer.
@jagthedrummer I have added your pg example for 2.7 separately and updated testcase
from serverless-ruby-layer.
Related Issues (20)
- Provide option to create layer for specific gem groups HOT 3
- Deprecated warnings are appearing. HOT 3
- The `use_docker` example fails on nokogiri install HOT 6
- Added test case for the pending case to improve the test coverage
- Could not find *gem* in any of the sources w/t require "bundler/setup" HOT 10
- Building via docker on GitHub actions? HOT 3
- Docker build doesn't respect `Gemfile.lock` HOT 3
- Add ignore_gemfile_lock option to ignore Gemfile.lock while building gem layer
- Ability to pass build args to a Docker build
- ActiveSupport cache strategies are excluded from gemLayer.zip
- Proposal to speed up repeated Docker based deploys HOT 1
- Release 1.6.0 Milestone HOT 7
- Docker command not found when run on Github Actions HOT 1
- Error while adding local path in Gemfile
- Clean up and test env pass through & build args with single parameter
- Update all examples from ruby 2.5 to 2.7 (as ruby 2.5 is not supported)
- use_docker: false doesn't work as expected
- Support for Ruby 3.2 Runtime HOT 9
- Passing environment to dockerfile in serverless v3 + not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-ruby-layer.