File tree Expand file tree Collapse file tree 8 files changed +61
-61
lines changed
Expand file tree Collapse file tree 8 files changed +61
-61
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ name = "pypi"
77awscli = " >=1.16.164"
88
99[dev-packages ]
10- aws-sam-cli = " >=0.16.1 "
10+ aws-sam-cli = " >=0.17.0 "
1111
1212[requires ]
1313python_version = " 3.7"
Original file line number Diff line number Diff line change @@ -19,5 +19,4 @@ mkdir -p ${BUILD_DIR}/layer/
1919docker run -v ${BUILD_DIR} /layer/:/var/awspack -v ${BASE_DIR} /entrypoint.sh:/entrypoint.sh \
2020 lambda-r:build-${VERSION} /entrypoint.sh
2121sudo chown -R $( whoami) :$( whoami) ${BUILD_DIR} /layer/
22- cd ${BUILD_DIR} /layer/
23- chmod -R 755 .
22+ chmod -R 755 ${BUILD_DIR} /layer/
Original file line number Diff line number Diff line change @@ -19,8 +19,4 @@ rm -rf ${BUILD_DIR}
1919export R_LIBS=${BUILD_DIR} /layer/R/library
2020mkdir -p ${R_LIBS}
2121${R_DIR} /bin/Rscript -e ' install.packages("awspack", repos="http://cran.r-project.org")'
22- cd ${BUILD_DIR} /layer/
23- chmod -R 755 .
24- zip -r -q awspack-${VERSION} .zip .
25- mkdir -p ${BUILD_DIR} /dist/
26- mv awspack-${VERSION} .zip ${BUILD_DIR} /dist/
22+ chmod -R 755 ${BUILD_DIR} /layer/
Original file line number Diff line number Diff line change 1313BASE_DIR=$( pwd)
1414BUILD_DIR=${BASE_DIR} /build/
1515
16- ./build.sh ${VERSION}
16+ cd ${BUILD_DIR} /layer/
1717zip -r -q awspack-${VERSION} .zip .
1818mkdir -p ${BUILD_DIR} /dist/
1919mv awspack-${VERSION} .zip ${BUILD_DIR} /dist/
20+ version_=" ${VERSION// \. / _} "
2021aws lambda publish-layer-version \
21- --layer-name r-awspack-${VERSION } \
22- --zip-file fileb://build /dist/awspack-${VERSION} .zip
22+ --layer-name r-awspack-${version_ } \
23+ --zip-file fileb://${BUILD_DIR} /dist/awspack-${VERSION} .zip
Original file line number Diff line number Diff line change 1717 mv R.orig/library/${package} / R/library/${package} /
1818done
1919rm -rf R.orig/
20- chmod -R 755 R/
20+ chmod -R 755 .
Original file line number Diff line number Diff line change 1313BASE_DIR=$( pwd)
1414BUILD_DIR=${BASE_DIR} /build/
1515
16- ./build.sh
17- zip -r -q recommended-${VERSION} .zip R/
16+ cd ${BUILD_DIR} /layer/
17+ zip -r -q recommended-${VERSION} .zip .
1818mkdir -p ${BUILD_DIR} /dist/
1919mv recommended-${VERSION} .zip ${BUILD_DIR} /dist/
20+ version_=" ${VERSION// \. / _} "
2021aws lambda publish-layer-version \
21- --layer-name r-recommended-${VERSION } \
22- --zip-file fileb://build /dist/recommended-${VERSION} .zip
22+ --layer-name r-recommended-${version_ } \
23+ --zip-file fileb://${BUILD_DIR} /dist/recommended-${VERSION} .zip
Original file line number Diff line number Diff line change 1313BASE_DIR=$( pwd)
1414BUILD_DIR=${BASE_DIR} /build/
1515
16- ./build.sh
16+ cd ${BUILD_DIR} /layer/
1717zip -r -q runtime-${VERSION} .zip .
1818mkdir -p ${BUILD_DIR} /dist/
1919mv runtime-${VERSION} .zip ${BUILD_DIR} /dist/
20+ version_=" ${VERSION// \. / _} "
2021aws lambda publish-layer-version \
21- --layer-name r-runtime-${VERSION } \
22- --zip-file fileb://build /dist/runtime-${VERSION} .zip
22+ --layer-name r-runtime-${version_ } \
23+ --zip-file fileb://${BUILD_DIR} /dist/runtime-${VERSION} .zip
You can’t perform that action at this time.
0 commit comments