Skip to content

docktermj/go-hello-plugins-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-hello-plugins-plus

Build go-hello-plugins-plus-M.m.P-I.x86_64.rpm and go-hello-plugins-plus_M.m.P-I_amd64.deb where "M.m.P-I" is Major.minor.Patch-Iteration.

Usage

NOTE: Work in progress

A simple "hello world" style program. The purpose of the repository it to show how to:

  1. Use a go-hello-plugins-plus.conf JSON file that describes plugins
    1. Command line option
    2. `./go-hello-plugins-plus.conf' (i.e. local directory)
    3. `/etc/go-hello-plugins-plus.conf'
  2. Each plugin has its own "docopt"

Invocation

go-hello-plugins-plus

Development

Dependencies

Set environment variables

export GOPATH="${HOME}/go"
export PATH="${PATH}:${GOPATH}/bin:/usr/local/go/bin"
export PROJECT_DIR=${GOPATH}/src/github.com/docktermj

Download project

mkdir -p ${PROJECT_DIR}
cd ${PROJECT_DIR}
git clone git@github.com:docktermj/go-hello-plugins-plus.git

Download dependencies

go get github.com/docopt/docopt-go
go get github.com/hashicorp/go-plugin

Build

Local build

Build plugins

go install github.com/docktermj/go-hello-plugins-plus/plugin/greeter/greeter-english
go install github.com/docktermj/go-hello-plugins-plus/plugin/greeter/greeter-german
go install github.com/docktermj/go-hello-plugins-plus/plugin/greeter/greeter-italian

go install github.com/docktermj/go-hello-plugins-plus/plugin/hello/hello-english
go install github.com/docktermj/go-hello-plugins-plus/plugin/hello/hello-german
go install github.com/docktermj/go-hello-plugins-plus/plugin/hello/hello-italian

Build program

go install github.com/docktermj/go-hello-plugins-plus

The results will be in the ${GOPATH}/bin directory.

Docker build

cd ${PROJECT_DIR}/go-hello-plugins-plus
make build

The results will be in the .../target directory.

Install

RPM-based

Example distributions: openSUSE, Fedora, CentOS, Mandrake

RPM Install

Example:

sudo rpm -ivh go-hello-plugins-plus-M.m.P-I.x86_64.rpm
RPM Update

Example:

sudo rpm -Uvh go-hello-plugins-plus-M.m.P-I.x86_64.rpm

Debian

Example distributions: Ubuntu

Debian Install / Update

Example:

sudo dpkg -i go-hello-plugins-plus_M.m.P-I_amd64.deb

Cleanup

make clean

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published