Skip to content

Cloud build hooks examples#180

Merged
sanscontext merged 1 commit into
docker:masterfrom
sanscontext:hooks-xmpl
Oct 17, 2016
Merged

Cloud build hooks examples#180
sanscontext merged 1 commit into
docker:masterfrom
sanscontext:hooks-xmpl

Conversation

@sanscontext

Copy link
Copy Markdown
Contributor

Add build hooks examples for Issue #115

cc @pchico83 for review

Signed-off-by: LRubin lrubin@docker.com


To override these phases, create a folder called `hooks` in your source code
repository at the same directory level as your Dockerfile. Create a file called
`hooks/build`, `hooks/test`, or `hooks/push` and include commands that the

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I would commend about pre/post hooks too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Those are in a separate section below, but I can also try to link to the stuff below so they definitely see it.

Comment thread docker-cloud/builds/advanced.md Outdated
```

> **Caution**: A `hooks/build` file overrides the basic `docker build` command
used by the builder, so you must include a similar build command in the hook the

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

"in the hook the automated" --> missing "or"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch, thank you!

Signed-off-by: LRubin <lrubin@docker.com>
@sanscontext sanscontext merged commit 2e62354 into docker:master Oct 17, 2016
@sanscontext sanscontext deleted the hooks-xmpl branch October 17, 2016 21:17
joaofnfernandes pushed a commit to joaofnfernandes/docker.github.io that referenced this pull request Aug 16, 2017
joaofnfernandes pushed a commit to joaofnfernandes/docker.github.io that referenced this pull request Aug 16, 2017
shin- pushed a commit to shin-/docker.github.io that referenced this pull request Aug 19, 2017
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.

2 participants