From 57b927fe9dabaf12bdd2d7cc27c75caae75bcee4 Mon Sep 17 00:00:00 2001 From: Paul Feitzinger Date: Mon, 25 Nov 2024 11:06:36 -0500 Subject: [PATCH] move docker build into separate script --- README.md | 18 +++++++++++------- build.sh | 1 + run.sh | 1 - 3 files changed, 12 insertions(+), 8 deletions(-) create mode 100755 build.sh diff --git a/README.md b/README.md index a7f7fec..2904b59 100644 --- a/README.md +++ b/README.md @@ -24,17 +24,21 @@ before sharing. ## Usage -The following command will build the necessary docker image, then run it -against the signal config directory you point it to, and dump the output to -./output/table.csv: +First build the docker container for the tool - $ ./run.sh -c ~/.config/Signal - - Sending build context to Docker daemon 380.4kB + $ ./build.sh + Sending build context to Docker daemon 716.3kB Step 1/12 : FROM archlinux:base-20241110.0.278197 ---> 8f94599caa7b - ... + [...] + Successfully built 1c3e3a1b45f5 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 diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..f89cb9e --- /dev/null +++ b/build.sh @@ -0,0 +1 @@ +docker build . -t sigint diff --git a/run.sh b/run.sh index 609d4fa..f5199c9 100755 --- a/run.sh +++ b/run.sh @@ -14,7 +14,6 @@ if [ -z ${SIGNAL_DIR+x} ]; then exit 1 fi -docker build . -t sigint if [ $FILTER -eq 1 ]; then docker run -it -v $SIGNAL_DIR:/root/.config/Signal -v ./output:/output sigint -f config/chat_list.txt else