Skip to content

Installing from source

Alexandr Krylovskiy edited this page Nov 7, 2014 · 10 revisions

Prerequisites

The toolkit requires the latest stable Go release. If you don't have Go installed, read the official Go installation guide. All dependencies are shipped with the source code (vendored with godep).

Compiling components

Create a folder for your installation and change to it (all subsequent commands should be executed from this folder):

mkdir patchwork

Checkout the sources from Github treating the current folder as a GOPATH directory:

GOPATH=`pwd` go get -d github.com/patchwork-toolkit/patchwork

Build the main Patchwork components (device gateway, devices catalog and service catalog binaries):

GOPATH=`pwd` go install github.com/patchwork-toolkit/patchwork/cmd/...

As a result, the corresponding binaries will be created in the bin folder in the project folder:

bin/
bin/device-catalog
bin/device-gateway
bin/service-catalog
bin/service-registrator

What's next?

Now you have Patchwork Toolkit binaries. The next step is configuration of the toolkit. Please, proceed to Getting Started.