Visit the releases page to download one of the pre-built binaries for your platform.
Use the Docker image
docker pull insidieux/pinchy
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
.
pinchy %source% %registry% %mode% [flags]
docker run insidieux/pinchy:latest %source% %registry% %mode% [flags]
Example docker-compose file be found in deployment directory
once
mode run sync process only single time
watch
mode run sync process repeatedly with constant schedule.interval
--logger.level string Log level (default "info")
--manager.exit-on-error Stop manager process on first error and by pass it to command line
--scheduler.interval duration Interval between manager runs (1s, 1m, 5m, 1h and others) (default 1m0s)
Flags for chosen source
and registry
are described in a related documentation for sources and registry types.
pinchy \
file \
consul \
once \
--source.path /etc/pinchy/services.yml \
--registry.address http://127.0.0.1:8500
pinchy \
file \
consul \
watch \
--source.path /etc/pinchy/services.yml \
--registry.address http://127.0.0.1:8500 \
--scheduler.interval 5s