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 Sep 18, 2024
1 parent 4743236 commit 507fe0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions Dockerfile.mayhem
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
FROM --platform=linux/amd64 ubuntu:22.04 as builder

RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libboost-program-options-dev
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential libboost-program-options-dev

COPY . /repo
WORKDIR /repo/data/data_conv/dna
RUN make -j8

RUN mkdir -p /deps
RUN ldd /repo/data/data_conv/dna/sample_dna_substr | tr -s '[:blank:]' '\n' | grep '^/' | xargs -I % sh -c 'cp % /deps;'

FROM ubuntu:22.04 as package

COPY --from=builder /deps /deps
COPY --from=builder /repo/data/data_conv/dna/sample_dna_substr /repo/data/data_conv/dna/sample_dna_substr
ENV LD_LIBRARY_PATH=/deps
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libboost-program-options-dev
COPY --from=builder /repo/data/data_conv/dna/sample_dna_substr /
2 changes: 1 addition & 1 deletion Mayhemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project: nmslib
target: sample-dna-substr
cmds:
- cmd: /repo/data/data_conv/dna/sample_dna_substr -i @@ -a 1 --lenSTD 1 -o /dev/null -q 1
- cmd: /sample_dna_substr -i @@ -a 1 --lenSTD 1 -o /dev/null -q 1

0 comments on commit 507fe0c

Please sign in to comment.