Comments (5)
@kpolszewski are you willing to do a PR ?
from docker-distribution-pruner.
I think I might try to, not in close future, though.
from docker-distribution-pruner.
how about a merge?
from docker-distribution-pruner.
Thanks for your PR and sorry for lagging.
I'm not really satisfied with your PR for several reasons:
- you are removing the multistage build, thus the published image is bigger and ships a go toolchain
- you are adding an entrypoint with a shell script , the entrypoint could be just the pruner itself , and you can pass arguments to it on
docker run
command line - the shell scripts sets all flags the pruner have, with all the defaults value the pruner uses. Whenever the upstream adds a flag, we need to modify the entrypoint. The same applies if the upstream changes the default value.
I regret the pruner uses the standard go flag package that doesn't allow settings flag values from environment variables.
I think, a better solution would be to write a dockerfile that starts with FROM wizbii/docker-distribution-pruner
and just set a CMD (or an ENTRYPOINT).
I will write a README.md and submit as a PR so it's clear to everyone.
I also will create another PR to remove the CMD ["/lib/ld-musl-x86_64.so.1",
that is strange (using golang:alpine
as image in the first stage should be enough).
@kpolszewski what do you think ?
from docker-distribution-pruner.
Thanks for the remarks, I wasn't aware of multistage build, as it is kind of new. Definitely, all the points you've mentioned will improve usage experience of the image 👍
closing in favor of other PRs
from docker-distribution-pruner.
Related Issues (2)
- Still alive? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-distribution-pruner.