crusher
crusher manages labels in Dockerfiles and their layers
Table of Contents
Install
Download the latest binary here:
https://github.com/JamesWoolfenden/crusher/releases
Install from code:
- Clone repo
- Run
go install
Install remotely:
go install github.com/jameswoolfenden/crusher@latest
MacOS
brew tap jameswoolfenden/homebrew-tap
brew install jameswoolfenden/tap/crusher
Windows
I'm now using Scoop to distribute releases,
it's much quicker to update and easier to manage than previous methods,
you can install scoop from https://scoop.sh/.
Add my scoop bucket:
scoop bucket add iac https://github.com/JamesWoolfenden/scoop.git
Then you can install a tool:
scoop install crusher
Docker
docker pull jameswoolfenden/crusher
docker run --tty --volume /local/path/to/tf:/tf jameswoolfenden/crusher scan -d /tf
https://hub.docker.com/repository/docker/jameswoolfenden/crusher
Usage
Directory scan
This will look for the .github/workflow folder and update all the files it finds
there, and display a diff of the changes made to each file:
$crusher label -d .
Help
_
__ _ _ _ _ ___| |_ ___ _ _
/ _|| '_|| || |(_-<| ' \ / -_)| '_|
\__||_| \_,_|/__/|_||_|\___||_|
version: 9.9.9
NAME:
crusher - AISB utility
USAGE:
crusher [global options] command [command options]
VERSION:
9.9.9
AUTHOR:
James Woolfenden <[email protected]>
COMMANDS:
clip, c Compacts BigTable
version, v Outputs the application version
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
Building
go build
or
Make build
Extending
Log an issue, a pr or email jim.wolf @ duck.com.