git -- Use Jenkins to build Docker images and upload them automatically to private warehouses

Install docker plug-ins on jenkins Install docker locally and add warehouse images Add permissions to docker.sock Add docker plug-ins to previous tasks on jenkins Upload the image to be built Writing dockerfile on git side [root@server1 demo]# ls Dockerfile index.html README.md [root@server1 de ...

Posted on Mon, 30 Sep 2019 13:50:44 -0700 by tmallen

Python 2.7 uses plotly to draw examples of local scatter plots and polygons

In learning how to use Python and plotly to process data, after two hours of hard trial and error, I finally completed the examples of scatter plot and polyline plot. In the process of using, I encountered a big pit, because the official case is stored online, so it needs to install jupyter (i.e. ipython) to use notebook to process the generate ...

Posted on Mon, 30 Sep 2019 13:35:37 -0700 by xepherys

Using os module to write a program that can realize dir-l output

Commands ls and dir under Linux have the same function: print the current folder directory. Note: LS is the original command of Linux, dir is the original command of dos. Linux chooses to be compatible with this DOS command, so dir and ls are functionally the same. 1. ls command Common ls commands are ...

Posted on Mon, 30 Sep 2019 13:12:22 -0700 by rubberjohn

LVM Dynamic Expansion of CentOS 7

The question of "Qi" The disk space on CentOS 7 is a little tight and needs to be expanded. Solve Query the current disk status [root@xxx ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT fd0 2:0 1 4K 0 disk sda 8:0 0 200G 0 disk ├─sda1 8:1 0 500M 0 part /boot └─sda ...

Posted on Mon, 30 Sep 2019 12:42:14 -0700 by toppac

Source compilation kubernetes

1. Version requirements Deploy go wget https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz go version go version go1.12.4 linux/amd64 Deploy kubernetes wget https://github.com/kubernetes/kubernetes/archive/v1.15.2.tar.gz Edition: 1.15.2 2. Source Code Compilation Direct compilation can also be divided into two types, one compiled at a ti ...

Posted on Sun, 29 Sep 2019 21:25:54 -0700 by easethan

Record a K3s MySQL Start OOM Query

Previously, Docker Compose was used as the development environment, and MySQL was also running in Docker, and everything worked fine.The development environment was later migrated to K3s (lightweight K8s), but MySQL was killed by OOM Killer as soon as it started, so MySQL was never migrated. Reproduce Run a MySQL directly using Kubectl to repro ...

Posted on Sun, 29 Sep 2019 09:02:23 -0700 by Ace_Online

Efficient, easy to use and powerful api management platform

The need of the actual environment can be said to be: only you did not expect, there is no impossible to achieve. For the actual development, testing, production and other environments, there are dozens or even hundreds of interfaces that need to be used. Therefore, a unified management tool platform must be needed to unify the management of su ...

Posted on Thu, 26 Sep 2019 00:18:17 -0700 by marksie1988

Rsync Service Deployment and Detailed Parameters

Rsync introduction Rsync is an open source, fast, multi-functional, full and incremental local or remote data synchronous backup tool. Rsync software is suitable for unix/linux/windows and other operating system platforms. Traditional scp and cp tool copies are complete every time, while Rsync has incremental copy function besides complete co ...

Posted on Wed, 25 Sep 2019 22:43:13 -0700 by shmoo525

Internal and external command assistance

View internal and external command help I. Internal Order _Use type to determine whether the command is internal or external, and type is followed by the command to be viewed. Example: type enable [10:52:18 root@centos ~]#type enable enable is a shell builtin Some commands have both internal and external commands, but the system will give pri ...

Posted on Mon, 23 Sep 2019 23:48:14 -0700 by prasad_deba

Principle of Mangrove and Black Tree

Red Black Tree is a self-balanced binary search tree, which is a data structure used in computer science. Its typical use is to implement associative arrays. Nature Nodes are red or black. The root node is black. Each leaf node (NIL) is black. (Note: Leaf nodes here refer to empty (NIL or NULL) leaf nodes! ) The two children of each red node a ...

Posted on Mon, 23 Sep 2019 20:14:39 -0700 by demouser