Skip to content

cloudsume/services

Repository files navigation

Cloudsumé Services

This is a collection of services for Cloudsumé to run untrusted code. Eventhough it is written in C# but there are some parts that are written in C++, which is depend on Linux. That mean it cannot be run on Windows.

Building from source

Prerequisites

  • .NET 6 SDK
  • CMake
  • GCC with C++
  • Poppler

Configure Native Library

cmake -D CMAKE_BUILD_TYPE=Release -S cpp -B cpp/build

Build Native Library

cmake --build cpp/build && cmake --install cpp/build --prefix dotnet/Cloudsume.Native

Build Cloudsumé Services

If the target machine has .NET runtime installed, run:

dotnet publish -c Release -o dist dotnet/Cloudsume.Services

Otherwise run:

dotnet publish -c Release -o dist -r linux-x64 dotnet/Cloudsume.Services

dist directory will contains the output binary. Please note that the output binary should be running on the same distro version as the builder.

Runtime dependencies

  • Poppler
  • XeTeX

Development

Prerequisites

Open VS Code

Restore NuGet packages before open the VS Code:

dotnet restore dotnet/Cloudsume.sln

Once VS Code is opened change the CMake target on the status bar from [all] to [install] then click on Build.

License

GNU AGPLv3