Gianni Mazza

Results 5 comments of Gianni Mazza

any solution for this one?

unfortunately still same issue: ``` irb(main):001:0> require 'mysql2' Traceback (most recent call last): 10: from /var/lang/bin/irb:23:in `' 9: from /var/lang/bin/irb:23:in `load' 8: from /var/lang/lib/ruby/gems/2.7.0/gems/irb-1.2.6/exe/irb:11:in `' 7: from (irb):1 6: from...

It seems a arch-related issue! Forcing the platform to linux/amd64 works: Dockerfile: ``` FROM --platform=linux/amd64 public.ecr.aws/lambda/ruby:2.7 # Copy dependency management file COPY lambda/Gemfile ${LAMBDA_TASK_ROOT} # Install dependencies under LAMBDA_TASK_ROOT ENV...

Actually, to make it work I had to force my image to be based on amd64 version. On my M1, by default it uses the arm64 base image. Considering that...