cli

module
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0

README

bpm

Blockchain Package Manager by Blockdaemon. Deploy, maintain, and upgrade blockchain nodes on your own infrastructure.

Further reading:

Contributing

Pleaes use conventional commits for you commit messages. This will help us in the future to auto-generate changelogs.

New features should be developed in a branch and merged after a code review.

Building from source

Requirements

Make sure you have the following tools:

  • Go is the main pogramming language. It needs to be installed
  • Docker is used to run packages. It needs to installed and running
  • goreleaser is used to build binary packages. It needs to be installed
  • golangci-lint is used to do static code checks. It needs to be installed
  • GPG is used to sign build artifacts. It needs to be installed

Building during development

Make sure Docker is running, otherwise the tests will fail.

To build during development without creating a version or publishing binaries, run:

make dev-release

Releasing a new version

Make sure Docker is running, otherwise the tests will fail.

You need the Blockdaemon release GPG key imported into your GPG keyring.

make version=<VERSION> release

<VERSION> needs to be a valid semantic version. Do not prefix with v, the script does that automatically.

Writing documentation

The documentation is built using redoc which renders and openapi/swagger file. Most of the text is stored in the docs/documentation.md file.

In order to render the documentation locally while working on it, run:

make serve-docs

and navigate to http://localhost:8080 to see a live rendering of the documentation.

Directories

Path Synopsis
pkg
cli
pbr

Jump to

Keyboard shortcuts

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