Code Monkey home page Code Monkey logo

Comments (6)

navarasu avatar navarasu commented on May 24, 2024

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.

yodarjun avatar yodarjun commented on May 24, 2024

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.

navarasu avatar navarasu commented on May 24, 2024

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.

yodarjun avatar yodarjun commented on May 24, 2024

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.

navarasu avatar navarasu commented on May 24, 2024

@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.

navarasu avatar navarasu commented on May 24, 2024

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.