Created
May 1, 2020 14:57
-
-
Save ottokruse/9db97147c06e6dc74dc887ba7998c53f to your computer and use it in GitHub Desktop.
Install Lambda Layer dependencies (Python 3.8)
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
#!/bin/sh | |
LAYER_DIR=lib/lambda-layers | |
for DIR in $(ls $LAYER_DIR); do | |
echo "Installing layer: $DIR" | |
cd $LAYER_DIR/$DIR | |
git check-ignore * > /dev/null && rm -r $(git check-ignore *) | |
docker run --rm --init -v "$(pwd):/${DIR}" lambci/lambda:build-python3.8 sh '-c' "pip install -r /${DIR}/requirements.txt --target /${DIR}/python" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment