GithubHelp home page GithubHelp logo

Comments (5)

smaftoul avatar smaftoul commented on September 27, 2024

@kpolszewski are you willing to do a PR ?

from docker-distribution-pruner.

kpolszewski avatar kpolszewski commented on September 27, 2024

I think I might try to, not in close future, though.

from docker-distribution-pruner.

kpolszewski avatar kpolszewski commented on September 27, 2024

how about a merge?

from docker-distribution-pruner.

smaftoul avatar smaftoul commented on September 27, 2024

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.

kpolszewski avatar kpolszewski commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.