Skip to content

Latest commit

 

History

History
69 lines (62 loc) · 3.56 KB

BUILD.MD

File metadata and controls

69 lines (62 loc) · 3.56 KB

Below are steps to build Cosbench from source code using Eclipse SDK:

Download Source Code

  • Download Cosbench source code either from github repo or from releases:
    • To download it from github repo.
      git clone https://github.com/intel-cloud/cosbench.git
      git checkout -b v0.4.2
      git checkout remotes/origin/0.4.2.0
      git branch -vv
      
    • To download it from releases
      wget https://github.com/intel-cloud/cosbench/archive/v0.4.2.tar.gz
      tar -xvzf v0.4.2.tar.gz
      

Download Eclipse SDK

  • Download Eclipse SDK from here

Import Cosbench source code into Eclipse SDK

  • Open Eclipse SDK
    • Select "File -> Import -> General -> Existeing Projects into Workspace"
    • Select the "dev" folder in cosbench as a root directory and click "Finish" button.
    • Eclipse imports all projects in workspace. After the code is imported, there will be error signs on multiple projects.

Resolving error signs on projects

Compile and build the source code

  • Select all projects and right click and select "Export -> Plug-in Development -> Deployable plugins and fragments"
  • Set the "Directory" to "dist\osgi" folder. Then the plugins library will be placed at "dist\osgi\plugins" folder.
  • Run pack.sh <version number> from cosbench directory.

Minor Fix when you run Cosbench on CentOS/Rhel System

  • If you are using centos/Rhel please edit "cosbench-start.sh" file
cd CosbenchHOME$/<version number>
vim cosbench-start.sh
  • Edit the TOOL_PARAMS parameter
TOOL_PARAMS=""