Skip to content

Instantly share code, notes, and snippets.

@kenjij
Created February 7, 2020 06:00
Show Gist options
  • Save kenjij/d3c8c173695466f153302177327cf772 to your computer and use it in GitHub Desktop.
Save kenjij/d3c8c173695466f153302177327cf772 to your computer and use it in GitHub Desktop.
Build and Package RubyGems for AWS Lambda Layer Use (example)
#
# Build and Package RubyGems for AWS Lambda Layer Use
#
all: build package
build:
gem i firebase-ruby -Ni ruby/gems/2.5.0
gem i darksky-ruby -Ni ruby/gems/2.5.0
ls -m ruby/gems/2.5.0/gems
package:
zip -r lambda-layers . -x ".*" -x "*/.*" -x "Makefile"
zipinfo -t lambda-layers
clean:
rm -Rfv "ruby"
cleanall: clean
rm -fv lambda-layers.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment