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

Solution to MySQL service 1067 error: modify the mysql executable file path

Today I encountered the MySQL service 1067 error ...

Examples of using the ES6 spread operator

Table of contents What are spread and rest operat...

Sample code for implementing two-way authentication with Nginx+SSL

First create a directory cd /etc/nginx mkdir ssl ...

HTML dynamically loads css styles and js scripts example

1. Dynamically loading scripts As the demand for ...

Node.js sends emails based on STMP protocol and EWS protocol

Table of contents 1 Node.js method of sending ema...

Detailed steps to upgrade mysql8.0.11 to mysql8.0.17 under win2008

Upgrade background: In order to solve the vulnera...

Summary of MySQL basic common commands

Table of contents MySQL basic common commands 1. ...

Detailed explanation of HTML tables

Function: data display, table application scenari...

Detailed explanation of three ways to wrap text in el-table header

Table of contents Problem Description Rendering T...

404 error occurs when accessing the homepage of tomcat started in Docker mode

Scenario: When starting tomcat in docker (version...

Example code for hiding element scrollbars using CSS

How can I hide the scrollbars while still being a...

Install JDK8 in rpm mode on CentOS7

After CentOS 7 is successfully installed, OpenJDK...