docker-builder icon indicating copy to clipboard operation
docker-builder copied to clipboard

post build hook for running black box tests

Open rafecolton opened this issue 10 years ago • 6 comments

maybe with bats, since it's pretty universal

rafecolton avatar May 28 '14 18:05 rafecolton

@rafecolton Could this post build hook also be used for running arbitrary scripts after a successful job (build/tag/push)?

colegleason avatar Jul 01 '14 17:07 colegleason

@colegleason that's the general idea; however, there are some serious security implications of this feature, depending on the implementation. I'm also not 100% sure it's within the scope of this project.

I'd love to hear any thoughts you may have (on either the implementation or the scope).

rafecolton avatar Jul 01 '14 17:07 rafecolton

Yeah, after thinking about it for a bit I think I will just use docker-builder as a step in a larger CI build. To do that I will need an interface to check on the status of an async build or otherwise block until a build succeeds.

colegleason avatar Jul 01 '14 17:07 colegleason

Yeah, running the job synchronously will be a simple thing to add (and already on the TODO list).

Checking the status of the build over HTTP will eventually be added as a feature as well, though that is slightly further down on the list

rafecolton avatar Jul 01 '14 18:07 rafecolton

Maybe a good way to handle this without trying to shove too much functionality into docker-builder is to use outgoing webhooks like Travis/GitHub...

rafecolton avatar Jul 02 '14 23:07 rafecolton

I think that would be a good feature, but I also like the idea of blocking until a build completes as it makes it easier to add into scripts and workflows without adding an HTTP server into the mix to listen for the webhooks.

On Wed, Jul 2, 2014 at 4:14 PM, Rafe Colton [email protected] wrote:

Maybe a good way to handle this without trying to shove too much functionality into docker-builder is to use outgoing webhooks like Travis/GitHub...

— Reply to this email directly or view it on GitHub https://github.com/modcloth/docker-builder/issues/42#issuecomment-47849096 .

Cole Gleason

Student, University of Illinois at Urbana-Champaign Email: [email protected] Website: colegleason.com

colegleason avatar Jul 02 '14 23:07 colegleason