Skip to content

Commit 00c68b4

Browse files
authored
Merge pull request #15 from navarasu/fix_14_preinstall_yums
#14 Implemented option to preinstall yums before bundling gem
2 parents e396fa1 + 8386e65 commit 00c68b4

File tree

11 files changed

+43
-0
lines changed

11 files changed

+43
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/use_docker_with_yums/Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source 'https://rubygems.org'
2+
gem 'pg'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
require 'pg'
2+
3+
def hello(event:, context:)
4+
{ statusCode: 200, body: {
5+
"pg_version": PG.library_version
6+
}
7+
}
8+
end
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
service: using-docker-file
2+
3+
plugins:
4+
- serverless-ruby-layer
5+
6+
custom:
7+
rubyLayer:
8+
use_docker: true
9+
docker_yums:
10+
- postgresql-devel
11+
native_libs:
12+
- /usr/lib64/libpq.so.5
13+
14+
provider:
15+
name: aws
16+
runtime: ruby2.5
17+
18+
functions:
19+
hello:
20+
handler: handler.hello

0 commit comments

Comments
 (0)