Sign inSign up

jtmotox/bfg

By jtmotox

•Updated 6 months ago

Lightweight 30mb multi-arch Docker image with BFG Repo-Cleaner

Image
0

1.9K

jtmotox/bfg repository overview

⁠GitHub: JtMotoX/docker-bfg⁠

This is a lightweight (~30mb compressed) Docker image with BFG Repo-Cleaner⁠.


⁠Usage

See bfg usage⁠ and examples⁠.

⁠Examples

⁠Linux / macOS

You need to run the container with same user id as current user to prevent repo permission issues

docker run --rm -it -v "${PWD}:/work" -u $(id -u ${USER}):$(id -g ${USER}) jtmotox/bfg --replace-text passwords.txt my-repo.git

If you have the alias⁠ set, you can run it as:

bfg --replace-text passwords.txt my-repo.git
⁠Windows
docker run --rm -it -v "%cd%:/work" jtmotox/bfg --replace-text passwords.txt my-repo.git

⁠Alias

If you don't want to run the docker command every time, you can set the following alias:

alias bfg='docker run --rm -it -v "${PWD}:/work" -u $(id -u ${USER}):$(id -g ${USER}) jtmotox/bfg'

⁠Tags

  • latest

    Size: ~30mb

    Supports the following architectures:

    • linux/amd64
    • linux/arm64
    • linux/arm64/v8

Tag summary

Content type

Image

Digest

sha256:9cc8bb509…

Size

38.3 MB

Last updated

6 months ago

docker pull jtmotox/bfg