Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add install latest doc #9

Merged
merged 2 commits into from
Dec 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
2. 在不同的云厂商 registry 间复制 image
3. 自动替换修复 Deployment 不能访问的镜像

## 1. 安装
## 1. 安装最新版本

请到 https://github.com/iftechio/jki/releases 页面下载
```
curl -s https://api.github.com/repos/iftechio/jki/releases/latest \
| grep browser_download_url \
| grep darwin \
| cut -d '"' -f 4 \
| wget -i -

下载后赋予可执行权限, 然后复制到 `PATH` 中, 比如:
tar --strip-components=1 -xf jki*

```
VERSION=0.0.7
OS=darwin
wget "https://github.com/iftechio/jki/releases/download/v$VERSION/jki_${VERSION}_${OS}_amd64.tar.gz"
tar xf jki_${VERSION}_${OS}_amd64.tar.gz
cp jki_${VERSION}_${OS}_amd64/jki /usr/local/bin/
sudo mv jki /usr/local/bin/
```

## 2. 使用方法
Expand Down