这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@michaelshobbs
Copy link
Member

This is a fairly large change to core functionality.

  • moves build and release into 00_dokku-standard plugin
  • introduces (pre/post)-build-dockerfile and (pre/post)-release-dockerfile pluginhooks
  • implements config plugin for dockerfile apps with docker-args-deploy pluginhook
  • introduces receive-app pluginhook in an attempt to be git agnostic

Please pick this apart with extra vigor.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not do a separate PR with these changes first?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can. it was on my mind at the time.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sokay as is for now.

@josegonzalez
Copy link
Member

I'm +1 on the changes, -1 on the fact that it's a big PR. We should be moving towards smaller, more reviewable PRs going forward.

Assuming tests pass, I looked it over and can't think of anything glaring at the moment. I'll take a look again in a bit.

@michaelshobbs
Copy link
Member Author

That's reasonable. Let me split out the style stuff into another PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecation happened in 0.3.14, and it will be removed in 0.4.0.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed.

@michaelshobbs michaelshobbs force-pushed the mh-dockerfile-support branch 2 times, most recently from 541ec1f to 5684754 Compare February 7, 2015 22:43
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually think this should probably be refactored out of commands directly in the plugin. I don't see the need now to be able to run git-build on it's own.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh except, derp!! We moved it to commands so the ps:rebuild, et al. would work. So nevermind, carry on, nothing to see here.

@michaelshobbs
Copy link
Member Author

I think we should let this simmer for a bit and see if it gets some more feedback.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about the /bin/bash part?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superfluous, as far as I can tell.

josegonzalez added a commit that referenced this pull request Feb 8, 2015
@josegonzalez josegonzalez merged commit c2fa433 into master Feb 8, 2015
@josegonzalez josegonzalez deleted the mh-dockerfile-support branch February 8, 2015 22:38
@michaelshobbs
Copy link
Member Author

Notice to the following authors:
pre/post-build and pre/post-release pluginhooks are DEPRECATED and will be removed in a future version. (0.4.0 perhaps?)

@ohardy, @hughfletcher, @ohardy, @luxifer, @ohardy, @jeffutter, @stuartpb, @apmorton, @statianzo, @statianzo, @sehrope, @iskandar, @mikecsh, @nornagon, @pauldub, @cedricziel, @cedricziel, @cameron-martin, @ohardy, @pnegahdar, @ademuk, @alexbeletsky, @thrashr888, @gdi2290, @robv, @davidcollom, @baobaab, @Cactusbone, @jazzzz, @Volune, @mlebkowski, @darkpixel

@PatrickJS
Copy link
Contributor

gg

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn’t this pre-hook be in fact before the build?

@cedricziel
Copy link

@michaelshobbs thx for the mass ping ;) I havent been into dokku for a while now. I would like to continue to maintain my plugins.. So: Is it documented somewhere how exactly too hook in now? Read: Is there a replacement for the mentioned hooks?

@mlebkowski
Copy link
Contributor

@michaelshobbs, thanks for the ping, fixed in dokku-community/dokku-acl@a81aa53.

But you should probably mention that those pluginhooks are just being renamed to pre/post-build-buildstep and pre/post-release-buildstep, so other devs have it easier without reading the code.

@josegonzalez
Copy link
Member

Yeah, we have pluginhook docs coming out pretty soon, which hopefully will have examples for all of them.

@michaelshobbs
Copy link
Member Author

@mlebkowski 👍 to reiterate, pre/post-build will be renamed to pre/post-build-buildstep and pre/post-release to pre/post-release-buildstep

@techniq techniq mentioned this pull request Feb 19, 2015
Cactusbone added a commit to F4-Group/dokku-build-hook that referenced this pull request Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants