-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
executable file
·24 lines (20 loc) · 1.36 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# WARNING: building this Dockerfile can take hours if you want to build all multi-stages, see README
# dangerous commands: only use if you really want to delete all your docker container and images:
#docker rm -f $(docker ps -a -q)
#docker rmi -f $(docker images -q)
#docker volume rm -f $(docker volume ls -qf dangling=true)
# Attention for macOS users: if you rebuild this too often with Docker for macOS, time machine might
# go bananas with its "local time machine backups" which can grow infinitely on disc... even
# when you exclude the docker directory. The following command will delete
# all local backups (you have to decide if you want that!):
# sudo tmutil deletelocalsnapshots $(tmutil listlocalsnapshots / |cut -d "." -f 4-)
# Note: "notes" and "warnings" during the compilation process are ugly but normal (especially dyninst)...
docker build --target afl-base --tag=afl-base ./dockerfiles/base/ && \
docker build --target afl-binary-only --tag=afl-binary-only ./dockerfiles/binary-only/ && \
docker build --target afl-blackbox --tag=afl-blackbox ./dockerfiles/blackbox/ && \
docker build --target afl-demo --tag=afl-demo ./dockerfiles/demo/ && \
docker build --target afl-jqf --tag=afl-jqf ./dockerfiles/jqf/ && \
echo "After build succeeds, please test afl-demo by running:" && \
echo "docker run -it --entrypoint=/bin/bash afl-demo" && \
echo "/examples/demo.sh"