Last updated:
0 purchases
portainerdeploytool 0.0.5
portainer_deploy_tool
使用portainer部署更新服务的工具
使用
本工具提供pip安装pip install portainer_deploy_tool以及docker镜像hsz1273327/portainer_deploy_tool
docker镜像中已经申明了ENTRYPOINT [ "python","-m", "portainer_deploy_tool"]
支持3个子命令:
updateserviceinstack用于更新某个服务对应的镜像后根据指定的路径更新stack
updateservicebywebhooks用于在portainer上激活webhook后通过调用webhook更新服务(不建议指定tag,这会让stack和实际执行不一致)
createorupdatestack用于根据目录下的指定后缀的文件来创建或者更新stack配置.
具体参数及含义可以用-h命令查看
0.0.5
接口修改
子命令createorupdatestack新增参数deploy_next_wait用于每次部署时保持一个间隔
0.0.4
bug修复
修复createorupdatestack在没有stack时无法部署的问题
0.0.3
接口修改
子命令updateservicebywebhook的tokens参数现在是位置参数
子命令updateservicebywebhook现在可以用执行目录下的update_service_by_webhooks_config.json文件作为配置
子命令createorupdatestack的endpoints参数现在是位置参数
子命令createorupdatestack现在可以用执行目录下的create_or_update_stack_config.json文件作为配置
子命令updateserviceinstack的deploy_path参数参数现在是位置参数
子命令updateserviceinstack现在可以用执行目录下的update_service_in_stack_config.json文件作为配置
bug修复
修复updateservicebywebhook的调用url错误
0.0.2
接口修改
updateservicebywebhook现在可以设置多个token
artifact_version和tag_prefix参数被取消
现在retry_max_times和retry_interval_backoff_factor作为哦三个子命令的共有参数,retry_interval被移除,现在重试的间隔时间将根据公式{backoff factor} * (2 ** ({number of total retries} - 1))获得
0.0.1
项目创建
MIT License
Copyright (c) 2021 Python-Tools
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.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.