Created
February 7, 2020 06:00
-
-
Save kenjij/d3c8c173695466f153302177327cf772 to your computer and use it in GitHub Desktop.
Build and Package RubyGems for AWS Lambda Layer Use (example)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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