unit

command module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 1 Imported by: 0

README

Build Status Coverage Report Go Report Card License MIT


Plant Services

Beta state, API subject to breaking changes. In general this service is deprecated and will likely be removed in the future.

Setup

Dependencies

Installation of these is independent of the distribution used.

  • go
  • ZeroMQ
Plantd Dependencies
  • plantd-master
  • plantd-configure
  • plantd-broker
Build
make && sudo make install

or using Docker

make image

Running

The application can either be run from the resulting target/ directory, or the systemd service file can be used.

For example, to use the acquire unit:

sudo systemctl enable plantd-unit@acquire
sudo systemctl start plantd-unit@acquire
Environment

In general every configuration variable can be overridden by an environment variable. For example, the configuration section:

log:
  debug: false
  formatter: "json"
  level: "info"

is equivalent to:

PLANTD_UNIT_LOG_DEBUG=false
PLANTD_UNIT_LOG_FORMATTER=json
PLANTD_UNIT_LOG_LEVEL=info

The exception to this is any of the configuration sections for buses and modules, those are mapped by name at runtime and do not have variables created for them.

An additional environment variable is available to set the configuration file using PLANTD_UNIT_CONFIG. This file needs to end in one of: yaml, json, hcl, toml, or conf.

Publishing

docker build -t registry.gitlab.com/plantd/unit:v1 -f ./build/Dockerfile .
docker push registry.gitlab.com/plantd/unit:v1

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cmd contains unit service definitions Plantd unit service.
Package cmd contains unit service definitions Plantd unit service.
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL