Skip to content

Commit

Permalink
Remove ldd
Browse files Browse the repository at this point in the history
  • Loading branch information
rnshah9 authored and ForAllSecure Mayhem Bot committed Jun 28, 2024
1 parent c26bf23 commit 8796ad3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
11 changes: 3 additions & 8 deletions Dockerfile.mayhem
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,9 @@ RUN curl -sSL https://get.haskellstack.org/ | sh

COPY . /repo
WORKDIR /repo/build
RUN cmake ..
RUN cmake .. -DCMAKE_INSTALL_PREFIX=/install
RUN make -j8

RUN mkdir -p /deps
RUN ldd /repo/build/examples/cpp/core/bf/bf | tr -s '[:blank:]' '\n' | grep '^/' | xargs -I % sh -c 'cp % /deps;'
RUN make install

FROM ubuntu:22.04 as package

COPY --from=builder /deps /deps
COPY --from=builder /repo/build/examples/cpp/core/bf/bf /repo/build/examples/cpp/core/bf/bf
ENV LD_LIBRARY_PATH=/deps
COPY --from=builder /install /install
3 changes: 1 addition & 2 deletions Mayhemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ project: bond
target: bf
testsuite:
- file://examples/cs/core/blob/schema.bond

cmds:
- cmd: /repo/build/examples/cpp/core/bf/bf @@
- cmd: /install/bin/bf @@

0 comments on commit 8796ad3

Please sign in to comment.