Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e7e7182

Browse files
Create build.sh
1 parent 7f6a077 commit e7e7182

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
rm -rf lib python
3+
4+
mkdir -p lib
5+
for version in "python3.6" "python3.7" "python3.8"
6+
do
7+
echo "Building $version ..."
8+
mkdir -p python/lib/${version}
9+
docker run -v "$PWD":/var/task "lambci/lambda:build-$version" /bin/sh -c "yum install -y mysql-devel && cp /usr/lib64/mysql/libmysqlclient* lib/ && pip install mysqlclient -t python/lib/$version/site-packages/ && exit"
10+
done
11+
12+
zip -r mysqlclient-lambda-layer.zip lib python > /dev/null

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /