- Hands-On Kubernetes on Windows
- Piotr Tylenda
- 190字
- 2021-06-24 16:54:04
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:
- Create a GitHub repository where your application code resides, together with a Dockerfile that defines the Docker image for the application.
- Create a Docker Hub repository and add an autobuild trigger. This trigger can also be added after creating the repository.
- Customize the build rules.
- 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!
推薦閱讀
- LaTeX Cookbook
- Learning Chef
- Apache Spark 2 for Beginners
- Visual FoxPro程序設計
- NGINX Cookbook
- 利用Python進行數據分析
- 愛上micro:bit
- 打開Go語言之門:入門、實戰與進階
- .NET Standard 2.0 Cookbook
- Python語言科研繪圖與學術圖表繪制從入門到精通
- 區塊鏈項目開發指南
- Mobile Forensics:Advanced Investigative Strategies
- jQuery從入門到精通(微課精編版)
- VMware vSphere 5.5 Cookbook
- FusionCharts Beginner’s Guide:The Official Guide for FusionCharts Suite