Optimization of Docker image
Thinking: what do you want to optimize the image?
The means of image optimization
l) select the thinnest basic image -- > core
2) reduce the number of layers of image
3) clean up the intermediate products of image construction -- > useless
4) pay attention to optimizing network requests
5 ...
Posted by mikegzarejoyce on Tue, 29 Oct 2019 14:00:03 -0700
Spring boot uses Redis cache
1 redis is installed on linux
Install docker
yum install docker
2) open docker
service docker start
2. Install Redis
Go to this website to find out how to install https://hub.docker.com
Open redis
3 create a springBoot project (details are not covered in detail)
pom.xml file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns= ...
Posted by kubis on Mon, 28 Oct 2019 09:59:04 -0700
[Kubernetes series] Part 8 full process practice of CI/CD
Preface
The sample code and Jenkins agent image already in this practice have been pushed and archived to github. > transmission gate
Note that the data in this practice are all intranet data. You must change it to the valid data of your own environment when testing.
Because this practice involves many components, if there is unclear opera ...
Posted by ali_p on Sun, 27 Oct 2019 22:07:12 -0700
Using docker to build php+nginx+mysql development environment on Mac
I. preparationAdvantages of Docker to build environment:
Simple operation, rapid construction and environmental isolation
Common Docker operation commands and parameters:
docker search # Find image from Docker Hub
docker images # View local mirror list
docker pull # Pull or update the specified image from the image warehous ...
Posted by cmburns69 on Sat, 26 Oct 2019 11:48:56 -0700
Super simple kubernetes high availability cluster installation
Precondition
System requirements: 64 bit CentOS 7.6
Turn off firewall and selinux
Turn off the operating system swap partition (it is not recommended to turn it on using k8s)
Please pre configure the hostname of each node to ensure no duplicate.
Please configure the first master to be able to log in all nodes (including itself) keyless
Envir ...
Posted by gotDNS on Sat, 26 Oct 2019 09:00:26 -0700
centos7 installs Docker and changes Alibaba source to download to solve the slow downloading problem of Docker image
I. installing Docker
Update yum package to the latest.[root@localhost ~]# yum update
Install the required software package. Yum util provides the function of Yum config manager. The other two are dependent on the device mapper driver. yum install -y yum-utils device-mapper-persistent-data lvm2
Se ...
Posted by andrew6607 on Sat, 26 Oct 2019 07:05:27 -0700
Deploying Prometheus service based on docker container -- a powerful tool for cloud platform monitoring
Blog Outline:
I. deploy weave scope
II. Start configuration
1. Run Node Server container
2. Run the C advisor container
3. Run Prometheus server container on docker01
4. Run the grafana container on docker01
5. Set Prometheus alarm
Prometheus is a system and service monitoring system. It collects metrics from configured targets at a giv ...
Posted by clairian on Fri, 25 Oct 2019 12:43:18 -0700
fabric 1.4 environmental construction and pit summary
Summary of fabric 1.4 environment construction
1. Install dependent tools
1.1 install Git
sudo apt update
sudo apt install git
1.2 install Curl
sudo apt install curl
1.3 installing docker
//To check whether Docker has been installed on the system:
docker --version
//Not installed. Use the fo ...
Posted by PhpDog on Fri, 25 Oct 2019 01:35:21 -0700
3. Docker learning, theoretical knowledge, the third day -- DockerFile
Docker learning
I. DockerFile analysis
1. What is DockerFile
DockerFile is a build file used to build Docker image. It is a script composed of a series of commands and parameters.
Three steps to build:
1. Manually write a DockerFile file
2. docker build to obtain a customized image
3,docker run
2. Analysis of the construction process of Doc ...
Posted by hchsk on Thu, 24 Oct 2019 02:31:41 -0700
Docker installs ELK and implements JSON format log analysis
What is ELK?
ELK is a complete set of log collection and front-end display solution provided by elastic company. It is the acronym of three products, namely ElasticSearch, Logstash and Kibana.
Among them, Logstash is responsible for processing logs, such as filtering logs, formatting logs, etc.; ElasticSearch has a strong text search ability, s ...
Posted by why not on Wed, 23 Oct 2019 23:35:06 -0700