One Linux host with the Internet connection, hardware recommendation is 4 cores CPU, 8GB RAM or more for faster compiling speed.
Ubuntu 16.04+ or Centos 7.3+.
Install Git
yum install -y git
Install docker 1.17.03.x or higher:
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:
Compilation
The maven configuration file is in the maven_setting.xml file in the build directory. The default configuration is as follows:
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:
Build image
After compilation is complete,Execute the following command in the root of the code:
make image
as follows:
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:
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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。