Comments (6)
Thanks for reporting this issue, Anand. I tried it with a similar config, It works for me with a 2-year-old docker image( which is pulled long back). So, pulled the latest image and tried, It works with the latest as well.
Is it a very old docker image? Can you pull the latest and try again.
Run this command to pull the latest and try sls deploy
again
docker image pull lambci/lambda:build-ruby2.5
from serverless-ruby-layer.
Hey @navarasu thanks for replying. I tried doing what you suggested, but I'm still having the same issue.
➜ use_docker git:(master) ✗ docker image pull lambci/lambda:build-ruby2.5
build-ruby2.5: Pulling from lambci/lambda
Digest: sha256:26c1d3de7621d2bad3f439c45723f3604f0651d9c018aa64d269ef6326baa33a
Status: Image is up to date for lambci/lambda:build-ruby2.5
docker.io/lambci/lambda:build-ruby2.5
I'm using docker v 2.4 if that is of any significance.
from serverless-ruby-layer.
Interesting. Not sure why it is not working on your machine with the same docker image.
This is my docker version.
➜ ~ docker version
Client: Docker Engine - Community
Cloud integration 0.1.18
Version: 19.03.13
API version: 1.40
Go version: go1.13.15
Git commit: 4484c46d9d
Built: Wed Sep 16 16:58:31 2020
OS/Arch: darwin/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.13
API version: 1.40 (minimum version 1.12)
Go version: go1.13.15
Git commit: 4484c46d9d
Built: Wed Sep 16 17:07:04 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.3.7
GitCommit: 8fba4e9a7d01810a393d5d25a3621dc101981175
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683
Not sure the docker version is the issue. Try updating your docker as well.
Also, try removing the image (docker image rm -f lambci/lambda:build-ruby2.5
) and run sls deploy
again
from serverless-ruby-layer.
Still getting the same error after I do that :-/ What version of serverless should I be using? I've tried 1.7 and also 2.9.0
from serverless-ruby-layer.
@yodarjun , I tried reproducing the same in different machines. It works in all cases.
Alternatively, you can configure your own docker file. Refer pg gem example here. Similarly, you can add the necessary native library to fix nokogiri issue.
from serverless-ruby-layer.
@yodarjun I think this might be an issue related to volume mount but not sure. Please update to the latest version 1.4.0 and verify again.
from serverless-ruby-layer.
Related Issues (20)
- Deprecated warnings are appearing. HOT 3
- 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
- Trouble deploying `pg` due to `pg_ext.so` HOT 4
- 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
- arm64 support HOT 1
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.