官术网_书友最值得收藏!

Using cloud container builders

One of the features that Docker Hub offers is automated builds (autobuilds). This is especially useful in Continuous Integration and Continuous Deployment scenarios where you would like to ensure that each push to your code repository results in a build, a publish, and potentially a deployment.

Currently, Docker Hub does not support Windows images, but this is likely to change in the near future. We will demonstrate this usage on a Linux image, but all the principles remain the same. For Windows container cloud builds, check out the next section about Azure Container Registry.

To set up automated builds, complete the following steps:

  1. Create a GitHub repository where your application code resides, together with a Dockerfile that defines the Docker image for the application.
  2. Create a Docker Hub repository and add an autobuild trigger. This trigger can also be added after creating the repository.

 

  1. Customize the build rules.
  2. Optionally, enable autotests. This is a validation feature provided by Docker Hub where you can define your test suite in order to test each new image push.

Let's begin by creating a GitHub repository!

主站蜘蛛池模板: 叙永县| 连江县| 台山市| 田林县| 嵊州市| 佛学| 禄丰县| 博兴县| 迁安市| 界首市| 皮山县| 瑞昌市| 车险| 莆田市| 麻城市| 年辖:市辖区| 阳西县| 泸西县| 陕西省| 桦川县| 钦州市| 南充市| 砚山县| 平顶山市| 广安市| 安顺市| 酒泉市| 高州市| 彝良县| 金昌市| 天门市| 迁西县| 恩施市| 绥宁县| 洛宁县| 上蔡县| 龙岩市| 沾益县| 岗巴县| 北川| 泗洪县|