Giter Site home page Giter Site logo

Comments (4)

schickling avatar schickling commented on May 30, 2024

That's a good point. Are there any easy ways to tag images based on the current way how this repository is structured?

from dockerfiles.

willdady avatar willdady commented on May 30, 2024

Normally you'd tag the repo and push the image with the same tag. Something like:

docker build -t schickling/postgres-backup-s3:$(git describe --abbrev=0 --tags) .

However, since you've got several images in this repo that pattern won't work. Would be good if you split each into their own repo. Would make it easier for people to fork/contribute.

from dockerfiles.

schickling avatar schickling commented on May 30, 2024

Suggestion 1) Hmm I'm trying to avoid any repetitive manual steps if possible.
Suggestion 2) Splitting up the repositories decreases visibility/discoverability of the images so I try to avoid this if possible.

What I'm currently thinking of is a CI script which somehow builds & tags the images individually. However I don't have the time right now to look into this. I'd be happy to merge any PRs which would make this easier.

from dockerfiles.

willdady avatar willdady commented on May 30, 2024

Well ultimately it's up to you. Personally I think one-repository-per-image is a much better approach, for a number of reasons:

  • Repo tags = Image tags
  • Bugs/Issues easier to track
  • Easier for people to fork/contribute
  • Obvious mapping of image to repo when browsing docker hub (this is how I 'discovered' postgres-backup-s3)

Anyway... I won't keep going on about it. I hope you reconsider. Regardless I may fork to work around this problem myself as I can't risk a push to 'latest' breaking my deployments.

from dockerfiles.

Related Issues (20)

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.