Skip to content

Latest commit

 

History

History
79 lines (54 loc) · 1.95 KB

File metadata and controls

79 lines (54 loc) · 1.95 KB

Noderig packages

This code repository contains Noderig packaging scripts.
For more details about Noderig see the main repository on github.

Requirements

Package name Release number Resources
Git >= 2.X.X Git Documentation
Make >= 3.8X Make Documentation
Golang >= 1.11 Golang Documentation
Glide >= 0.10.X Glide Documentation
FPM >= 0.10.X FPM Documentation

Print Makefile usage

make help

Get Noderig's repository available tags

make list-releases # get all available tags
make get-last-release # get the latest tag

How to build a package

If no RELEASE_NUMBER is given to the build target, the latest available tag on the Noderig repository is automatically used.

How to build a .deb package

Usage:

make build VERSION="${RELEASE_NUMBER}"
make deb

How to build a .rpm package

Usage:

make build VERSION=${RELEASE_NUMBER}
make rpm

Troubleshooting

How to debug Glide installation

If you encounter the following error:

glide not found. Did you add $GOBIN to your $PATH?
Fail to install glide

Add the following declarations in your Bash profile:

export GOPATH="$HOME/go/"
export PATH=$HOME/go/bin:$PATH

How to debug package building

If you encounter the following error:

/bin/sh: fpm: command not found
make: *** [deb] Error 127

Read this documentation and follow detailed instructions to install FPM tool.
On MacOS X system like, you will maybe need to set GEM_HOME and PATH environment variables.