Skip to content

Commit

Permalink
feature: Released RedisShake 4.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
suxb201 committed Aug 3, 2023
1 parent 5b2303c commit cdf252c
Show file tree
Hide file tree
Showing 123 changed files with 4,309 additions and 2,048 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ assignees: ''

---

- [ ] 请确保已经看过 wiki:https://github.com/alibaba/RedisShake/wiki
- [ ] 请确保已经看过 wiki:https://RedisShake/wiki
- [ ] 请确保已经学习过 Markdown 语法,良好的排版有助于维护人员了解你的问题
- [ ] 请在此提供足够的信息供社区维护人员排查问题
- [ ] 请在提交 issue 前删除此模板中多余的文字,包括这几句话
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: CI

on: [ pull_request ]
on: [ push, pull_request ]

jobs:
black-box-test:
runs-on: ubuntu-latest
strategy:
matrix:
redis-version: [ 5, 6, 7 ]
redis-version: [ "2.8", "3.0", "4.0", "5.0", "6.0", "7.0" ]
steps:
- name: Git checkout
uses: actions/checkout@v2
Expand All @@ -22,7 +22,7 @@ jobs:
sudo apt-get install git
git clone https://github.com/redis/redis
cd redis
git checkout ${{ matrix.redis-version }}.0
git checkout ${{ matrix.redis-version }}
make -j
mkdir bin
cp src/redis-server bin/redis-server
Expand All @@ -31,14 +31,13 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'

- name: make redis-shake
run: |
sh build.sh
- name: test
run: |
cd test
pip3 install -r requirements.txt
python3 main.py
pip3 install -r tests/requirements.txt
sh test.sh
33 changes: 33 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Pages
on:
workflow_dispatch: { }
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
- run: npm ci
- name: Build
run: npm run docs:build
- uses: actions/configure-pages@v2
- uses: actions/upload-pages-artifact@v1
with:
path: docs/.vitepress/dist
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,23 @@ jobs:
asset_content_type: application/gzip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Upload release windows-amd64"
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: ./bin/redis-shake-windows-amd64.tar.gz
asset_name: redis-shake-windows-amd64.tar.gz
asset_content_type: application/gzip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Upload release windows-arm64"
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: ./bin/redis-shake-windows-arm64.tar.gz
asset_name: redis-shake-windows-arm64.tar.gz
asset_content_type: application/gzip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 9 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
.idea
data
__pycache__
bin
.DS_Store
# system
.idea/
__pycache__/
.DS_Store/

# compiled output or test output
bin/
dist/
tmp/
*.log
*.rdb
*.aof
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# redis-shake

[![CI](https://github.com/alibaba/RedisShake/actions/workflows/ci.yml/badge.svg?branch=v3)](https://github.com/alibaba/RedisShake/actions/workflows/ci.yml)
[![CI](https://RedisShake/actions/workflows/ci.yml/badge.svg?branch=v3)](https://RedisShake/actions/workflows/ci.yml)

- [中文文档](https://github.com/alibaba/RedisShake/wiki)
- [中文文档](https://RedisShake/wiki)

redis-shake is a tool for Redis data migration and data filtering.

Expand All @@ -16,7 +16,7 @@ redis-shake is a tool for Redis data migration and data filtering.
* ☁️ Support Aliyun Redis and ElastiCache

For older versions of redis-shake (support codis, twemproxy) please
visit [here](https://github.com/alibaba/RedisShake/tree/develop).
visit [here](https://RedisShake/tree/develop).

![redis-shake2.PNG](https://s2.loli.net/2022/07/10/OZrSGutknlI8XNp.png)

Expand All @@ -28,14 +28,14 @@ visit [here](https://github.com/alibaba/RedisShake/tree/develop).

### Binary package

Download from Release: [https://github.com/alibaba/RedisShake/releases](https://github.com/alibaba/RedisShake/releases)
Download from Release: [https://RedisShake/releases](https://RedisShake/releases)

### Compile from source

After downloading the source code, run the `sh build.sh` command to compile.

```shell
git clone https://github.com/alibaba/RedisShake
git clone https://RedisShake
cd RedisShake
sh build.sh
```
Expand Down
8 changes: 2 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ BIN_DIR=$(pwd)/bin/
rm -rf "$BIN_DIR"
mkdir -p "$BIN_DIR"

cp sync.toml "$BIN_DIR"
cp scan.toml "$BIN_DIR"
cp restore.toml "$BIN_DIR"
cp -r filters "$BIN_DIR"
cp -r scripts/cluster_helper "$BIN_DIR"
cp -r configs/* "$BIN_DIR"

dist() {
echo "try build GOOS=$1 GOARCH=$2"
Expand All @@ -30,7 +26,7 @@ dist() {

if [ "$1" == "dist" ]; then
echo "[ DIST ]"
for g in "linux" "darwin"; do
for g in "linux" "darwin" "windows"; do
for a in "amd64" "arm64"; do
dist "$g" "$a"
done
Expand Down
Loading

0 comments on commit cdf252c

Please sign in to comment.