Skip to content

unumotors/aktualizr-lite

 
 

Repository files navigation

aktualizr-lite

C++ implementation of TUF OTA update client based on aktualizr

Getting Started

Dependencies

List of aktualizr-lite dependencies can be found here

Build

git clone --recursive https://github.com/foundriesio/aktualizr-lite
cd aktualizr-lite

or if you cloned the repo without --recursive flag

git submodule update --init --recursive

Initialize a build directory

cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug

if you prefer Ninja backend

cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -GNinja

turn on clang-tidy

cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -GNinja  -DCLANG_TIDY=ON

Build aktualizr-lite

cmake --build build --target aklite -- -j6
or if Ninja is used just
cmake --build build --target aklite

Build tests

cmake --build build --target aklite-tests -- -j6
or if Ninja is used just
cmake --build build --target aklite-tests

Test

cd build
ctest -L aklite

Build and test in a docker container

./unit-test

Usage

Run aktualizr-lite locally against your Foundries Factory

Packages

No packages published

Languages

  • C++ 90.5%
  • Python 3.3%
  • Shell 2.8%
  • CMake 2.7%
  • Dockerfile 0.7%