-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: Clean up shared resources in sVEP
* Removed symlinks and created script for producing layers * Lambda functions updated to use these layers to access shared resources instead of including in lambda build
- Loading branch information
1 parent
c4dcf31
commit 6c90b1f
Showing
143 changed files
with
204 additions
and
7,493 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
set -ex | ||
REPOSITORY_DIRECTORY="${PWD}" | ||
LIBRARIES="${REPOSITORY_DIRECTORY}/libraries" | ||
SOURCE="${LIBRARIES}/source" | ||
|
||
# Clean sbeacon-libraries | ||
if [ -d "${LIBRARIES}" ] | ||
then | ||
rm -rf "${LIBRARIES}" | ||
fi | ||
|
||
mkdir "${LIBRARIES}" | ||
mkdir "${SOURCE}" | ||
|
||
# | ||
# building lambda layers | ||
# | ||
|
||
# tabix | ||
cd ${SOURCE} | ||
git clone --recursive --depth 1 --branch develop https://github.com/samtools/htslib.git | ||
cd htslib && autoreconf && ./configure --enable-libcurl && make | ||
cd ${REPOSITORY_DIRECTORY} | ||
mkdir -p layers/binaries/lib | ||
mkdir -p layers/binaries/bin | ||
# TODO check what libraries are missing and add only those | ||
ldd ${SOURCE}/htslib/tabix | awk 'NF == 4 { system("cp " $3 " ./layers/binaries/lib") }' | ||
cp ${SOURCE}/htslib/tabix ./layers/binaries/bin/ | ||
|
||
# bcftools | ||
cd ${SOURCE} | ||
git clone --recursive --depth 1 --branch develop https://github.com/samtools/bcftools.git | ||
cd bcftools && autoreconf && ./configure && make | ||
cd ${REPOSITORY_DIRECTORY} | ||
mkdir -p layers/binaries/lib | ||
mkdir -p layers/binaries/bin | ||
ldd ${SOURCE}/bcftools | awk 'NF == 4 { system("cp " $3 " ./layers/binaries/lib") }' | ||
cp ${SOURCE}/bcftools/bcftools ./layers/binaries/bin/ | ||
|
||
# python libraries layer | ||
cd ${REPOSITORY_DIRECTORY} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.