未验证 提交 8c8890a5 编写于 作者: LinuxSuRen's avatar LinuxSuRen 提交者: GitHub

Add other ways to download jcli (#264)

* Add other ways to download jcli

* Fix the jcli path under windows
上级 71315203
FROM alpine:3.3
RUN sed -i 's|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g' /etc/apk/repositories
RUN apk add --no-cache ca-certificates curl
RUN curl -L https://github.com/jenkins-zh/jenkins-cli/releases/download/v0.0.23/jcli-darwin-amd64.tar.gz|tar xzv && \
mv jcli /usr/local/bin/ && \
curl -L https://github.com/jenkins-zh/jenkins-cli/releases/download/v0.0.23/jcli-darwin-amd64.txt -o jcli-darwin-amd64.txt
FROM alpine:3.3
RUN sed -i 's|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g' /etc/apk/repositories
RUN apk add --no-cache ca-certificates curl
RUN curl -L https://github.com/jenkins-zh/jenkins-cli/releases/download/v0.0.23/jcli-windows-386.tar.gz|tar xzv && \
mv jcli.exe /usr/local/bin/jcli.exe && \
curl -L https://github.com/jenkins-zh/jenkins-cli/releases/download/v0.0.23/jcli-windows-386.txt -o jcli-windows-386.txt
......@@ -89,3 +89,9 @@ gen-data:
image:
docker build . -t jenkinszh/jcli
image-win:
docker build . -t jenkinszh/jcli:win
image-darwin:
docker build . -t jenkinszh/jcli:darwin
\ No newline at end of file
......@@ -56,6 +56,18 @@ sudo mv jcli /usr/local/bin/
* [GoFish](https://gofi.sh/) 的用户可以使用命令 `gofish install jcli` 来安装
* [Scoop](https://scoop.sh/) 的用户可以使用命令 `scoop install jcli` 来安装
如果您无法从 GitHub 上下载 `jcli`,请尝试下面的方法:
`jcli_id=$(docker create jenkinszh/jcli) && sudo docker cp $jcli_id:/usr/local/bin/jcli /usr/local/bin/jcli && docker rm -v $jcli_id`
要下载不同操作系统下的二进制文件?只需要修改 docker 容器的标签:
|镜像|描述|
|---|---|
|`jenkinszh/jcli`|Linux|
|`jenkinszh/jcli:darwin`|Mac|
|`jenkinszh/jcli:win`|Windows,你可以从 `/usr/local/bin/jcli.exe` 这里找到可执行程序|
# 入门
当安装 `jcli` 以后。你需要提供一份配置文件。请执行命令 `jcli config generate`,该命令会帮助你编辑配置文件 `~/.jenkins-cli.yaml` ,你需要根据实际的 Jenkins 配置情况做相应的修改。
......@@ -65,7 +77,7 @@ sudo mv jcli /usr/local/bin/
如果你对该项目感兴趣,请首先仔细阅读我们的[贡献指南](CONTRIBUTING.md)。我们欢迎任何形式的贡献。
感谢 JetBrains 为我们提供了开源许可证。
[![goland.svg](goland.svg)](https://www.jetbrains.com/?from=jenkins-cli)
[![goland.svg](https://raw.githubusercontent.com/jenkins-zh/jenkins-cli/master/goland.svg)](https://www.jetbrains.com/?from=jenkins-cli)
# 点赞数趋势图
......
......@@ -57,6 +57,18 @@ Here are other package managers:
* [GoFish](https://gofi.sh/) users can use `gofish install jcli`
* [Scoop](https://scoop.sh/) users can use `scoop install jcli`
If you cannot download `jcli` from GitHub, please try the following ways:
`jcli_id=$(docker create jenkinszh/jcli) && sudo docker cp $jcli_id:/usr/local/bin/jcli /usr/local/bin/jcli && docker rm -v $jcli_id`
Download different version of OS? Just need to change the docker image tag:
|image|description|
|---|---|
|`jenkinszh/jcli`|Linux|
|`jenkinszh/jcli:darwin`|Mac|
|`jenkinszh/jcli:win`|Windows, you can find it from `/usr/local/bin/jcli.exe`|
# Get started
Read [this document](doc/README.md) for more details on how to use `jcli`.
......@@ -67,7 +79,7 @@ If you're interested in this project. Please go through the
[contribution guide](CONTRIBUTING.md). Any contributions are welcome.
Thanks to JetBrains for giving us the open source licence.
[![goland.svg](goland.svg)](https://www.jetbrains.com/?from=jenkins-cli)
[![goland.svg](https://raw.githubusercontent.com/jenkins-zh/jenkins-cli/master/goland.svg)](https://www.jetbrains.com/?from=jenkins-cli)
# Stargazers over time
......
package client
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册