Fix all dockerlint warnings/info's? #708
Replies: 4 comments 6 replies
-
@Macleykun That would be useful, indeed. As with most anything, the best way to do so in my opinion is to open a PR with the changes you propose to make. You seem to want to do this in a phased manner. I understand that and it's fine in principle, but the repo will be in motion while you update the Dockerfiles. That means that you may have to solve merge conflicts due to other people's PRs being merged, and/or you may want to cut up your changes into more than one PR to prevent that.
We don't have to if you contribute. He really does keep an eye on this project he started. :) |
Beta Was this translation helpful? Give feedback.
-
I believe it’s best to take 5 dockerfiles at a time and scale up to 10 if it’ll go well.
You want me to also use only one type of image? Like the debian:stable-slim that @mike-barber proposed one time.
Once the standard base image is established, I’ll take inspiration of the given dockerfiles and try to minimize steps and size (copying only files that are needed). You want for each a before and after score? (Have to do tests anyways for each).
Met vriendelijke groet,
Wesley de Vree
…________________________________
Van: Rutger van Bergen ***@***.***>
Verzonden: Tuesday, September 7, 2021 9:36:05 AM
Aan: PlummersSoftwareLLC/Primes ***@***.***>
CC: Macley ***@***.***>; Mention ***@***.***>
Onderwerp: Re: [PlummersSoftwareLLC/Primes] Fix all dockerlint warnings/info's? (#708)
@Macleykun<https://github.com/Macleykun> That would be useful, indeed. As with most anything, the best way to do so in my opinion is to open a PR with the changes you propose to make. You seem to want to do this in a phased manner. I understand that and it's fine in principle, but the repo will be in motion while you update the Dockerfiles. That means that you may have to solve merge conflicts due to other people's PRs being merged, and/or you may want to cut up your changes into more than one PR to prevent that.
Also say hi from me to dave :P haha
We don't have to if you contribute. He really does keep an eye on this project he started. :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#708 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGJIY42K62STPAXOHFXTSU3UAW6GLANCNFSM5DRYMH4Q>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Actually, if we’re speaking about specific compiler versions. I already have to do that as some lint errors are about that. I’ll check which compiler version Is used and if I can get that on Debian aswell, then technically only the OS changed.
Also, perhaps it's better to use the alpine images? They are known to be the smallest :P
To answer my own question to include before/after scores. Here is the score before my changes:
Passes: 13540, Time: 5.000125871, Avg: 0.000369285, Limit : 1000000, Count1 : 78498, Count2: 78498, Valid :TRUE
BoopBeepBoopBeep; 13540; 5.000125871;1;algorithm=base,faithful=no
After
```
Passes: 13407, Time: 5.000023362, Avg: 0.000372941, Limit : 1000000, Count1 : 78498, Count2: 78498, Valid :TRUE
BoopBeepBoopBeep; 13407; 5.000023362;1;algorithm=base,faithful=no
```
Second time after
```
Passes: 13590, Time: 5.000006402, Avg: 0.000367918, Limit : 1000000, Count1 : 78498, Count2: 78498, Valid :TRUE
BoopBeepBoopBeep; 13590; 5.000006402;1;algorithm=base,faithful=no
```
So i won't include any before/after tests.
I also will try to make each dockerfile i pass into a build and then run phase. I don't think specifying AS RUN is needed unless you prefer otherwise. Not sure if this improves pulling images/calculating primes, but we'll see.
Do you wish that each dockerfile has a build phase, followed by a RUN phase?
Current pull: #710
… I'll assume that all new pull's will be asked to change the dockerfile accordingly to fix all lints and possibly have a build phase and run phase. If you want.
|
Beta Was this translation helpful? Give feedback.
-
Good news, i did all the programming languages already: https://github.com/Macleykun/Primes/tree/drag-race2 The dockerlint part 2 will only focus what's done and not focus on any newer languages that have come. Part 3 will be the final one that will be alot smaller interms of changes but will make everything on the repo up-to-date and compliant. From there it's up to the maintainers/contributers if they want to keep being 100% dockerlint compliant. I don't know if it's smart for me to always keep an eye on each pull and fix the dockerlint myself. |
Beta Was this translation helpful? Give feedback.
-
Hello there!
I've been lurking here since the first video of dave, i lack really any proper experience in any (programming) language, but always loved working with Docker!
While lurking, i noticed the dockerlint you guys use, and today i finnaly want to propose that i can look into these warnings/info's if it's useful/desired!
I created a pretty
badsimple shell script:I admit, using the docker way for hadolint makes it quite slow, but i'll paste the results here, to spare you the time.
There's:
63 incompliant Dockerfiles
57 warning
112 info level
If you want to know per code what the amounts are, you can see that here:
It was already fun to find out what lint tool ya guys are using, make a script and optimize the results with shell & excel :P
There might be some DL's that can be fixed by some simple replacing. DL3059 has issues like:
I probably would check them manually as 63 files seems like a lot, but doable in a few hours.
Just let me know if you guys want me to look into this, probably will work on this daily, more so in the weekends until it's all done.
Also say hi from me to dave :P haha
Beta Was this translation helpful? Give feedback.
All reactions