134 Star 804 Fork 321

GVPWeBank / wecube-platform

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
wecube_compile_guide_en.md 2.89 KB
一键复制 编辑 原始数据 按行查看 历史
HoweChen 提交于 2019-10-26 14:07 . #454 Update installation guide

WeCube Compile Guide

Before compilation

  1. One Linux host with the Internet connection, hardware recommendation is 4 cores CPU, 8GB RAM or more for faster compiling speed.

  2. Ubuntu 16.04+ or Centos 7.3+.

  3. Install Git

    • yum install
    yum install -y git
  4. Install docker 1.17.03.x or higher:

Compiling and Packaging

  1. Clone source code from github

    Switch to the local repository directory and execute the command as following

    cd /data	
    git clone https://github.com/WeBankPartners/wecube-platform.git

    Enter the github account username and password as prompted, and you can pull the source code to the local.

    After that, enter the wecube-platform directory and the structure is as follows:

    wecube-platform_dir

  2. Compilation

    The maven configuration file is in the maven_setting.xml file in the build directory. The default configuration is as follows:

    wecube-platform_maven_settings

    During the compilation process, the maven package and the npm package will be pulled from the external network. If there is a faster maven source, the configuration in the file can be modified.

    Execute the following command in the root of the code:

    make build

    Waiting for compilation to complete,as follows:

    wecube-platform_make_build

  3. Build image

    After compilation is complete,Execute the following command in the root of the code:

    make image

    as follows:

    wecube-platform_make_image

    Start to make WeCube's runtime image.

    If you still need WeCube's database image,execute the command as following:

    cd build/db
    chmod +x build-image.sh
    ./build-image.sh

    After all images is made, execute the command as following:

    docker images

    Will show you the image list as follows:

    wecube-platform_images

  4. Save the image

    If you want to save the image to linux local directory, execute the command as following:

    docker save -o wecube-platform.tar wecube-platform
    docker save -o wecube-db.tar wecube-db

    In the current local directory, you can see the saved files, send the image file to the deployment machine, and start deploying.

    The image can also be uploaded to the remote mirror repository and pulled from the remote mirror repository during deployment.

Java
1
https://gitee.com/WeBank/wecube-platform.git
git@gitee.com:WeBank/wecube-platform.git
WeBank
wecube-platform
wecube-platform
master

搜索帮助