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现在可以设置多个tokenartifact_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.
Metadata
Release files for portainer-deploy-tool 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| portainer_deploy_tool-0.0.5.tar.gz | 12.3 kB | Without provenance | Details for portainer_deploy_tool-0.0.5.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| portainer_deploy_tool-0.0.5-py3.9.egg | Legacy Egg format | - | - | Details for portainer_deploy_tool-0.0.5-py3.9.egg |
| portainer_deploy_tool-0.0.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for portainer_deploy_tool-0.0.5-py2.py3-none-any.whl |
Total release size: 55.2 kB
Release files / portainer_deploy_tool-0.0.5.tar.gz
| Download URL | portainer_deploy_tool-0.0.5.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2dd94780b9b6b8d6bf26d0f8c2a8e10540de007ce8aaccdec47fea0df943a1b
|
|
BLAKE2b-256 checksum How to use checksums |
b91c44a18a952f27d23f3c8bae1fbcea17c6fad60c4b2207ea14b0f840336457
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / portainer_deploy_tool-0.0.5-py3.9.egg
| Download URL | portainer_deploy_tool-0.0.5-py3.9.egg |
|---|---|
| Size | 28.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
ce4afd73e18e5d1f75a6b6d40761cb8ee02ee0325dc5fa86f9b6b4cf46889da4
|
|
BLAKE2b-256 checksum How to use checksums |
f4caf4d489a683ed780fd76700d40af594dc2c3b5abd637425f114ca314642df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / portainer_deploy_tool-0.0.5-py2.py3-none-any.whl
| Download URL | portainer_deploy_tool-0.0.5-py2.py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
12d9f552a12c512cbe7d0d89677cc25e40a43b4d1c44983c12e5c453c8b1c5ef
|
|
BLAKE2b-256 checksum How to use checksums |
34f3874f396812e37863a93ae929c0fad63490d9072689d8c5a76dac22ff7906
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for portainer-deploy-tool 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.