-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "dry_run" #185
Add "dry_run" #185
Conversation
Basically build, but don't push? I think this could be better explained/used as |
@ghostsquad that name works as well as the other - I'm comfortable with either naming. @vito, do you have an opinion? |
@matthope what resources are you referring to? |
Thanks for the PR! I don't think this'll really work out when running in a pipeline, though. After the This seems like something that would be better off as a task. A What's the use case for @ghostsquad I prefer |
I was just trying to prepare the same pull request.
|
Having a Moving all this around to have separate things (tasks, resources) for building then uploading a image would address the requirement for Unfortunately, this hits on the issue where |
@matthope Gotcha. Yeah, |
@matthope can you give an example building image from Dockerfile from git resource without pushing it to registry? |
@vito please reopen this. I strongly disagree that an "appropriate solution" is to "steal setup code from this resource" and make a task. The scenario is a simple one: I have PR, and I want to make sure the docker image can be built, but I don't need it to be pushed. |
@ghostsquad I fully understand the scenario and its importance to many people. There is no point reopening this PR, as it isn't going to work as part of the resource interface. If there are no side effects, it cannot function as a If someone wants to submit a different PR to embed a task in this resource image (see this resource for example), reusing the existing setup code as I described, that would be a step in the right direction. It would at least, like, work. |
An alternative to this would be to |
The Slack notification resource implements a no-op The Going a step further, notification resources aren't exactly an example of good resource design. There's a reason we're planning to implement much better support for notifications in the future (see early iterations of concourse/rfcs#1). There are a ton of downsides to shoehorning notifications into the resource model: redundant Also, The I would still suggest that the "Concoursey" outcome of this would fundamentally be a task, not a resource. If there are pain points there that are pushing you away from that approach, we should understand them and design improvements to Concourse's core. |
I would like to test the docker image can actually be built, without pushing it. So The reason I don't want to do this inside a |
What is the current best approach to build a Docker image without pushing it anywhere? Thanks, Rich |
Thanks very much. I'll give it a go some time and update here, but I might stick with my current approach of building with "docker-image-resource" and sending to an ignored ECR for the short term. |
Continuing the work from @pickledrick - #154