Jenkins to bring html code online and rollback
1. Case EnvironmentII. Deployment of Gitlab1) Deploy Gitlab2) Configure Secret-Free Login3) Test Secret Login3. Deployment of Jenkins4. Jenkins Integrated GitlabV. Deployment of Nginx6. Jenkins Implement Code Automatically Online7. Jenkins implements automatic code deployment, fallback and duplicate construction
1. Case Environment
system
...
Posted by david-remone123 on Tue, 25 Feb 2020 08:29:14 -0800
Jenkins+Ansible installation and deployment
1, Environmental description
Operating system: CentOS 7.5 x86 ʄ
JAVA version: jdk-8u181
Jenkins version: jenkins-2.134
Ansible version: ansible-2.3.3.0
2, Preparation before configuration
# systemctl disable firewalld.service
# systemctl stop firewalld.service
# sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/ ...
Posted by gnawz on Fri, 31 Jan 2020 09:37:23 -0800
Git branch version management
Git branch version management
the mainstream code management tool is basically GIT. Although svn is also used by some people, it is not so much. Git is still accepted by most people. The c ...
Posted by cwetherbee on Sun, 19 Jan 2020 02:48:59 -0800
Jenkins installation of Linux system
1, background
Why Jenkins?
It's more convenient than writing your own scripts. You don't need to care about the corners. You just need to add core compiled scripts to save developers' attention and energy
You can let the test or project manager who does not understand the relevant development gen ...
Posted by aalmos on Tue, 14 Jan 2020 02:34:50 -0800
K8s deploys services using Jenkins
1. Install Jenkins
#Preparing the Java environment
tar xvf jdk-8u231-linux-x64.tar.gz -C /usr/local/
cd /usr/local/
ln -s jdk1.8.0_231 java
cat /etc/profile.d/java
export JAVA_HOME=/usr/local/java
export PATH=$PATH:$JAVA_HOME/bin
source /etc/profile.d/java
java -version
yum -y install wget
wget -O /etc/yum.repos.d/jenkins.repo http:// ...
Posted by wiseoleweazel on Thu, 09 Jan 2020 11:03:58 -0800
Getting started with docker installation and basic use of RHEL 7
RHEL 7 installation using docker
I. Introduction
Docker is an open source application container engine, which allows developers to package their applications and dependency packages into a portable container, and then publish them to any popular Linux machine, or realize virtualization. Containers are completely sandboxed and ...
Posted by Mohit_Prog on Mon, 23 Dec 2019 12:40:24 -0800
Docker+Jenkins build a multi version php environment
In recent days, we have just set up a small project server, which uses the combination of docker + (jenkins, nginx, PHP FPM, mysql, redis). Let's summarize today.
Docker has been out for a long time. Even the k8s high-end gadget is very "popular". To be honest, this is the first time I use docker in a production environment.
Using d ...
Posted by satyricon on Mon, 16 Dec 2019 23:01:24 -0800
Dynamically defining variables (process control statements) in jenkins pipeline
Scenario: define different code warehouse addresses and branches based on job names
Solution: use script to include the whole code download process
The conventional way of writing is as follows:
pipeline
{
agent { label 'test' }
stages
{
stage('DownloadCode')
{
steps
{
...
Posted by developer on Mon, 16 Dec 2019 12:01:52 -0800
002-docker Network Setup and Data Management
Docker Network Settings
Docker creates a bridged network card [docker 0]. docker has two mappings, one is random mapping and the other is specified mapping
Production scenarios generally do not use random mapping
The advantage of random mapping is that ports are allocated by docker and do not conflict
Install nginx specified port
docker pull ...
Posted by MickeyAsh on Sun, 08 Dec 2019 18:26:50 -0800
Online Process Recording for Network Deployment
Online Process Recording for Network Deployment
Take the example of recommending similar items: reco-similar-product
Project Directory
Dockerfile
Jenkinsfile
README.md
config
deploy.sh
deployment.yaml
index
offline
recsys
requirements.txt
service
stat
You can see that there are many files in the directory. Here is a brief description of the rol ...
Posted by tomasd on Sat, 07 Dec 2019 13:38:56 -0800