当前位置:网站首页>[cloud native] teach you how to build ferry open source work order system
[cloud native] teach you how to build ferry open source work order system
2022-07-06 08:04:00 【Xiaopeng Linux】
Author's brief introduction : The third season of the New Star program for high-quality creators in cloud computing python Track TOP1 Alibaba cloud ACE Certified Senior Engineer
️ Personal home page : Xiao peng linux
Personal community : Xiao peng linux( Personal community ) Welcome to join !
Catalog
1.1 Close the firewall and selinux
2.2 Uninstall old version docker
2.3 Install dependency packages
3.docker Deployment in China mysql
4.docker Deployment in China redis
4.2 Check whether the container starts normally
5.2 install git Command and pull ferry Code
5.3 modify ferry The configuration file
6.1 establish ferry Container and start
7. Log in to the work order system page
Open source software ferry It's centralized work order statistics 、 Task hook 、 Rights management 、 Open source work order system with flexible configuration process and template , Of course, it can also be called workflow engine . Committed to reducing cross departmental communication , Automatic task execution , Improve work efficiency and work quality , Reduce unnecessary workload and human error rate .
System function introduction
Work order system related functions :
Work order submission application
Work order statistics
Multi dimension work order list , Include ( I created 、 I am related to 、 I have to do 、 All work orders )
Custom process
Custom templates
Task hook
task management
Urging
Hand over
Manual statement
The signature of the
Multidimensional processors , Include ( personal , Variable ( The creator 、 The person in charge of the Creator ))
Exclusive gateway , That is, jump the work order according to the conditions
Parallel gateway , That is, multiple nodes are approved at the same time
Notice to remind ( Currently only email is supported )
Process classification management
Authority management related functions , Use casbin Implement interface permission control :
user 、 role 、 Add, delete, check and change positions , Batch deletion , Multi criteria search
role 、 Position data export Excel
Reset user password
Maintain personal information , Upload management avatar , Change the current account password
Addition, deletion, check and modification of departments
Menu catalog 、 Jump 、 Button and API Add, delete, check and modify interfaces
Login log management
Left menu permission control
Page button permission control
API Interface authority control
This deployment environment is CentOS7 operating system
1. install docker
1.1 Close the firewall and selinux
[[email protected] ~]# setenforce 0 # close selinux
[[email protected] ~]# systemctl stop firewalld # Turn off firewall
[[email protected] ~]# systemctl enable firewalld # Set the startup not to start automatically
2. install docker
2.1 to update yum Indexes
[[email protected] ~]# yum makecache fast
2.2 Uninstall old version docker
[[email protected] ~]# yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
2.3 Install dependency packages
[[email protected] ~]# yum install -y yum-utils device-mapper-persistent-data lvm2
2.4 Set alicloud image source
[[email protected] ~]# yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
[[email protected] ~]# ls /etc/yum.repos.d/ # View yes docker-ce.repo Generate
bak CentOS-7.repo docker-ce.repo epel.repo
2.5 install docker
[[email protected] ~]# yum install -y docker-ce # install
[[email protected] ~]# systemctl start docker # start-up docker
[[email protected] ~]# systemctl disable docker # Set to power on and auto start
[[email protected] ~]# docker version # see docker edition
3.docker Deployment in China mysql
3.1 Installing the mysql
[[email protected] ~]# docker run -d -p3306:3306 --name=mysql5 -e MYSQL_ROOT_PASSWORD=111111 mysql:5 # Password set to 111111
Here's the picture , Download the image and finish the container startup , Wait for :
3.2 Get into mysql example
[[email protected] ~]# docker exec -it mysql5 bash # Get into mysql Containers
[email protected]:/# mysql -uroot -h127.0.0.1 -p111111 # Sign in mysql
mysql> create database ferry; # Create database ferry
mysql> exit # sign out mysql
[email protected]:/# exit # Exit the container
4.docker Deployment in China redis
4.1 Installing the mysql
[[email protected] ~]# docker run --name=redis6.0 -d -p 6379:6379 redis:6.0
Here's the picture , Download the image and finish the container startup , Wait for :
4.2 Check whether the container starts normally
[[email protected] ~]# docker ps -a #STATUS Columns show UP The status is that the container starts normally , Here's the picture :
5. Deployment launch ferry
5.1 Get local ip
[[email protected] ~]# ip a
5.2 install git Command and pull ferry Code
[[email protected] ~]# yum -y install git
[[email protected] ~]# git clone https://github.com/lanyulei/ferry.git # The pull code is successful, as shown in the following figure :
5.3 modify ferry The configuration file
[[email protected] ~]# cd ferry/
[[email protected] ferry]# vim config/settings.yml
Find the following configuration :
database:
dbtype: mysql
host: ferry_mysql
name: ferry
password: 123456
port: 3306
username: root
Make the following changes :
mysql To configure ( change host And password for your own ):
host: ferry_mysql -> host: 192.168.0.3
password: 123456 -> password: 111111
Find the following configuration :
redis:
url: redis://ferry_redis:6379
Make the following changes :
redis To configure ( change host For your own ):
url: redis://ferry_redis:6379 -> url: redis://192.168.0.3:6379
5.4 establish needinit file
[[email protected] ferry]# touch config/needinit
Be careful : stay config New directory needinit file , At first start-up db No data in , At this time, the data can be initialized through this command , Delete the file after the service starts normally ( In case the container starts again )
6. start-up ferry
6.1 establish ferry Container and start
[[email protected] ferry]# docker run -itd --name ferry -v /root/ferry/config:/opt/workflow/ferry/config -p 8002:8002 lanyulei/ferry:1.0.1
# Command interpretation
# docker run -it -v Host Directory absolute path : Absolute path of container Directory Mirror image ID or NAME /bin/bash
# -it Interactive run container
# -d Run the container in the background , And print containers id
# --name ferry The name of the container is ferry
# -v mount volume Data volume
# Host Directory absolute path In the host config The path of the configuration file directory . After mounting, the container can mount the configuration file of the current directory to the specified directory in the container to call
# -p 8002:8002 Port mapping , Be careful :p Lowercase is to map the port of the container to the designated port of the host , Upper case is to map the port of the container to the random port of the host
If it fails, you can download the configuration file template packaged after my successful installation and modify it directly , Profile templates
Here's the picture , Download the image and finish the container startup , Wait for :
6.2 View container status
[[email protected] ferry]# docker ps -a
# mysql、redis、ferry The status of all three containers is UP Right , Here's the picture :
7. Log in to the work order system page
Browser access ip:8002 that will do , Here's the picture :
Enter account :admin
Input password :123456
Log in , Pictured :
Conclusion
边栏推荐
- [research materials] 2022 enterprise wechat Ecosystem Research Report - Download attached
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- 22. Empty the table
- Circuit breaker: use of hystrix
- 指针和数组笔试题解析
- How to prevent Association in cross-border e-commerce multi account operations?
- ESP系列引脚說明圖匯總
- 2.10transfrom attribute
- 珠海金山面试复盘
- Common functions for PHP to process strings
猜你喜欢
National economic information center "APEC industry +": economic data released at the night of the Spring Festival | observation of stable strategy industry fund
NFT smart contract release, blind box, public offering technology practice -- jigsaw puzzle
Machine learning - decision tree
你想知道的ArrayList知识都在这
Convolution, pooling, activation function, initialization, normalization, regularization, learning rate - Summary of deep learning foundation
[t31zl intelligent video application processor data]
[factorial inverse], [linear inverse], [combinatorial counting] Niu Mei's mathematical problems
[research materials] 2021 live broadcast annual data report of e-commerce - Download attached
面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
随机推荐
Database basic commands
Esrally domestic installation and use pit avoidance Guide - the latest in the whole network
Flash return file download
C语言 - 位段
你想知道的ArrayList知识都在这
Data governance: misunderstanding sorting
使用 TiUP 升级 TiDB
Upgrade tidb operator
Solution: intelligent site intelligent inspection scheme video monitoring system
Data governance: Data Governance under microservice architecture
Binary tree creation & traversal
Nft智能合约发行,盲盒,公开发售技术实战--合约篇
"Designer universe": "benefit dimension" APEC public welfare + 2022 the latest slogan and the new platform will be launched soon | Asia Pacific Financial Media
Personalized online cloud database hybrid optimization system | SIGMOD 2022 selected papers interpretation
Yu Xia looks at win system kernel -- message mechanism
(lightoj - 1410) consistent verbs (thinking)
Migrate data from CSV files to tidb
How to estimate the number of threads
珠海金山面试复盘
从 TiDB 集群迁移数据至另一 TiDB 集群