forked from nmslib/nmslib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |