99designs / aws-ecr-gc Goto Github PK
View Code? Open in Web Editor NEWGarbage collector for Amazon ECR docker registry
License: MIT License
Garbage collector for Amazon ECR docker registry
License: MIT License
Whilst running the tool over our images in CI, we have started getting the following intermittent errors:
running aws-ecr-gc 0s
Total images in workbench-ci (us-east-1): 21
Images to delete (1)
2017-05-22 05:54:32: sha256:2e1595173... []
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x6df7e4]
goroutine 1 [running]:
github.com/99designs/aws-ecr-gc/registry.(*Session).DeleteImages(0xc42000e0a0, 0x7ffdeac09f4a, 0xc, 0xc42025af40, 0x1, 0x1, 0x1, 0x1, 0x711740)
/home/pda/go/src/github.com/99designs/aws-ecr-gc/registry/ecr.go:76 +0x3b4
main.main()
/home/pda/go/src/github.com/99designs/aws-ecr-gc/main.go:64 +0x520
For a brand new ECR repository which has never had an image pushed:
panic: InvalidParameter: 1 validation error(s) found.
--
| - minimum field size of 1, DescribeImagesInput.ImageIds.
|
|
| goroutine 1 [running]:
| main.main()
| /Users/pda/go/src/github.com/99designs/aws-ecr-gc/main.go:57 +0x308
This flag is usually a good feature to have. Specially for new adopters who want to understand a little bit more about the code and would want to understand what the code would do once it's fired without risking it's own infrastructure. :)
If you guys are keen, I would be glad to create a PR for this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.