Giter Site home page Giter Site logo

k4e-device-worker's Introduction

Hacking

System dependencies

Install following packages (Fedora):

  • btrfs-progs-devel
  • gpgme-devel
  • device-mapper-devel

Building and installing

To build and install device-worker for yggdrasil (/usr/local/libexec/yggdrasil) run: make install.

RPM build and install

RPM will be located at ~/rpmbuild/RPMS

make build
make rpm

Clean start

To start the device-worker in clean (pairing) mode, make sure that following files are not present before starting yggdrasil:

  • /var/local/yggdrasil/device/device-config.json
  • /var/local/yggdrasil/device/manifests/*

Running

Preparations

Generate client certificate (cert.pem) and key (key.pem) and put them in /etc/pki/consumer directory.

Start yggdrasil

To run yggdrasil configured to communicate with the k4e-operator HTTP API running on localhost:8888 execute in yggdrasil repo (https://github.com/jakub-dzon/yggdrasil) directory :

sudo go run ./cmd/yggd --log-level info --transport http --cert-file /etc/pki/consumer/cert.pem --key-file /etc/pki/consumer/key.pem --client-id-source machine-id

k4e-device-worker's People

Contributors

bardielle avatar eloycoto avatar jakub-dzon avatar jordigilh avatar masayag avatar pkliczewski avatar ydayagi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.