kether

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 4 Imported by: 0

README

kether

为区块链服务调度和管理 Docker 容器

1. 如何使用?

1.1. 拉取源代码,构建 kether

git clone https://github.com/MonteCarloClub/kether.git
cd kether
make all # 或 make kether

1.2. 在主机 6379 端口部署 redis 并测试,期望输出 ok

docker pull redis:6.2.6
docker run -d -p 6379:6379 redis:6.2.6
go test -run TestInitRedisClient github.com/MonteCarloClub/kether/registry

1.3. 运行和部署测试用例,对内发布 HTTP 服务,对外发布 HTTPS 服务。

1.3.1. 创建 kether-net 网络,查询网关 IP,填充 test/http_https_echo_server.ymlnetwork_list 字段的 * 处,部署 http-https-echo-server

docker network create --driver bridge kether-net
docker network inspect kether-net
./bin/kether deploy -f test/http_https_echo_server.yml

1.3.2. 在主机 8443 端口访问 HTTPS 服务。

curl -k -X PUT -H "Arbitrary:Header" -d aaa=bbb https://localhost:8443/hello-world

1.3.3. 构建 http-echo-client 镜像,填充 test/http_echo_client.ymlnetwork_listvolume_list 字段的 * 处,部署 http-echo-client

cd test/http_echo_client
docker build -t kofclubs/http-echo-client:testing .
cd ../..
./bin/kether deploy -f test/http_echo_client.yml

1.3.4. 打开 test/http_echo_client.ymlvolume_list 字段指定的主机文件,验证文件 I/O。

cat /*/response.txt

1.4. 清理产物。

make clean

2. 如何开发?

  • 请在自己的分支上开发,每个开发分支应该仅领先主分支1个提交。
  • 请勿向主分支推送提交。
  • 请新建 Pull Request,@KofClubs 将在 Review 通过后把你的分支合并到主分支。

Documentation

Overview

Copyright (c) 2022 Zhang Zhanpeng <zhangregister@outlook.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright (c) 2022 Zhang Zhanpeng <zhangregister@outlook.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL