Skip to content

Instantly share code, notes, and snippets.

View JoshuaEdwards1991's full-sized avatar

Joshua G. Edwards JoshuaEdwards1991

View GitHub Profile
@vladimirsavenkov
vladimirsavenkov / build-bash-lambda-layer.sh
Created March 4, 2019 18:06
build-bash-lambda-layer.sh
#!/usr/bin/env bash
# This script is supposed to be executed in docker container, for example like this:
# docker run -it --rm -v $DIR:/var/layer --entrypoint /var/layer/builder.sh lambci/lambda:build-python2.7
set -e # exit if any command fails
set -u # prevent using an undefined variable
set -x # show executed commands
set -o pipefail # force pipelines to fail on the first non-zero status
echo "Building H24 Lambda bash layer..."