Skip to content

All.bfg repo cleaner.how to guide

BFG Repo-Cleaner#

BFG dockerized.

Build#

docker build . --tag bfg

Usage#

You could run BFG in a container by executing the following docker command.

docker run -it --rm \
    --volume "$PWD:/home/bfg/workspace" \
    koenrh/bfg \
    --delete-files id_rsa

You could make this command more easily accessible by putting it in an executable, and make sure that it is available in your $PATH. Alternatively, you could create wrapper functions for your docker run commands (example).

bfg() {
    docker run -it --rm \
        --volume "$PWD:/home/bfg/workspace" \
        --name bfg \
        koenrh/bfg "$@"
}