diff --git a/Dockerfile.mayhem b/Dockerfile.mayhem index 259219c1..5b4644a2 100644 --- a/Dockerfile.mayhem +++ b/Dockerfile.mayhem @@ -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 / diff --git a/Mayhemfile b/Mayhemfile index 1fc84c50..3591acbd 100644 --- a/Mayhemfile +++ b/Mayhemfile @@ -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