030 / dip Goto Github PK
View Code? Open in Web Editor NEWDocker Image Patrol (DIP) is a tool that returns the latest version of a docker image using a regular expression.
Home Page: https://dip.releasesoftwaremoreoften.com/
License: MIT License
Docker Image Patrol (DIP) is a tool that returns the latest version of a docker image using a regular expression.
Home Page: https://dip.releasesoftwaremoreoften.com/
License: MIT License
I've selected Tags(tags []string) for refactoring, which is a unit of 16 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
https://hub.docker.com/search?q=&type=image&image_filter=official&page=5
No need to use an official
parameter as official images do not contain a /
I've selected inOrOutsideCluster(kubeconfig string) for refactoring, which is a unit of 17 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
dip -image 'minio/minio' -latest "^.*2020-11-25.*$" -semantic false
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x674c91]
goroutine 1 [running]:
github.com/hashicorp/go-version.(*Version).String(0x0, 0x40, 0x203000)
/home/travis/gopath/pkg/mod/github.com/hashicorp/[email protected]/version.go:359 +0x51
github.com/hashicorp/go-version.(*Version).Compare(0x0, 0x0, 0x776d80)
/home/travis/gopath/pkg/mod/github.com/hashicorp/[email protected]/version.go:118 +0x2f
github.com/hashicorp/go-version.(*Version).LessThan(...)
/home/travis/gopath/pkg/mod/github.com/hashicorp/[email protected]/version.go:298
github.com/hashicorp/go-version.Collection.Less(...)
/home/travis/gopath/pkg/mod/github.com/hashicorp/[email protected]/version_collection.go:12
sort.quickSort(0x77b5c0, 0xc0002696a0, 0x0, 0x7, 0x6)
/home/travis/.gimme/versions/go1.14.2.linux.amd64/src/sort/sort.go:205 +0x1b8
sort.Sort(0x77b5c0, 0xc0002696a0)
/home/travis/.gimme/versions/go1.14.2.linux.amd64/src/sort/sort.go:218 +0x79
main.latestTag(0xc0003a2800, 0x64, 0x80, 0x7ffcc65b7172, 0x10, 0x1, 0x0, 0xc000056fa0, 0xc00007cde0, 0xc00001c8e0)
/home/travis/gopath/src/github.com/030/dip/main.go:150 +0x36f
main.main()
/home/travis/gopath/src/github.com/030/dip/main.go:202 +0x1113
I've selected checkWhetherImagesAreUpToDate(containerImage, namespace, kind, name string) for refactoring, which is a unit of 43 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
certs should be loaded.
A private docker registry could be created in the CI
2.1.2 works
2.1.4 does not work anymore
I've selected main() for refactoring, which is a unit of 58 lines of code and 9 branch points. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Simple Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
I've selected Latest(tags []string) for refactoring, which is a unit of 56 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
dip -image mongo -latest "3."
:3.6.17
dip -image mongo -latest "4."
:4.24.0
dip -image mongo -latest "5."
:5.0.0
dip -image mongo -latest "6."
:6.17.0
dip -image mongo -latest "7."
:7.0.0
dip -image mongo -latest "8."
:809.0.0
dip -image mongo -latest "9.*"
:9.0.0
I've selected main() for refactoring, which is a unit of 57 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
I've selected ToInt(tagWithoutChars string) for refactoring, which is a unit of 17 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
use a bool to indicate that an official image from dockerhub is used rather than enforcing to add library/
to every dockerfile
I've selected Latest(tags []string) for refactoring, which is a unit of 56 lines of code and 12 branch points. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Simple Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
show version
dip -image ubuntu -latest "^18\.\d\d$"
:18.10.0
dip -image ubuntu -latest "^18\.04$"
:18.4.0
Expected
18.04
Returns 3.9.5, but should be 3.11.3.
I've selected main() for refactoring, which is a unit of 57 lines of code and 12 branch points. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Simple Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
I've selected LatestTagBasedOnRegex(official bool, latest string, image string) for refactoring, which is a unit of 34 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
I've selected main() for refactoring, which is a unit of 58 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
I've selected dockerfileTag(i string) for refactoring, which is a unit of 16 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
I've selected absent(image, registry string) for refactoring, which is a unit of 19 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
Examples:
The API URL is different and therefor the code has to be updated as the current API URL is hardcoded.
ghcr.io
mcr.microsoft.com
k8s.gcr.io
At the moment the errors are ignored in the preserve function resulting in GREEN builds while they could be RED due to errors.
Fix this by checking the error and return a log.FATAL so that the pipeline fails and the issue can be fixed.
I've selected latestTag(s []string, t string, z bool) for refactoring, which is a unit of 36 lines of code and 3 parameters. Addressing this will make our codebase more maintainable and improve Better Code Hub's Keep Unit Interfaces Small guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
Suitable for CI. If absent == false
then an exit 1
should be thrown to ensure that the CI job fails and an image does not get overwritten.
Examples
14000002
14.0.2_12-jre-hotspot-bionic
14000002
14.0.2_8-jre-hotspot-bionic
latest version: 14.0.2_8-jre-hotspot-bionic, while it should be 14.0.2_12-jre-hotspot-bionic
and
1016002
1.16.2-alpine3.13
1016002
1.16.2-alpine3.12
latest version: 1.16.2-alpine3.12, while it should be 1.16.2-alpine3.13
registry.hub.docker.com
dip -image docker -latest '^19.03*$' -semantic false
returns:
19.3.0
while
19.03.8
is expected
For example, nginx 1..* does return 1.18 instead of 1.19
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.