Skip to content

Latest commit

 

History

History
63 lines (40 loc) · 1.84 KB

wecube-plugins-saltstack_compile_guide_en.md

File metadata and controls

63 lines (40 loc) · 1.84 KB

Salt-Stack Plugin Compile and Package Guide

Before Compiling

  1. 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.

  2. Ubuntu 16.04+ or CentOS 7.3+;

  3. Git installed

    • Use yum to install
    yum install -y git
  4. Installed Docker 1.17.03.x+

  5. Please use netstat or ss command to confirm the host ports 8082, 9090, 4505, 4506 are not occupied.

Compiling and packaging

  1. 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:

    saltstack_dir\

  2. Compile and package the plugin

    • Get plugin binary package.
    make build

    saltstack_build

    • Generate a docker image.
    make image

    saltstack_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.

    saltstack_zip