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.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.3.tar.gz (12.0 kB view details)

Uploaded Source

Built Distributions

portainer_deploy_tool-0.0.3-py3.9.egg (28.1 kB view details)

Uploaded Source

portainer_deploy_tool-0.0.3-py2.py3-none-any.whl (14.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: portainer_deploy_tool-0.0.3.tar.gz
  • Upload date:
  • Size: 12.0 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.3.tar.gz
Algorithm Hash digest
SHA256 8284c8a6e3976ba8a13c90eaca322e6a51ccc7a5ed7d6d016607a8ef287f0072
MD5 960c20b5e62b936b5ba1ad2d52ea66d6
BLAKE2b-256 b0ebf8d84730901a820e25999976a0c211beb0cec78fcc73933fd8d15fd5b303

See more details on using hashes here.

File details

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

File metadata

  • Download URL: portainer_deploy_tool-0.0.3-py3.9.egg
  • Upload date:
  • Size: 28.1 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.3-py3.9.egg
Algorithm Hash digest
SHA256 e82cea18db69bba6067a6a96c7346cbc0dca8a2358a6d4ec18fd6d9de8d13eec
MD5 12d31852bf13370a37c1c51fa977be73
BLAKE2b-256 d79babfdacf73113cd126ded98108c0e97859a3602231b15fbf274e4418946a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: portainer_deploy_tool-0.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.3 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.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 80b6c571cfbfc895a8b412bf6872b6d5e1049423cd6158593f3edbabdf925a67
MD5 f0e0ddbfb58bede6ff138e9e21367760
BLAKE2b-256 9b94173b686cc7ee54d72a735d0bb9588e09d80159f2047adcb94003f1ec8554

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