File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 4949 mkdir opt
5050 cd opt
5151 unzip ../layer_diffoscope_${{ matrix.runtime }}.zip
52+ ldd bin/* || true
53+ ldd lib/* || true
5254 cd ..
5355 ls -l
5456 docker run -e DOCKER_LAMBDA_DEBUG=1 --rm -v "$PWD":/var/task:ro,delegated -v "$PWD"/opt/:/opt:ro,delegated lambci/lambda:${{ matrix.runtime }} tests.run 2> /tmp/test_results
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # TODO add zipnote to bin/ (zip package)
43# TODO add libarchive-tools
54# jsondiff: would crash on Chrome extensions (manifest.json is not a valid JSON)
65
@@ -16,11 +15,13 @@ docker run --rm -v $(pwd):/foo -w /foo lambci/lambda:build-$RUNTIME \
1615 cd ${PKG_DIR} && \
1716 yum --assumeyes install vim-common && \
1817 cp --verbose /usr/bin/xxd bin/ && \
18+ cp --verbose /usr/bin/zipnote bin/ && \
1919 yum --assumeyes install libarchive && \
2020 cp --verbose /usr/lib64/libarchive.so.13 lib/libarchive.so && \
2121 cp --verbose /usr/lib64/libarchive.so.13 lib/libarchive.so.13 && \
2222 cp --verbose /usr/lib64/liblzo2.so.2 lib/ && \
23- cp --verbose /usr/lib64/libmagic.so.1 lib/ && \
23+ ([[ $RUNTIME == 'python3.8' ]] && cp --verbose /usr/lib64/libmagic.so.1 lib/) && \
24+ ([[ $RUNTIME == 'python3.8' ]] && cp --verbose /usr/lib64/libcrypto.so.10 lib/) && \
2425 chown --verbose $( id --user) :$( id --group) lib/* \
2526 "
2627docker run --user $( id --user) :$( id --group) --rm -v $( pwd) :/foo -w /foo lambci/lambda:build-$RUNTIME \
You can’t perform that action at this time.
0 commit comments