mirror of https://github.com/docker/docs.git
Docs: Fix builds.md line-length + minor typo issues
This PR proposes to fix some already existing (i.e., older) line-length & line-alignment issues and the ones recently included/merged with the PR #7406 (https://github.com/docker/docker/pull/7406). It also proposes to fix a couple minor typography mistakes (i.e., spelling of GitHub and Service Hooks (headers)) This PR does *not* propose any content changes. Docker-DCO-1.1-Signed-off-by: O.S. Tezer <ostezer@gmail.com> (github: ostezer)
This commit is contained in:
parent
2c90fde982
commit
8b3f2381d0
|
@ -1,41 +1,43 @@
|
||||||
page_title: Automated Builds on Docker Hub
|
page_title: Automated Builds on Docker Hub
|
||||||
page_description: Docker Hub Automated Builds
|
page_description: Docker Hub Automated Builds
|
||||||
page_keywords: Docker, docker, registry, accounts, plans, Dockerfile, Docker Hub, docs, documentation, trusted, builds, trusted builds, automated builds
|
page_keywords: Docker, docker, registry, accounts, plans, Dockerfile, Docker Hub, docs, documentation, trusted, builds, trusted builds, automated builds
|
||||||
|
|
||||||
# Automated Builds on Docker Hub
|
# Automated Builds on Docker Hub
|
||||||
|
|
||||||
## About Automated Builds
|
## About Automated Builds
|
||||||
|
|
||||||
*Automated Builds* are a special feature of Docker Hub which allow you to use
|
*Automated Builds* are a special feature of Docker Hub which allow you to
|
||||||
[Docker Hub's](https://hub.docker.com) build clusters to automatically create images from
|
use [Docker Hub's](https://hub.docker.com) build clusters to automatically
|
||||||
a specified `Dockerfile` and a GitHub or Bitbucket repo (or "context"). The system will
|
create images from a specified `Dockerfile` and a GitHub or Bitbucket repo
|
||||||
clone your repository and build the image described by the `Dockerfile` using the
|
(or "context"). The system will clone your repository and build the image
|
||||||
repository as the context. The resulting automated image will then be uploaded to the
|
described by the `Dockerfile` using the repository as the context. The
|
||||||
Docker Hub registry and marked as an *Automated Build*.
|
resulting automated image will then be uploaded to the Docker Hub registry
|
||||||
|
and marked as an *Automated Build*.
|
||||||
|
|
||||||
Automated Builds have several advantages:
|
Automated Builds have several advantages:
|
||||||
|
|
||||||
* Users of *your* Automated Build can trust that the resulting image was built exactly as
|
* Users of *your* Automated Build can trust that the resulting
|
||||||
specified.
|
image was built exactly as specified.
|
||||||
|
|
||||||
* The `Dockerfile` will be available to anyone with access to your repository
|
* The `Dockerfile` will be available to anyone with access to
|
||||||
on the Docker Hub registry.
|
your repository on the Docker Hub registry.
|
||||||
|
|
||||||
* Because the process is automated, Automated Builds help to make sure that your
|
* Because the process is automated, Automated Builds help to
|
||||||
repository is always up to date.
|
make sure that your repository is always up to date.
|
||||||
|
|
||||||
Automated Builds are supported for both public and private repositories on both
|
Automated Builds are supported for both public and private repositories
|
||||||
[GitHub](http://github.com) and [Bitbucket](https://bitbucket.org/).
|
on both [GitHub](http://github.com) and [Bitbucket](https://bitbucket.org/).
|
||||||
|
|
||||||
To use Automated Builds, you must have an
|
To use Automated Builds, you must have an [account on Docker Hub](
|
||||||
[account on Docker Hub](http://docs.docker.com/userguide/dockerhub/#creating-a-docker-hub-account)
|
http://docs.docker.com/userguide/dockerhub/#creating-a-docker-hub-account)
|
||||||
and on GitHub and/or Bitbucket. In either case, the account needs to be properly
|
and on GitHub and/or Bitbucket. In either case, the account needs
|
||||||
validated and activated before you can link to it.
|
to be properly validated and activated before you can link to it.
|
||||||
|
|
||||||
## Setting up Automated Builds with GitHub
|
## Setting up Automated Builds with GitHub
|
||||||
|
|
||||||
In order to set up an Automated Build, you need to first link your
|
In order to set up an Automated Build, you need to first link your
|
||||||
[Docker Hub](https://hub.docker.com) account with a GitHub account. This
|
[Docker Hub](https://hub.docker.com) account with a GitHub account.
|
||||||
will allow the registry to see your repositories.
|
This will allow the registry to see your repositories.
|
||||||
|
|
||||||
> *Note:*
|
> *Note:*
|
||||||
> Automated Builds currently require *read* and *write* access since
|
> Automated Builds currently require *read* and *write* access since
|
||||||
|
@ -43,26 +45,32 @@ will allow the registry to see your repositories.
|
||||||
> hook. We have no choice here, this is how GitHub manages permissions, sorry!
|
> hook. We have no choice here, this is how GitHub manages permissions, sorry!
|
||||||
> We do guarantee nothing else will be touched in your account.
|
> We do guarantee nothing else will be touched in your account.
|
||||||
|
|
||||||
To get started, log into your Docker Hub account and click the "+ Add Repository" button
|
To get started, log into your Docker Hub account and click the
|
||||||
at the upper right of the screen. Then select
|
"+ Add Repository" button at the upper right of the screen. Then select
|
||||||
[Automated Build](https://registry.hub.docker.com/builds/add/).
|
[Automated Build](https://registry.hub.docker.com/builds/add/).
|
||||||
|
|
||||||
Select the [GitHub service](https://registry.hub.docker.com/associate/github/).
|
Select the [GitHub service](https://registry.hub.docker.com/associate/github/).
|
||||||
|
|
||||||
Then follow the onscreen instructions to authorize and link your GitHub account to Docker
|
Then follow the onscreen instructions to authorize and link your
|
||||||
Hub. Once it is linked, you'll be able to choose a repo from which to create the
|
GitHub account to Docker Hub. Once it is linked, you'll be able to
|
||||||
Automatic Build.
|
choose a repo from which to create the Automatic Build.
|
||||||
|
|
||||||
### Creating an Automated Build
|
### Creating an Automated Build
|
||||||
|
|
||||||
You can [create an Automated Build](https://registry.hub.docker.com/builds/github/select/)
|
You can [create an Automated Build](
|
||||||
from any of your public or private GitHub repositories with a `Dockerfile`.
|
https://registry.hub.docker.com/builds/github/select/) from any of your
|
||||||
|
public or private GitHub repositories with a `Dockerfile`.
|
||||||
|
|
||||||
### Github Submodules
|
### GitHub Submodules
|
||||||
|
|
||||||
If your repository contains links to private submodules, you'll need to add a deploy key so that the Docker Hub will be able to clone the repository from GitHub.
|
If your repository contains links to private submodules, you'll
|
||||||
|
need to add a deploy key so that the Docker Hub will be able to
|
||||||
|
clone the repository from GitHub.
|
||||||
|
|
||||||
Your Docker Hub deploy key is located under the "Build Details" menu on the automated build's main page in the Hub. Add this key to your GitHub submodule by viewing the Settings page for the repository on GitHub and selecting "Deploy keys".
|
Your Docker Hub deploy key is located under the "Build Details"
|
||||||
|
menu on the automated build's main page in the Hub. Add this key
|
||||||
|
to your GitHub submodule by viewing the Settings page for the
|
||||||
|
repository on GitHub and selecting "Deploy keys".
|
||||||
|
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -86,16 +94,16 @@ Your Docker Hub deploy key is located under the "Build Details" menu on the auto
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
### GitHub organizations
|
### GitHub Organizations
|
||||||
|
|
||||||
GitHub organizations will appear once your membership to that organization is
|
GitHub organizations will appear once your membership to that organization is
|
||||||
made public on GitHub. To verify, you can look at the members tab for your
|
made public on GitHub. To verify, you can look at the members tab for your
|
||||||
organization on GitHub.
|
organization on GitHub.
|
||||||
|
|
||||||
### GitHub service hooks
|
### GitHub Service Hooks
|
||||||
|
|
||||||
Follow the steps below to configure the GitHub service hooks for your
|
Follow the steps below to configure the GitHub service
|
||||||
Automated Build:
|
hooks for your Automated Build:
|
||||||
|
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -127,18 +135,19 @@ Automated Build:
|
||||||
## Setting up Automated Builds with Bitbucket
|
## Setting up Automated Builds with Bitbucket
|
||||||
|
|
||||||
In order to setup an Automated Build, you need to first link your
|
In order to setup an Automated Build, you need to first link your
|
||||||
[Docker Hub](https://hub.docker.com) account with a Bitbucket account. This
|
[Docker Hub](https://hub.docker.com) account with a Bitbucket account.
|
||||||
will allow the registry to see your repositories.
|
This will allow the registry to see your repositories.
|
||||||
|
|
||||||
To get started, log into your Docker Hub account and click the "+ Add Repository" button at
|
To get started, log into your Docker Hub account and click the
|
||||||
the upper right of the screen. Then select [Automated Build](https://registry.hub.docker.com/builds/add/).
|
"+ Add Repository" button at the upper right of the screen. Then
|
||||||
|
select [Automated Build](https://registry.hub.docker.com/builds/add/).
|
||||||
|
|
||||||
Select the [Bitbucket
|
Select the [Bitbucket source](
|
||||||
source](https://registry.hub.docker.com/associate/bitbucket/).
|
https://registry.hub.docker.com/associate/bitbucket/).
|
||||||
|
|
||||||
Then follow the onscreen instructions to authorize and link your Bitbucket account
|
Then follow the onscreen instructions to authorize and link your
|
||||||
to Docker Hub. Once it is linked, you'll be able to choose a repo from which to create
|
Bitbucket account to Docker Hub. Once it is linked, you'll be able
|
||||||
the Automatic Build.
|
to choose a repo from which to create the Automatic Build.
|
||||||
|
|
||||||
### Creating an Automated Build
|
### Creating an Automated Build
|
||||||
|
|
||||||
|
@ -148,9 +157,9 @@ public or private Bitbucket repositories with a `Dockerfile`.
|
||||||
|
|
||||||
### Adding a Hook
|
### Adding a Hook
|
||||||
|
|
||||||
When you link your Docker Hub account, a `POST` hook should get automatically added to
|
When you link your Docker Hub account, a `POST` hook should get automatically
|
||||||
your Bitbucket repo. Follow the steps below to confirm or modify the Bitbucket hooks for
|
added to your Bitbucket repo. Follow the steps below to confirm or modify the
|
||||||
your Automated Build:
|
Bitbucket hooks for your Automated Build:
|
||||||
|
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -183,10 +192,10 @@ your Automated Build:
|
||||||
|
|
||||||
## The Dockerfile and Automated Builds
|
## The Dockerfile and Automated Builds
|
||||||
|
|
||||||
During the build process, Docker will copy the contents of your `Dockerfile`. It will
|
During the build process, Docker will copy the contents of your `Dockerfile`.
|
||||||
also add it to the [Docker Hub](https://hub.docker.com) for the Docker community (for
|
It will also add it to the [Docker Hub](https://hub.docker.com) for the Docker
|
||||||
public repos) or approved team members/orgs (for private repos) to see on the repository
|
community (for public repos) or approved team members/orgs (for private repos)
|
||||||
page.
|
to see on the repository page.
|
||||||
|
|
||||||
## README.md
|
## README.md
|
||||||
|
|
||||||
|
@ -201,20 +210,20 @@ repository's full description.The build process will look for a
|
||||||
|
|
||||||
### Build triggers
|
### Build triggers
|
||||||
|
|
||||||
If you need a way to trigger Automated Builds outside of GitHub
|
If you need a way to trigger Automated Builds outside of GitHub or Bitbucket,
|
||||||
or Bitbucket, you can set up a build trigger. When you turn on the build
|
you can set up a build trigger. When you turn on the build trigger for an
|
||||||
trigger for an Automated Build, it will give you a URL to which you can
|
Automated Build, it will give you a URL to which you can send POST requests.
|
||||||
send POST requests. This will trigger the Automated Build, much as with a GitHub webhook.
|
This will trigger the Automated Build, much as with a GitHub webhook.
|
||||||
|
|
||||||
Build triggers are available under the Settings menu of each Automated Build repo on the
|
Build triggers are available under the Settings menu of each Automated Build
|
||||||
Docker Hub.
|
repo on the Docker Hub.
|
||||||
|
|
||||||
> **Note:**
|
> **Note:**
|
||||||
> You can only trigger one build at a time and no more than one
|
> You can only trigger one build at a time and no more than one
|
||||||
> every five minutes. If you already have a build pending, or if you
|
> every five minutes. If you already have a build pending, or if you
|
||||||
> recently submitted a build request, those requests *will be ignored*.
|
> recently submitted a build request, those requests *will be ignored*.
|
||||||
> To verify everything is working correctly, check the logs of last ten triggers on the
|
> To verify everything is working correctly, check the logs of last
|
||||||
settings page .
|
> ten triggers on the settings page .
|
||||||
|
|
||||||
### Webhooks
|
### Webhooks
|
||||||
|
|
||||||
|
@ -264,12 +273,14 @@ Build's repo.
|
||||||
|
|
||||||
### Repository links
|
### Repository links
|
||||||
|
|
||||||
Repository links are a way to associate one Automated Build with another. If one
|
Repository links are a way to associate one Automated Build with
|
||||||
gets updated,the linking system triggers a rebuild for the other Automated Build.
|
another. If one gets updated,the linking system triggers a rebuild
|
||||||
This makes it easy to keep all your Automated Builds up to date.
|
for the other Automated Build. This makes it easy to keep all your
|
||||||
|
Automated Builds up to date.
|
||||||
|
|
||||||
To add a link, go to the repo for the Automated Build you want to link to and click on
|
To add a link, go to the repo for the Automated Build you want to
|
||||||
*Repository Links* under the Settings menu at right. Then, enter the name of the repository that you want have linked.
|
link to and click on *Repository Links* under the Settings menu at
|
||||||
|
right. Then, enter the name of the repository that you want have linked.
|
||||||
|
|
||||||
> **Warning:**
|
> **Warning:**
|
||||||
> You can add more than one repository link, however, you should
|
> You can add more than one repository link, however, you should
|
||||||
|
|
Loading…
Reference in New Issue