Skip to main content

portainer deploy tool for swarm

Project description

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

接口修改

  • 子命令updateservicebywebhooktokens参数现在是位置参数
  • 子命令updateservicebywebhook现在可以用执行目录下的update_service_by_webhooks_config.json文件作为配置
  • 子命令createorupdatestackendpoints参数现在是位置参数
  • 子命令createorupdatestack现在可以用执行目录下的create_or_update_stack_config.json文件作为配置
  • 子命令updateserviceinstackdeploy_path参数参数现在是位置参数
  • 子命令updateserviceinstack现在可以用执行目录下的update_service_in_stack_config.json文件作为配置

bug修复

  • 修复updateservicebywebhook的调用url错误

0.0.2

接口修改

  • updateservicebywebhook现在可以设置多个token
  • artifact_versiontag_prefix参数被取消
  • 现在retry_max_timesretry_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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

portainer_deploy_tool-0.0.5.tar.gz (12.3 kB view details)

Uploaded Source

Built Distributions

portainer_deploy_tool-0.0.5-py3.9.egg (28.4 kB view details)

Uploaded Source

portainer_deploy_tool-0.0.5-py2.py3-none-any.whl (14.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file portainer_deploy_tool-0.0.5.tar.gz.

File metadata

  • Download URL: portainer_deploy_tool-0.0.5.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for portainer_deploy_tool-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a2dd94780b9b6b8d6bf26d0f8c2a8e10540de007ce8aaccdec47fea0df943a1b
MD5 58f7c8d187870ad0f52a645e39c1f534
BLAKE2b-256 b91c44a18a952f27d23f3c8bae1fbcea17c6fad60c4b2207ea14b0f840336457

See more details on using hashes here.

File details

Details for the file portainer_deploy_tool-0.0.5-py3.9.egg.

File metadata

  • Download URL: portainer_deploy_tool-0.0.5-py3.9.egg
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for portainer_deploy_tool-0.0.5-py3.9.egg
Algorithm Hash digest
SHA256 ce4afd73e18e5d1f75a6b6d40761cb8ee02ee0325dc5fa86f9b6b4cf46889da4
MD5 c2b71ab2ef6f5769738ff52ea03e266c
BLAKE2b-256 f4caf4d489a683ed780fd76700d40af594dc2c3b5abd637425f114ca314642df

See more details on using hashes here.

File details

Details for the file portainer_deploy_tool-0.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: portainer_deploy_tool-0.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for portainer_deploy_tool-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 12d9f552a12c512cbe7d0d89677cc25e40a43b4d1c44983c12e5c453c8b1c5ef
MD5 3f5992aa1f9671d4b69c8d558fb94777
BLAKE2b-256 34f3874f396812e37863a93ae929c0fad63490d9072689d8c5a76dac22ff7906

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page