Aller au contenu principal

Installation

You'll find below the available ways of getting the needed okp4d binary to start a node.

Supported platforms

okp4d currently supports the following builds.

PlatformArchStatus
Darwinamd64
Darwinarm64
Linuxamd64
Linuxarm64
Windowsamd64️🚫
Not supported

Release binary

You'll find the released binaries on the GitHub repository. These are statically linked builds, so be careful to choose the right binary for your system (i.e. linux/amd64 or linux/arm64). Checksums are also provided if you wish to verify the integrity of the download.

To easily install okp4d from a GitHub release you can use this oneliner script:

curl https://i.jpillora.com/okp4/okp4d@{data.axonedVersion}! | bash

attention

By principle, take the time to verify the checksum manually.

Docker

The okp4d binary can be invoked directly through the following docker image:

docker run -ti --rm okp4/okp4d:v11.0.0 --help

astuce

Build once, deploy anywhere: The docker image is a multi-arch build supporting both amd64 and arm64 architectures.

Build from source

Prerequisites

  • go — OKP4 is built using Go version 19+. Install Go 1.19+ following instructions from the official Go documentation.
  • make — the project comes with a convenient Makefile so verify that make is properly installed.
  • git — in order to clone the project you need to have git installed.

Steps

Clone the okp4/okp4d repo:

git clone https://github.com/okp4/okp4d
cd okp4d

Install okp4d using the provided Makefile:

make install

You can verify that everything is OK:

okp4d version

You should get an output similar to:

v11.0.0