File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 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
77RUNTIME=${1:- python3.6}
88PKG_DIR=$( mktemp -d ./d.XXXXXX)
@@ -13,16 +13,18 @@ rm $TARGET
1313
1414docker 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 "
2325docker 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
You can’t perform that action at this time.
0 commit comments