Giter VIP home page Giter VIP logo

docker-bfg-repo-cleaner's Introduction

docker-bfg-repo-cleaner

Publish Docker image CI Dive Check Docker GitHub Docker Pulls

A docker image for BFG Repo-Cleaner (by rtyley).

How is built

  • Actually is built using the openjdk official image only with JRE (openjdk:8-jre-slim).
  • The actual .jar file is in this repo, managed with Git LFS. You can check the checksum from the original published .jar available here.
  • In order to be able to execute the command bfg as it is, a little trick is made by specifying a 'Shebang' and the .jar file content in an executable in the /bin folder of the container.

How to use it

It only requires you to mount the repository you want to use with bfg and perform the command you want.

For example to remove .env files in my repository using bfg:

docker 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

docker 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)

Make sure to specify the correct path to mount and the working directory.

CI/CD workflows

There are two workflows defined in this repository:

  • Publish Docker Image: builds, tag, label and push the image on every release to GitHub Docker repository and Docker Hub.
  • CI Dive Check: checks with dive every commit and PR to ensure we are keeping wasted space to a minimum.

docker-bfg-repo-cleaner's People

Contributors

dependabot[bot] avatar piraces avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.