Skip to content

Latest commit

 

History

History
105 lines (68 loc) · 1.85 KB

user-guide.md

File metadata and controls

105 lines (68 loc) · 1.85 KB

User guide

Installing

Github Release

Visit the releases page to download one of the pre-built binaries for your platform.

Docker

Use the Docker image

docker pull insidieux/pinchy

go get

Alternatively, you can use the go get method:

go get github.com/insidieux/pinchy/cmd/pinchy

Ensure that $GOPATH/bin is added to your $PATH.

Usage

Binary

pinchy %source% %registry% %mode% [flags] 

Docker

docker run insidieux/pinchy:latest %source% %registry% %mode% [flags]

Docker-compose run

Example docker-compose file be found in deployment directory

Modes

once mode run sync process only single time

watch mode run sync process repeatedly with constant schedule.interval

Command common flags

--logger.level string     Log level (default "info")
--manager.exit-on-error   Stop manager process on first error and by pass it to command line

Watch mode

--scheduler.interval duration   Interval between manager runs (1s, 1m, 5m, 1h and others) (default 1m0s)

Source and Registry flags

Flags for chosen source and registry are described in a related documentation for sources and registry types.

Available source types

Available registry types

Examples

Once

pinchy \
    file \
    consul \
    once \
    --source.path /etc/pinchy/services.yml \
    --registry.address http://127.0.0.1:8500

Watch

pinchy \
    file \
    consul \
    watch \
    --source.path /etc/pinchy/services.yml \
    --registry.address http://127.0.0.1:8500 \
    --scheduler.interval 5s