Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
37 changes: 37 additions & 0 deletions .github/workflows/grpc-3.4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "aws-lambda-ruby-grpc:3.4"

on:
pull_request:
paths:
- "grpc/ruby-3.4/Dockerfile"

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up QEMU (for emulation)
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: docker-container
driver-opts: image=moby/buildkit:master

- name: Log in to Docker Hub Container Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: ./grpc/ruby-3.4/
file: ./grpc/ruby-3.4/Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/aws-lambda-ruby-grpc:3.4
17 changes: 17 additions & 0 deletions grpc/ruby-3.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM public.ecr.aws/lambda/ruby:3.4

RUN dnf update -y && \
dnf install -y \
ruby-devel \
make gcc gcc-c++ \
openssl-devel zlib-devel libffi-devel \
git patch tar && \
dnf clean all

COPY Gemfile .
COPY Gemfile.lock .

RUN bundle config set deployment true && \
bundle config set without 'test development'

RUN BUNDLE_FORCE_RUBY_PLATFORM=true bundle
3 changes: 3 additions & 0 deletions grpc/ruby-3.4/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'

gem 'grpc'
22 changes: 22 additions & 0 deletions grpc/ruby-3.4/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
GEM
remote: https://rubygems.org/
specs:
bigdecimal (3.2.2)
google-protobuf (4.32.0)
bigdecimal
rake (>= 13)
googleapis-common-protos-types (1.20.0)
google-protobuf (>= 3.18, < 5.a)
grpc (1.74.1)
google-protobuf (>= 3.25, < 5.0)
googleapis-common-protos-types (~> 1.0)
rake (13.3.0)

PLATFORMS
ruby

DEPENDENCIES
grpc

BUNDLED WITH
2.7.1
Loading