GithubHelp home page GithubHelp logo

Comments (4)

jondlm avatar jondlm commented on June 9, 2024 1

Would you guys accept a PR for this feature? It's something my company needs for our use-cases as well.

We're going to be doing a gradual transition to concourse and as such we'll have a mix of developers pushing images directly. Our registry, artifactory, doesn't allow the same tag to be pushed multiple times and causes docker push to throw a cryptic error message (manifest invalid: manifest invalid). This feature would prevent the builds from failing if a particular tag was already present on the registry; effectively making the put a no-op.

I'm thinking this should be a new parameter called prevent_overwrite and it will default to false. I'm open to better names for the parameter. I'm also planning to use docker inspect --type=image ${repository}:${tag_name} to check if the image already exists.

If my proposal is approved, is there a longer process that I'll need to follow to get my changes to flow through into concourse proper?

from docker-image-resource.

concourse-bot avatar concourse-bot commented on June 9, 2024

Hi there!

We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

The current status is as follows:

  • #135175651 Ensure - If does not exist put option

This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

from docker-image-resource.

ls-yann-david avatar ls-yann-david commented on June 9, 2024

I only have one pipeline but I do like this feature. I was looking for something like this.

from docker-image-resource.

jondlm avatar jondlm commented on June 9, 2024

I've since discovered that docker inspect --type=image only checks local tags, so it's not going to work for what I was hoping.

from docker-image-resource.

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.