Search…
Building from source
Instructions for building Konduit-Serving binaries from source

Pre-requisites

  • JDK 1.8+
  • Maven 3+
  • Git

Cloning the repository

Konduit Serving sources are hosted on GitHub. If you have git installed, clone the konduit-serving repository using the git clone command:
1
git clone https://github.com/KonduitAI/konduit-serving.git
Copied!

Using the Build Script

After cloning the repository, run ./build.sh --help to see the available options:
1
$ ./build.sh --help
2
-------------------------------------------------------------------
3
A command line utility for building konduit-serving distro packages.
4
5
Usage: bash build.sh [CPU|GPU] [linux|windows|macosx] [tar|zip|exe|rpm|deb]
6
Example: bash build.sh GPU linux tar,deb
7
-------------------------------------------------------------------
Copied!
You can create CPU/GPU builds for available platforms by executing their respective commands.

Example

An example of creating Ubuntu (deb) build is as follows:
1
$ ./build.sh CPU linux deb
2
-------------------------------------------------------------------
3
Building project version: 0.1.0-SNAPSHOT
4
Building a konduit-serving distributable JAR file...
5
Selecting CHIP=CPU
6
Building CPU version of konduit-serving for linux with distro types: (deb) ...
7
Running command: mvn clean install -Dmaven.test.skip=true -Denforcer.skip=true -Djavacpp.platform=linux-x86_64 -Ppython,uberjar,tar,deb -Ddevice=CPU
8
[INFO] Scanning for projects...
9
.
10
.
11
.
12
.
13
.
14
[INFO] ------------------------------------------------------------------------
15
[INFO] BUILD SUCCESS
16
[INFO] ------------------------------------------------------------------------
17
[INFO] Total time: 08:10 min
18
[INFO] Finished at: 2021-01-08T13:40:01+05:00
19
[INFO] ------------------------------------------------------------------------
20
----------------------------------------
21
DEB distro is available at:
22
konduit-serving-deb/target/konduit-serving-custom-CPU_0.1.0-SNAPSHOT.deb
23
-------------------------------------------------------------------
Copied!