Method for realizing cross compiling of Docker mirror image

A cross-compilation and mirroring technology, applied in the field of computer programs, can solve problems such as cross-platform cross-compilation that cannot be solved

Active Publication Date: 2020-06-19
广西梯度科技股份有限公司
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, because the Docker image is only the packaging of the application operating environment, it has requirements for the CPU architecture and kernel version of the running host machine. For example, the Docker image running on the AMD64 CPU architecture machine cannot be directly run on the ARM64 CPU architecture. on the machine
Therefore, when starting the application compilation environment, the differences in the underlying hardware facilities cannot be co

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for realizing cross compiling of Docker mirror image

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0025] see figure 1 , the embodiment of the present invention provides a technical solution: a method for realizing Docker image cross-compilation, first to realize the effect of Docker image cross-compilation, it is necessary to prepare the Linux operating system of the test environment and install the Docker service in advance, specifically including the following step:

[0026]S1. Install the qemu-user-static service program on the Docker image cross-compi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for realizing cross compiling of a Docker mirror image. The method specifically comprises the following steps: S1, installing a qemu-user-static service program on a Docker mirror image cross compiling environment system, s2, checking whether a binfmt _ misc in the Linux system registers a corresponding simulator configuration or not; s3, determining the CPU architecture type of the Docker mirror image needing cross compiling, s4, a Docker file for constructing a Docker mirror image is compiled; docker mirror images of different target CPU frameworks are constructed by using the same Docker file, and the Docker mirror images of different target CPU frameworks are constructed by using the same Docker file. And S5, determining whether the generated Docker mirror image is the mirror image of the target CPU architecture or not by checking the identifier in the generated Docker mirror image. The invention relates to the technical field of computer programs.According to the method for realizing Docker mirror image cross compilation, when the application compilation environment is started, the difference of underlying hardware facilities can be completelyshielded, and the problem of cross-platform cross compilation is solved, so that the problem caused by the difference of underlying hardware can also be shielded while the application cross compilation environment is rapidly started.

Description

technical field [0001] The invention relates to the technical field of computer programs, in particular to a method for realizing cross-compilation of Docker images. Background technique [0002] Docker is currently the most popular Linux container solution, providing an easy-to-use container interface. Docker packages the application program and the program's dependent files into an image file. By running this packaged image file, a virtual container will be generated. The application runs in this virtual container, just like running on a real server. Packaging the runtime environment of the application in this way helps Realize the convenience of application deployment, the flexibility of application test environment construction, and the quickness of cross-platform migration. After the application is packaged into a container image, it can run in any environment, including: physical server, virtual machine, public cloud, private cloud, etc. Due to the characteristics o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/455G06F8/41
CPCG06F9/45558G06F8/41G06F2009/45562Y02D10/00
Inventor 王伟华梅进
Owner 广西梯度科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products