Permalink
Browse files

Package the mysql2 gem and talk to RDS from AWS Lambda

  • Loading branch information...
1 parent 6c74f43 commit 2f307f68c3d06a23ff9024c303656ec6d6144a0f @adomokos committed May 31, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 Makefile
  2. BIN resources/mysql2-0.3.18-linux.tar.gz
View
@@ -35,6 +35,8 @@ package: ## Packages the code for AWS Lambda
@mkdir $(LAMBDADIR)/lib/app
@cp hello_ruby/lib/hello.rb $(LAMBDADIR)/lib/app/hello.rb
@cp -pR hello_ruby/vendor $(LAMBDADIR)/lib/
+ @rm -fr $(LAMBDADIR)/lib/vendor/ruby/2.2.0/extensions
+ @tar -xzf resources/mysql2-0.3.18-linux.tar.gz -C $(LAMBDADIR)/lib/vendor/ruby/
@rm -f $(LAMBDADIR)/lib/vendor/*/*/cache/*
@mkdir -p $(LAMBDADIR)/lib/vendor/.bundle
@cp resources/bundler-config $(LAMBDADIR)/lib/vendor/.bundle/config
Binary file not shown.

0 comments on commit 2f307f6

Please sign in to comment.