Automatically deploy the code above git to the server

1. Configure gitlab runner on the computer Reference document https://docs.gitlab.com/runner/install/osx.html Installation: sudo curl --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64 add permission sudo chmod +x ...

Posted by the_loser on Mon, 21 Oct 2019 07:41:24 -0700

Experience docker container health quickly

The purpose of this article is to experience the health check function of docker container. Experience is the main function, and development is not involved. The content related to development will be detailed in the following article. About container health check Consider this situation: in the docker environment, the container of spring boot ...

Posted by NFClimber on Sat, 19 Oct 2019 22:44:16 -0700

java web Series: factory pattern (code)

Theory of factory model: https://mp.csdn.net/postedit/96699960 Code to simulate the plant production process of plant vs. zombie Route 1. Create Plant interface Plant public interface Plant { public String getName(); public void fight(); } 2. Create basic plant features (weapons, hai ...

Posted by Scorptique on Sat, 19 Oct 2019 13:31:09 -0700

Shell Programming Regular Expressions

This article focuses on the use of regular expressions in shell scripts. Summary Regular expressions are divided into basic Regular Expression and Extended Regular Expression. It is not a tool program, but a standard basis for string processing. It uses a single string to search and match a series of strings that conform to a certain grammati ...

Posted by cfemocha on Mon, 14 Oct 2019 17:45:41 -0700

Awk of shell three swordsmen (including sort sorting and uniq tools)

awk of shell three swordsmen In Linux/UNIX system, awk is a powerful editing tool. It reads input text line by line, searches according to the specified matching mode, formats and outputs qualified content or filters it. It can realize quite complex text operation without interaction. It is widely used in Shell scripts to complete various aut ...

Posted by nick5449 on Sun, 13 Oct 2019 19:14:11 -0700

Shell Programming case Multi-Branch Statement, Loop Statement (for, while, etc.), Shell Function, Shell Array

case multi-branch statement The structure of case statement: Execute different command lines for different values of variables case variable value in Mode 1) Command Sequence 1 ;; Mode 2) Command Sequence 2 ;; ..... *) Default command sequence esac Example: Character type recognition: Prompt the user to enter a character ...

Posted by merrydown on Sun, 13 Oct 2019 18:14:14 -0700

Regular Expressions for Shell Programming

awk tools In Linux/UNIX system, awk is a powerful editing tool. It reads input text line by line, searches according to the specified matching mode, formats and outputs qualified content or filters it. It can realize quite complex text operation without interaction. It is widely used in Shell scripts to complete various automatic configuration ...

Posted by lostnucleus on Sat, 12 Oct 2019 16:13:07 -0700

Container Signal Use

Off-line installation packages for various versions of kubernetes Container Signal Use Our programs running in containers usually want to do some cleaning operations before the container exits. The more common way is to listen to a signal and delay closing the container. docker provides such functionality: ╰─➤ docker stop --help Usage: doc ...

Posted by jstinehelfer on Sat, 12 Oct 2019 14:41:40 -0700

Shell Programming-Expect Free of Interaction

Expect overview Expect is a tool based on tcl. Expect is a tool for automatic control and testing. It mainly solves the problem of non-interaction in shell script. It's helpful for large-scale Linux operations and maintenanceIn the development of Linux operations and peacekeeping, we often need remote login server to operate. The login proces ...

Posted by Redneckheaven on Thu, 10 Oct 2019 06:18:15 -0700

Three Swordsmen of Regular Expressions in Shell Programming-awk Tool

Overview of awk In Linux/UNIX system, awk is a powerful editing tool. It reads input text line by line, searches according to the specified matching mode, formats and outputs qualified content or filters it. It can realize quite complex text operation without interaction. It is widely used in Shell scripts to complete various automatic config ...

Posted by quecoder on Thu, 10 Oct 2019 02:14:45 -0700