docs/docker-cloud
Rob Jackson 6e0df9e39e Ensure custom build hooks consume DOCKERFILE_PATH (#6026)
I have a custom build hook to pass in build arguments on a repository from which I build two Docker images (tags), from two Dockerfiles.

My second build, however, with the custom Dockerfile, was not being built correctly. It was being built with the default `Dockerfile`, instead of my specified custom one.

I quickly figured out the custom build hook was to blame because it doesn't specify which Dockerfile it should build from, but there was no mention in the documentation of an environmental variable I can consume to get the custom "Dockerfile location" value. By dumping the env vars during the build process, I can there is an environmental variable with that value: `DOCKERFILE_PATH`.

This PR updates the documentation accordingly, to:

1) Expose the fact this environmental variable exists, and explains its purpose
2) Make sure its consumed in the example custom build hook, so any copy-pasters find themselves already supporting custom Dockerfiles, rather than struggling with the same problem
2018-02-23 16:35:55 -08:00
..
apps Various copyedits to reduce future tense, wordiness, and use of 'please' (#5788) 2018-01-25 17:37:23 -08:00
builds Ensure custom build hooks consume DOCKERFILE_PATH (#6026) 2018-02-23 16:35:55 -08:00
cloud-swarm Update steps for IAM inline policy (#5870) 2018-01-30 15:48:26 -08:00
getting-started Various copyedits to reduce future tense, wordiness, and use of 'please' (#5788) 2018-01-25 17:37:23 -08:00
images WIP: add Cloud link to Azure topics (#2713) 2017-05-02 13:28:55 -07:00
infrastructure Various copyedits to reduce future tense, wordiness, and use of 'please' (#5788) 2018-01-25 17:37:23 -08:00
standard Update the styleguide (#2332) 2017-03-15 09:46:30 -07:00
docker-errors-faq.md Various copyedits to reduce future tense, wordiness, and use of 'please' (#5788) 2018-01-25 17:37:23 -08:00
dockerid.md Update dockerid.md (#4908) 2017-10-12 08:34:25 -07:00
index.md Add alt text to images which are missing it (#5047) 2017-11-20 09:49:46 -08:00
installing-cli.md Various copyedits to reduce future tense, wordiness, and use of 'please' (#5788) 2018-01-25 17:37:23 -08:00
orgs.md Various copyedits to reduce future tense, wordiness, and use of 'please' (#5788) 2018-01-25 17:37:23 -08:00
release-notes.md Various copyedits to reduce future tense, wordiness, and use of 'please' (#5788) 2018-01-25 17:37:23 -08:00
slack-integration.md Various copyedits to reduce future tense, wordiness, and use of 'please' (#5788) 2018-01-25 17:37:23 -08:00