Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Latest commit

 

History

History
76 lines (53 loc) · 1.51 KB

README.md

File metadata and controls

76 lines (53 loc) · 1.51 KB

import

Imports leak files into SQLite

Hooks

This repository is configured with client-side Git hooks which you need to install by running the following command:

./hooks/INSTALL

Docker

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