|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo "[ BUILD RELEASE ]"
|
|
|
|
BIN_DIR=$(pwd)/bin/
|
|
|
|
rm -rf "$BIN_DIR"
|
|
|
|
mkdir -p "$BIN_DIR"
|
|
|
|
|
|
|
|
# build the current platform
|
|
|
|
echo "try build for current platform"
|
|
|
|
go build -v -trimpath -o "$BIN_DIR/redis-shake" "./cmd/redis-shake"
|
|
|
|
echo "build success"
|
|
|
|
|
|
|
|
for g in "linux" "darwin"; do
|
|
|
|
for a in "amd64" "arm64"; do
|
|
|
|
echo "try build GOOS=$g GOARCH=$a"
|
|
|
|
export GOOS=$g
|
|
|
|
export GOARCH=$a
|
|
|
|
go build -v -trimpath -o "$BIN_DIR/redis-shake-$g-$a" "./cmd/redis-shake"
|
|
|
|
unset GOOS
|
|
|
|
unset GOARCH
|
|
|
|
echo "build success"
|
|
|
|
done
|
|
|
|
done
|
Feature 2.0 (#276)
* add CI
* in debug CI
* in debug CI
* in debug CI
* in debugging CI
* in debug CI
* in debugging CI
* in debug CI 2
* split sync code from sync.go to dbSync directory to make code clean
* finish adjust sync mode code
* update a lit
* add cluster node list judge, only accpet role master. see #149
* update ChangeLog
* update ChangeLOG 2
* add CI
* in debug CI
* in debug CI
* in debug CI
* in debugging CI
* in debug CI
* in debugging CI
* in debug CI 2
* split sync code from sync.go to dbSync directory to make code clean
* finish adjust sync mode code
* update a lit
* add cluster node list judge, only accpet role master. see #149
* update ChangeLog
* update ChangeLOG 2
* merge commit in feature-1.6 manually. see pull/201
* resuming from break-point, in coding
* add resume_from_break_point in configuration
* resuming from break-point, in coding 2
* resuming from break-point, finish offset adjust
* merge v1.6.24 manully
* update some metrics
* update, add run-id
* almost finish resume from break-point
* polish resume from breakpoint
* release 1.7-unstable v1
* modify ChangeLog
* restore add parameters judge when version >= 5.0
* cherry pick 3ea30b05365d679a02248150b4c9987f0c65e98c
* update redis-go-cluster to add more log details
* cherry pick 0e10b0defa7726bd02b5b10620ef79618a547cb3
* bugfix of sendId, see #222
* improve: rename used -> available in delayChan. see #233
* block password, see #229
* set auth_type to 'auth' as default, see #237
* release v1.6.26
* modify ChangeLog
* polish conf comment
* merge 16.27 manually
* 1. polish conf 2. add filter key for redis-shake-checkpoint
* 1. polish conf 2. add filter key for redis-shake-checkpoint2
* unify offset by only one, step 1: modify checkpoint and add ut
* unify offset by only one, step 2: modify syncIncrease.go. haven't test yet
* unify offset by only one, step 3: finish test
* finish cluster resuming from break point and pass simple test
* update driver
* add picture of resuming from break point
* add picture of resuming from break point
* add checkpoint and conf version
* cherry pick 1d6c8ed83f35ae41c7f49d21a3b8d2f5d04ff166 from v1.6.28
* modify the checkpoint fcv
* release v2.0
* merge v1.6.28
* update redis-go-cluster to remove SELECT judge, see #273
* disable target.db when enable resume_from_break_point
* release v2.0.1
5 years ago
|
|
|
|
|
|
|
cp redis-shake.toml "$BIN_DIR"
|
|
|
|
|
|
|
|
if [ "$1" == "dist" ]; then
|
|
|
|
echo "[ DIST ]"
|
|
|
|
cd bin
|
|
|
|
cp -r ../filters ./
|
|
|
|
tar -czvf ./redis-shake.tar.gz ./redis-shake.toml ./redis-shake-* ./filters
|
|
|
|
rm -rf ./filters
|
|
|
|
cd ..
|
|
|
|
fi
|