Skip to content

Commit 096dde3

Browse files
committed
Remove jsondiff and other fixes
1 parent 2c8fc54 commit 096dde3

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

make_layer.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
# TODO
4-
# add zipnote to bin/ (zip package)
5-
# add libarchive-tools
3+
# TODO add zipnote to bin/ (zip package)
4+
# TODO add libarchive-tools
5+
# jsondiff: would crash on Chrome extensions (manifest.json is not a valid JSON)
66

77
RUNTIME=${1:-python3.6}
88
PKG_DIR=$(mktemp -d ./d.XXXXXX)
@@ -13,16 +13,18 @@ rm $TARGET
1313

1414
docker run --rm -v $(pwd):/foo -w /foo lambci/lambda:build-$RUNTIME \
1515
sh -c " \
16+
cd ${PKG_DIR} && \
1617
yum --assumeyes install vim-common && \
17-
cp /usr/bin/xxd ${PKG_DIR}/bin && \
18+
cp --verbose /usr/bin/xxd bin/ && \
1819
yum --assumeyes install libarchive && \
19-
cp --verbose /usr/lib64/libarchive.so.13 ${PKG_DIR}/lib/libarchive.so && \
20-
cp --verbose /usr/lib64/liblzo2.so.2 ${PKG_DIR}/lib/ && \
21-
chown --verbose $(id --user):$(id --group) ${PKG_DIR}/lib/* \
20+
cp --verbose /usr/lib64/libarchive.so.13 lib/libarchive.so && \
21+
cp --verbose /usr/lib64/libarchive.so.13 lib/libarchive.so.13 && \
22+
cp --verbose /usr/lib64/liblzo2.so.2 lib/ && \
23+
chown --verbose $(id --user):$(id --group) lib/* \
2224
"
2325
docker run --user $(id --user):$(id --group) --rm -v $(pwd):/foo -w /foo lambci/lambda:build-$RUNTIME \
2426
sh -c " \
25-
pip install diffoscope jsbeautifier jsondiff -t ${PKG_DIR}/python --no-cache-dir && \
27+
pip install diffoscope jsbeautifier -t ${PKG_DIR}/python --no-cache-dir && \
2628
cp --verbose ${PKG_DIR}/python/bin/* ${PKG_DIR}/bin/ \
2729
"
2830

0 commit comments

Comments
 (0)