diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e762fd3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +build_output/python/ +build_output/python + diff --git a/build.sh b/build.sh index 902c8e9..1fcda20 100755 --- a/build.sh +++ b/build.sh @@ -3,7 +3,7 @@ PKG_DIR='build_output/python' LIB_DIR='build_output/lib' # set the docker image name here (optional) -IMAGE_NAME='nonbeing/lambda-python38-mysqlclient' +IMAGE_NAME='nonbeing/lambda-python38-ss-etl' sudo rm -rf ${PKG_DIR} ${LIB_DIR} mkdir -p ${PKG_DIR} && mkdir -p ${LIB_DIR} @@ -18,4 +18,4 @@ if [ $? -eq 0 ]; then zip -r layer.zip . else echo "[ERROR] Docker build failed! Not building `layer.zip` file. Abort." -fi \ No newline at end of file +fi diff --git a/build_output/layer.zip b/build_output/layer.zip deleted file mode 100644 index 94d3ada..0000000 Binary files a/build_output/layer.zip and /dev/null differ diff --git a/pip_and_copy.sh b/pip_and_copy.sh index b9da781..b00c160 100755 --- a/pip_and_copy.sh +++ b/pip_and_copy.sh @@ -5,14 +5,14 @@ LIB_DIR=$2 pip install -r requirements.txt -t ${PKG_DIR}; -for i in `ls /usr/lib64/mysql/libmysqlclient.so*`; -do - echo "Checking .so file: '$i'" - if [[ $i =~ libmysqlclient.so.[[:digit:]]+$ ]]; - then - # only copy libmysqlclient.so.21, NOT libmysqlclient.so or libmysqlclient.so.21.1.20 - # because libmysqlclient.so.21 is the necessary and sufficient file for mysqlclient to work - echo "COPYING '$i' to output dir..." - cp $i ${LIB_DIR} - fi -done \ No newline at end of file +# for i in `ls /usr/lib64/mysql/libmysqlclient.so*`; +# do +# echo "Checking .so file: '$i'" +# if [[ $i =~ libmysqlclient.so.[[:digit:]]+$ ]]; +# then +# # only copy libmysqlclient.so.21, NOT libmysqlclient.so or libmysqlclient.so.21.1.20 +# # because libmysqlclient.so.21 is the necessary and sufficient file for mysqlclient to work +# echo "COPYING '$i' to output dir..." +# cp $i ${LIB_DIR} +# fi +# done diff --git a/requirements.txt b/requirements.txt index 87cd15a..168c6ab 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,4 @@ -mysqlclient \ No newline at end of file +sqlalchemy +ccy +forex-python +pretty_html_table