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

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!

主站蜘蛛池模板: 太和县| 舞阳县| 灵宝市| 淮阳县| 郸城县| 台中市| 宣威市| 琼中| 江油市| 平遥县| 蕉岭县| 太和县| 赫章县| 应用必备| 长顺县| 连南| 鲜城| 固原市| 通榆县| 理塘县| 陕西省| 公安县| 改则县| 邯郸市| 沧州市| 岱山县| 武城县| 池州市| 喀喇沁旗| 河北区| 和政县| 宁陕县| 长春市| 呼和浩特市| 开原市| 镇原县| 枝江市| 林西县| 紫阳县| 鄄城县| 贵溪市|