GithubHelp home page GithubHelp logo

Comments (6)

metaskills avatar metaskills commented on June 2, 2024

Thanks, I'm gonna sort this out. Working on a few issues that relate:

from lamby.

marcelmatsuokaa avatar marcelmatsuokaa commented on June 2, 2024

Hey! Just an update... I could not make it work for arm64, but with to x86_64 I had to do some small changes.
At first I've added to cookiecutter script (also i've added platform to all dockerfiles)

--platform=linux/x86_64

With this architecture I can use SAM, but it complains about docker:

Building image for "RailsLambda" requires Docker. is Docker running?

So on .devcontainer, i've added:

volumes:
      -  '/var/run/docker.sock:/var/run/docker.sock'

to the docker-compose.yml, so I can access docker inside the devcontainer.

After exposing my docker.sock to devcontainer, I got:

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get https://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json: dial unix /var/run/docker.sock: connect: permission denied

So i've created a group and provided a read write permission to it:

# Creating a group - docker
sudo groupadd docker
# Adding user to the group "docker"
sudo usermod -aG docker $USER
sudo chmod 666 /var/run/docker.sock

After that, everything worked... I'm not sure if this changes are secure or okay to do, so I want to ask you about it. What do you think?

from lamby.

metaskills avatar metaskills commented on June 2, 2024

I'm working on this under these issues. #143 Will post back when finished. Getting close.

from lamby.

APysnack avatar APysnack commented on June 2, 2024

I'm also hoping for a resolution for this. Stupid M1 macs.

from lamby.

metaskills avatar metaskills commented on June 2, 2024

Getting really really close.

from lamby.

metaskills avatar metaskills commented on June 2, 2024

Wrapped up a bunch of work summed up here in the guides. Update to the site should happen shortly. Let me know if this helps. rails-lambda/lamby-site#60

from lamby.

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.