diff --git a/Dockerfile.mayhem b/Dockerfile.mayhem index d0bd0b7a3..fc4790eaf 100644 --- a/Dockerfile.mayhem +++ b/Dockerfile.mayhem @@ -1,4 +1,4 @@ -FROM --platform=linux/amd64 ubuntu:22.04 +FROM --platform=linux/amd64 ubuntu:22.04 as builder RUN apt-get update RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \ @@ -15,3 +15,12 @@ COPY . /repo WORKDIR /repo/build RUN cmake .. 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;' + +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 diff --git a/Mayhemfile b/Mayhemfile index 1c42ab8e8..c425af17b 100644 --- a/Mayhemfile +++ b/Mayhemfile @@ -1,6 +1,6 @@ -project: rnshah9/bond +project: bond target: bf -tests: +testsuite: - file://examples/cs/core/blob/schema.bond cmds: