move docker build into separate script

main
Paul Feitzinger 5 months ago
parent f181f1b541
commit 57b927fe9d

@ -24,17 +24,21 @@ before sharing.
## Usage ## Usage
The following command will build the necessary docker image, then run it First build the docker container for the tool
against the signal config directory you point it to, and dump the output to
./output/table.csv:
$ ./run.sh -c ~/.config/Signal $ ./build.sh
Sending build context to Docker daemon 716.3kB
Sending build context to Docker daemon 380.4kB
Step 1/12 : FROM archlinux:base-20241110.0.278197 Step 1/12 : FROM archlinux:base-20241110.0.278197
---> 8f94599caa7b ---> 8f94599caa7b
... [...]
Successfully built 1c3e3a1b45f5
Successfully tagged sigint:latest Successfully tagged sigint:latest
The following command will run the analysis against the signal config directory
you point it to, and dump the output to ./output/table.csv:
$ ./run.sh -c ~/.config/Signal
INFO:main:writing message count table to /output/table.csv INFO:main:writing message count table to /output/table.csv

@ -0,0 +1 @@
docker build . -t sigint

@ -14,7 +14,6 @@ if [ -z ${SIGNAL_DIR+x} ]; then
exit 1 exit 1
fi fi
docker build . -t sigint
if [ $FILTER -eq 1 ]; then if [ $FILTER -eq 1 ]; then
docker run -it -v $SIGNAL_DIR:/root/.config/Signal -v ./output:/output sigint -f config/chat_list.txt docker run -it -v $SIGNAL_DIR:/root/.config/Signal -v ./output:/output sigint -f config/chat_list.txt
else else

Loading…
Cancel
Save