-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,33 @@ | ||
# Image Cleanup Client | ||
|
||
## General | ||
|
||
The image cleanup client is used to clean up Docker images in a Docker Registry when they are tagged using git SHA. | ||
|
||
This helps to save space because not anymore needed images are being removed from the registry. | ||
This helps to save space because obsolete images are being removed from the registry. | ||
|
||
The respective licenses for attribution are placed in `/attribution`. | ||
|
||
## Development | ||
Build and run: | ||
|
||
### Requirements | ||
|
||
* go 1.13 (`sudo snap install --classic go`) | ||
* goreleaser (`sudo snap install --classic goreleaser`) | ||
|
||
### Build | ||
|
||
``` | ||
goreleaser --snapshot --rm-dist | ||
``` | ||
|
||
### Test | ||
|
||
``` | ||
go test ./... | ||
``` | ||
|
||
### Run | ||
``` | ||
go build -o client | ||
./client | ||
./dist/image-cleanup_linux_amd64/image-cleanup --help | ||
``` |