Docker automated build Automated Build implementation process diagram

Docker automated build Automated Build implementation process diagram

Automated build means using Docker Hub to connect to a GitHub repository or BitBucket repository containing a Dockerfile file. Docker Hub will automatically build the image. The image built in this way will be marked as Automated Build, also known as Trusted Build. When using the image built in this way, others can freely view the Dockerfile content and know where the image came from. At the same time, since the build process is automatic, it can ensure that the images in the warehouse are the latest. The specific construction steps are as follows:

Add a warehouse

First, log in to Docker Hub, click Create in the upper right corner, and then select Create Automated Build, as shown below:


On the new page, select the Link Account button, then select Connect to GitHub. On the connection method selection page, select the first connection method, as follows:


After the selection is completed, follow the instructions to log in to GitHub and complete the authorization operation. The page after authorization is completed is as follows:

Build the image

After the authorization is completed, click the Create button in the upper right corner again, select Create Automated Build, and select GitHub on the page that opens, as shown in the following two pictures:


Here is the repository on GitHub that was just linked. There is only one docker, and then click in, as follows:


Fill in the name and description of the image, then click the Create button. The creation result is as follows:


After that, even if our image is built successfully, once the Dockerfile file in the GitHub repository is updated, the image build on Docker Hub will be automatically triggered without manual intervention, thus ensuring that the image is always up to date.

Next, users can get the image through the following command: docker pull wongsung/nginx2

After getting the image, just run it.

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Maven deploys Springboot to Docker repository in one click to prepare for automation (recommended)
  • Detailed steps for one-click automated deployment of Linux+Docker+SpringBoot+IDEA
  • Detailed steps for springboot docker jenkins to automatically deploy and upload images
  • How to build docker+jenkins+node.js automated deployment environment from scratch
  • How to use selenium+testng to realize web automation in docker
  • .Net Core automated deployment: How to deploy dotnetcore applications using docker version of Jenkins
  • Implementation of Centos7+Docker+Jenkins+ASP.NET Core 2.0 automated release and deployment
  • Tutorial on Automating Ruby on Rails Deployment in Docker

<<:  MySQL data operation-use of DML statements

>>:  Vue implements calling PC camera to take photos in real time

Recommend

Detailed explanation of anonymous slots and named slots in Vue

Table of contents 1. Anonymous slots 2. Named slo...

MySQL concurrency control principle knowledge points

Mysql is a mainstream open source relational data...

How to process blob data in MySQL

The specific code is as follows: package epoint.m...

How to use custom tags in html

Custom tags can be used freely in XML files and HT...

Basic tutorial on using explain statement in MySQL

Table of contents 1. Overview 1. Explain statemen...

mysql5.7.20 installation and configuration method graphic tutorial (mac)

MySQL 5.7.20 installation and configuration metho...

Detailed explanation of :key in VUE v-for

When key is not added to the v-for tag. <!DOCT...

HTML page native VIDEO tag hides the download button function

When writing a web project, I encountered an intr...

In-depth understanding of the use of Vue

Table of contents Understand the core concept of ...

Example tutorial on using the sum function in MySQL

Introduction Today I will share the use of the su...

Solution to elementui's el-popover style modification not taking effect

When using element-ui, there is a commonly used c...

The reason why MySQL uses B+ tree as its underlying data structure

We all know that the underlying data structure of...

Detailed explanation of four solutions to floating problems in CSS layout

1. Cause: The effect after the subbox is set to f...

Detailed explanation of using Baidu style in eslint in React project

1. Install Baidu Eslint Rule plugin npm i -D esli...