-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
When deploying a new cluster, the required artifacts can be obtained either by downloading them or by building them yourself.
The latest artifacts can be downloaded from the releases page.
-
Extract the downloaded artifacts or build them yourself
-
Create / update the configuration files
edit <path to extracted application artifact>\conf\application.conf
edit <path to extracted application artifact>\conf\logback.xml
- Run
<path to extracted application artifact>\bin\vili_start.bat
- Stop
<path to extracted application artifact>\bin\vili_stop.bat
- Create / update the configuration files
vi <path to conf>\application.conf
vi <path to conf>\logback.xml
- Run
java -cp <path to conf>;<path to jar> ve.Main
Building
vili
is a complicated and error-prone process; unless there's a good reason not to, it's best to download the pre-build artifact.
Currently, a
vili
fat jar cannot be built due to issues with including and using DLL files.
-
Prepare your environment
- Install Java 8 JDK
- Install Microsoft .NET Framework (4 or above)
- Set the
JAVA_HOME
system variable - Add
%JAVA_HOME%\bin
and the path to the .NET framework dir to your system'sPath
variable - Verify that you can run the
csc.exe
,MSBuild.exe
andjava.exe
- Download and extract the latest
jni4net
release (tested with 0.8.8.0) - Install
sbt
- Clone or download
noisecluster
- Download all
noisecluster-win
packages or usenuget restore
-
Build
noisecluster-win
cd <path to repos>\noisecluster\noisecluster-win\noisecluster
MSBuild.exe .\noisecluster.csproj /p:Configuration=Release
- Generate proxies
<path to jni4net>\bin\proxygen.exe <path to repos>\noisecluster\noisecluster-win\noisecluster\bin\Release\noisecluster.dll -wd <path to jni4net target dir>
- Edit
jni4net
build script
Edit the script generated in the previous step <path to jni4net target dir>\build.cmd
and replace the last build step with the following:
echo noisecluster.j4n.dll
SET buildDir=<path to repos>\noisecluster\noisecluster-win\noisecluster\bin\Release
csc /nologo /warn:0 /t:library /out:noisecluster.j4n.dll /recurse:clr\*.cs /reference:"%buildDir%\noisecluster.dll" /reference:"<path to jni4net>\lib\jni4net.n-0.8.8.0.dll" /reference:"%buildDir%\Adaptive.Aeron.dll" /reference:"%buildDir%\Adaptive.Agrona.dll" /reference:"%buildDir%\CSCore.dll" /reference:"%buildDir%\log4net.dll" /reference:"%buildDir%\nunit.framework.dll"
IF %ERRORLEVEL% NEQ 0 goto end
-
Run
<path to jni4net target dir>\build.cmd
-
Copy generated artifacts to
<path to repos>\noisecluster\vili\lib
Artifact | Location |
---|---|
CSCore.dll | <path to repos>\noisecluster\noisecluster-win\noisecluster\bin\Release |
jni4net.j-0.8.8.0.jar | <path to jni4net>/lib |
jni4net.n.w64.v40-0.8.8.0.dll | <path to jni4net>/lib |
jni4net.n-0.8.8.0.dll | <path to jni4net>/lib |
log4net.dll | <path to repos>\noisecluster\noisecluster-win\noisecluster\bin\Release |
noisecluster.dll | <path to repos>\noisecluster\noisecluster-win\noisecluster\bin\Release |
noisecluster.j4n.dll | <path to jni4net target dir> |
noisecluster.j4n.jar | <path to jni4net target dir> |
Adaptive.Aeron.dll (optional) | <path to repos>\noisecluster\noisecluster-win\noisecluster\bin\Release |
Adaptive.Agrona.dll (optional) | <path to repos>\noisecluster\noisecluster-win\noisecluster\bin\Release |
- Create application artifact
sbt dist
- Extract the application artifact
It can be found in
<path to repos>\noisecluster\vili\target\universal
- Edit the
<path to extracted application artifact>\bin\vili.bat
executable
Replace the definitions of the APP_CLASSPATH
variable with the following:
set "APP_CLASSPATH=%APP_LIB_DIR%\..\conf\;%APP_LIB_DIR%\*"
OR
- Get the start/stop scripts
From here
Since ve
has no unmanaged dependencies, a fat jar can be built directly:
sbt assembly