Skip to content

Commit

Permalink
Build and push docker image when pushing a new tag (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
git-hulk committed Apr 19, 2021
1 parent d3930ac commit 287c387
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 6 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/docker_image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: build docker image

on:
push:
tags:
- v*

jobs:
build-docker-image:
name: Build And Push Docker Image
strategy:
matrix:
os: [ubuntu-18.04]
runs-on: ${{ matrix.os }}
steps:

- name: Checkout Code Base
uses: actions/checkout@v2

- name: Install Dependencies
run: |
sudo apt-get install -y tar libsnappy-dev
mkdir build
- name: Set ENV
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Login Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build And Push Docker Image
run: |
make -j4
cp src/kvrocks build/kvrocks
docker build -t bitleak/kvrocks:$RELEASE_TAG .
docker tag bitleak/kvrocks:$RELEASE_TAG bitleak/kvrocks:latest
docker push bitleak/kvrocks:$RELEASE_TAG
docker push bitleak/kvrocks:latest
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ $ redis-cli -p 6666

## Namespace

namespace was used to isolate data between users. unlike all the redis databases can be visited by `requirepass`, we use one token per namespace. `requirepass` was regraded as admin token, only admin token allows to access the namespace command, as well as some commands like `config`, `slaveof`, `bgave`, etc…
namespace was used to isolate data between users. unlike all the redis databases can be visited by `requirepass`, we use one token per namespace. `requirepass` was regraded as admin token, only admin token allows to access the namespace command, as well as some commands like `config`, `slaveof`, `bgsave`, etc…

```
# add token
Expand Down Expand Up @@ -121,7 +121,7 @@ OK

## Migrate tools

* migrate from redis to kvrocks, use [redis-migrate-tool](https://github.com/vipshop/redis-migrate-tool) which developed by vipshop
* migrate from redis to kvrocks, use [redis-migrate-tool](https://github.com/vipshop/redis-migrate-tool) which was developed by vipshop
* migrate from kvrocks to redis. use `kvrocks2redis` in build dir

## Performance
Expand All @@ -143,7 +143,7 @@ latency: 99.9% < 10ms

![image](https://raw.githubusercontent.com/bitleak/kvrocks/master/docs/images/chart-commands.png)

#### 2. QPS on different payload
#### 2. QPS on different payloads

> kvrocks: workers = 16, benchmark: 8 threads/ 512 conns
Expand Down
3 changes: 0 additions & 3 deletions docker_push.sh

This file was deleted.

0 comments on commit 287c387

Please sign in to comment.