-
Please prepare a linux host with the Internet connection. To speed up the compilation, we recommends the host with 4 cores CPU and 8GB RAM.
-
Ubuntu 16.04+ or CentOS 7.3+;
-
Git installed
- Use yum to install
yum install -y git
- Manual installation, please refer to git installation documentation
-
Installed Docker 1.17.03.x+
- Please refer to docker installation documentation
-
Please use
netstat
orss
command to confirm the host ports8082
,9090
,4505
,4506
are not occupied.
-
Clone the code through github
Switch to the local repository directory and execute the command:
cd /data git clone https://github.com/WeBankPartners/wecube-plugins-saltstack.git
Enter the Github account password as prompted, and you can pull the code to the local.
After that, enter the
wecube-plugins-saltstack
directory and the structure is as follows: -
Compile and package the plugin
- Get plugin binary package.
make build
- Generate a docker image.
make image
- Make the plugin package.
make package PLUGIN_VERSION=v1.0
The variable PLUGIN_VERSION is the number of the plugin package version. After the compilation is completed, a zip plugin package will be generated.