repository
0.0.0-20240201211419-5238b663c697
Repository: https://github.com/theotw/natssync.git
Documentation: pkg.go.dev
# README
NATSSync
A distributed bridge system to sync messages from one nats cluster to another. The idea is to use this across the Cloud / On Prem gap With message encryption
Environment Variables
Env Var | Default | Description |
---|---|---|
REDIS_URL | localhost:6379 | url to redis |
NATS_SERVER_URL | localhost:4222 | the nats server to use |
CACHE_MGR | redis | name of the cache mgr, redis and mem are currently supported |
KEYSTORE | redis | name of the keystore to use, file or redis |
LISTEN_STRING | :8080 | the port on which the rest api listens |
Testing
Unit tests can be run using the l1
command from the Makefile
make l1
Building the images
The cloud and client Docker image build commands are also in the Makefile
# NATS Sync Server Image
make cloudimage
# NATS Sync Client Image
make clientimage
Tagging and Versioning
Version is controlled by the version.txt for the major.minor and a build number which is a date string
Each trunk/main build, images are pushed to docker hub.
Images pushed are timestamped for the build number and then the latest label is placed in the most recent. A major.minor version label is placed on the most recent build for that version. Users can tag to the major / minor version to get bug fix builds