{"id":24017566,"url":"https://github.com/piraces/docker-bfg-repo-cleaner","last_synced_at":"2026-05-19T07:10:05.605Z","repository":{"id":93937589,"uuid":"451156251","full_name":"piraces/docker-bfg-repo-cleaner","owner":"piraces","description":"A docker image for BFG Repo-Cleaner (by @rtyley)","archived":false,"fork":false,"pushed_at":"2026-03-09T20:55:08.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-10T01:55:47.903Z","etag":null,"topics":["bfg","blobs","cleaning","docker","git","git-filter-branch","repository"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/piraces.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-01-23T16:04:58.000Z","updated_at":"2026-03-09T20:55:05.000Z","dependencies_parsed_at":"2023-12-19T00:45:28.541Z","dependency_job_id":"9328d585-20bf-4ca6-b44d-0d608479260f","html_url":"https://github.com/piraces/docker-bfg-repo-cleaner","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/piraces/docker-bfg-repo-cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piraces%2Fdocker-bfg-repo-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piraces%2Fdocker-bfg-repo-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piraces%2Fdocker-bfg-repo-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piraces%2Fdocker-bfg-repo-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piraces","download_url":"https://codeload.github.com/piraces/docker-bfg-repo-cleaner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piraces%2Fdocker-bfg-repo-cleaner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33205686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"online","status_checked_at":"2026-05-19T02:00:06.763Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bfg","blobs","cleaning","docker","git","git-filter-branch","repository"],"created_at":"2025-01-08T09:41:26.706Z","updated_at":"2026-05-19T07:10:05.585Z","avatar_url":"https://github.com/piraces.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-bfg-repo-cleaner\n\n[![Publish Docker image](https://github.com/piraces/docker-bfg-repo-cleaner/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/piraces/docker-bfg-repo-cleaner/actions/workflows/docker-publish.yml)\n[![CI Dive Check](https://github.com/piraces/docker-bfg-repo-cleaner/actions/workflows/dive-check.yml/badge.svg)](https://github.com/piraces/docker-bfg-repo-cleaner/actions/workflows/dive-check.yml)\n\u003ca href=\"https://github.com/piraces/docker-bfg-repo-cleaner/pkgs/container/bfg-repo-cleaner/\"\u003e\u003cimg src=\"https://img.shields.io/badge/GH%20Docker%20Image-latest-blue\" alt=\"Docker GitHub\"\u003e\u003c/a\u003e\n\u003ca href=\"https://hub.docker.com/r/piraces/bfg-repo-cleaner/\"\u003e\u003cimg src=\"https://img.shields.io/docker/pulls/piraces/bfg-repo-cleaner.svg?style=flat-square\u0026logo=docker\" alt=\"Docker Pulls\"\u003e\u003c/a\u003e\n\n\nA docker image for [BFG Repo-Cleaner (by rtyley)](https://rtyley.github.io/bfg-repo-cleaner/).\n\n# How is built\n\n- Actually is built using the [openjdk](https://hub.docker.com/_/openjdk/) official image only with JRE ([openjdk:8-jre-slim](https://hub.docker.com/_/openjdk/?tab=tags\u0026page=1\u0026name=8-jre-slim)).\n- The actual `.jar` file is in this repo, managed with `Git LFS`. You can check the checksum from the original published `.jar` [available here](https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar).\n- In order to be able to execute the command `bfg` as it is, a little trick is made by specifying a ['Shebang'](https://bash.cyberciti.biz/guide/Shebang) and the `.jar` file content in an executable in the `/bin` folder of the container.\n\n# How to use it\n\nIt only requires you to mount the repository you want to use with `bfg` and perform the command you want.\n\nFor example to remove `.env` files in my repository using `bfg`:\n\n```bash\ndocker run --rm -v /c/DEV:/usr/src/myrepo -w /usr/src/myrepo piraces/bfg-repo-cleaner:latest bfg --delete-files .env /usr/src/myrepo/exercise-remove-commit-history.git # Using Docker Hub image\n\ndocker run --rm -v /c/DEV:/usr/src/myrepo -w /usr/src/myrepo ghcr.io/piraces/bfg-repo-cleaner:latest bfg --delete-files .env /usr/src/myrepo/exercise-remove-commit-history.git # Using GitHub Docker image (no pull limits)\n```\n\nMake sure to specify the correct path to mount and the working directory.\n\n# CI/CD workflows\n\nThere are two workflows defined in this repository:\n- [Publish Docker Image](https://github.com/piraces/docker-bfg-repo-cleaner/actions/workflows/docker-publish.yml): builds, tag, label and push the image on every release to GitHub Docker repository and Docker Hub.\n- [CI Dive Check](https://github.com/piraces/docker-bfg-repo-cleaner/actions/workflows/dive-check.yml): checks with [dive](https://github.com/wagoodman/dive) every commit and PR to ensure we are keeping wasted space to a minimum.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiraces%2Fdocker-bfg-repo-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiraces%2Fdocker-bfg-repo-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiraces%2Fdocker-bfg-repo-cleaner/lists"}