Imports leak files into SQLite
This repository is configured with client-side Git hooks which you need to install by running the following command:
./hooks/INSTALL
To build the tool image:
docker_tag=import:latest
docker build \
-f ./deployments/Dockerfile \
. -t $docker_tag
To run the tool container:
docker run import --help
To build the import web api service image:
docker_tag=import-web-api:latest
docker build \
-f ./deployments/import-web-api.dockerfile \
third_party/import-web-api -t $docker_tag
To run the service container:
export $(grep -v '^#' third_party/import-web-api/.env | xargs)
docker run \
-p $server_port:$server_port \
--mount "type=bind,src=$leaksdb_fp,dst=$leaksdb_fp" \
--env-file third_party/import-web-api/.env \
-t $docker_tag
To build the import web tool image:
docker_tag=import-web:latest
docker build \
-f ./deployments/import-web.dockerfile \
third_party/import-web -t $docker_tag
To run the service container:
docker run -p 3000:3000 -t $docker_tag -
Alternatively to import-web
tool, there's also an handy bash script that triggers leak imports based on a JSON
configuration file. To use it, make sure you copy the existing args.json
template in third-party/import-bash and configure the leaks to import. Then, all you got to do is:
bash third_party/import-bash/run.bash