Skip to content

Commit cfbac66

Browse files
committed
Adds grpc docker image pre-build
1 parent 510c895 commit cfbac66

3 files changed

Lines changed: 46 additions & 0 deletions

File tree

grpc/ruby-3.2/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM f3ddevelopers/aws-lambda-ruby-patched:3.2
2+
3+
RUN yum swap -y openssl-snapsafe-libs openssl-libs
4+
5+
RUN yum update -y && \
6+
yum install -y make gcc gcc-c++ && \
7+
yum clean all
8+
9+
COPY Gemfile .
10+
COPY Gemfile.lock .
11+
12+
RUN bundle config set deployment true && \
13+
bundle config set without 'test development' && \
14+
bundle config build.ffi -- --with-cflags="-Wno-implicit-function-declaration" && \
15+
bundle config set retry 5 && \
16+
bundle config set jobs $(getconf _NPROCESSORS_ONLN) && \
17+
if [[ "$ARCHITECTURE" == "arm64" ]]; then \
18+
bundle config set force_ruby_platform true && \
19+
bundle config build.ffi --enable-libffi-alloc; \
20+
fi && \
21+
BUNDLE_FORCE_RUBY_PLATFORM=true bundle

grpc/ruby-3.2/Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'grpc'

grpc/ruby-3.2/Gemfile.lock

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
bigdecimal (3.2.2)
5+
google-protobuf (4.32.0)
6+
bigdecimal
7+
rake (>= 13)
8+
googleapis-common-protos-types (1.20.0)
9+
google-protobuf (>= 3.18, < 5.a)
10+
grpc (1.74.1)
11+
google-protobuf (>= 3.25, < 5.0)
12+
googleapis-common-protos-types (~> 1.0)
13+
rake (13.3.0)
14+
15+
PLATFORMS
16+
ruby
17+
18+
DEPENDENCIES
19+
grpc
20+
21+
BUNDLED WITH
22+
2.7.1

0 commit comments

Comments
 (0)