The invention relates to a
DevOps-oriented containerized test environment deployment
system and method, and belongs to the technical field of Internet. A multi-service test environment is defined through a
YAML file, environment variables are managed in combination with an. Env configuration file, dependency is optimized through dependency layering and a cache
library, a container
mirror image is constructed, and a container cluster is started; managing multiple tasks through a centralized scheduling architecture, and realizing
resource isolation of a container cluster by using Cgroup; adjusting the number of container instances in real
time based on a capacity expansion and contraction mechanism; a bridging network is used for automatically distributing a container IP, a built-in
domain name system analyzes a service name dynamic discovery service, and rapid reconstruction of a containerized test environment is achieved. According to the method, a
YAML and
environment variable separation mechanism is adopted, real-time loading of development, testing and production environment configuration is supported, the
deployment time is shortened to the second level, the
resource utilization rate is increased to 90% from 60%, the multi-service communication difference is eliminated, and efficient
interconnection between containers is ensured.