Skip to content

Commit

Permalink
Revert target
Browse files Browse the repository at this point in the history
  • Loading branch information
rnshah9 authored and ForAllSecure Mayhem Bot committed Aug 25, 2024
1 parent 8d14d81 commit bddbea8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
18 changes: 8 additions & 10 deletions mayhem/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ FROM --platform=linux/amd64 ubuntu:22.04 as builder

RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y clang

COPY . /repo
# WORKDIR /repo/build
WORKDIR /repo
# RUN cmake ..
RUN clang++ harness.cpp utility/Process.cpp tools/*.cpp -fsanitize=fuzzer -o out -Iutility/
WORKDIR /repo/build
RUN cmake ..
RUN make -j8

# FROM ubuntu:22.04 as package
# COPY --from=builder /repo/build/cnip /
# COPY --from=builder /repo/build/C/* /deps/
# COPY --from=builder /repo/build/common/* /deps/
# ENV LD_LIBRARY_PATH=/deps
FROM ubuntu:22.04 as package
COPY --from=builder /repo/build/cnip /
COPY --from=builder /repo/build/C/* /deps/
COPY --from=builder /repo/build/common/* /deps/
ENV LD_LIBRARY_PATH=/deps
4 changes: 1 addition & 3 deletions mayhem/Mayhemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ project: psychec
target: cnip

cmds:
- cmd: /repo/out
libfuzzer: true
image: ghcr.io/rnshah9/playground:psychec
- cmd: /cnip @@

0 comments on commit bddbea8

Please sign in to comment.