Deploy tool for the Montagu web app
Project description
montagu-deploy
This is the command-line tool for deploying Montagu. It is a Hatch project.
Installation
pip install montagu-deploy
Usage
$ montagu --help
Usage:
montagu --version
montagu start <path> [--extra=PATH] [--option=OPTION]... [--pull]
montagu status <path>
montagu stop <path> [--volumes] [--network] [--kill] [--force]
[--extra=PATH] [--option=OPTION]...
Options:
--extra=PATH Path, relative to <path>, of yml file of additional
configuration
--option=OPTION Additional configuration options, in the form key=value
Use dots in key for hierarchical structure, e.g., a.b=value
This argument may be repeated to provide multiple arguments
--pull Pull images before starting
--volumes Remove volumes (WARNING: irreversible data loss)
--network Remove network
--kill Kill the containers (faster, but possible db corruption)
--force Force stop even if containers are corrupted and cannot
signal their running configuration, or if config cannot be
parsed. Use with extra and/or option to force stop with
configuration options.
Here <path>
is the path to a directory that contains a configuration file montagu.yml
.
Dev requirements
Test and lint
For all integration tests to pass, you will need 2 environment variables:
-
YOUTRACK_TOKEN
- a token for accessing the YT API -
VAULT_TOKEN
- a github PAT for a user in the vimc robots team. -
hatch run test
-
hatch run lint:fmt
To get coverage reported locally in the console, use hatch run cov
.
On CI, use hatch run cov-ci
to generate an xml report.
Build
hatch build
Install from local sources
hatch build
pip install dist/montagu_deploy-{version}.tar.gz
Publish to PyPi
hatch publish
License
montagu-deploy
is distributed under the terms of the MIT license.
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
Built Distribution
File details
Details for the file montagu_deploy-0.0.5.tar.gz
.
File metadata
- Download URL: montagu_deploy-0.0.5.tar.gz
- Upload date:
- Size: 99.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b437e8da5321480110fe2b5c89b5d9da5a4d579aa952a710bbeb50894d05135 |
|
MD5 | d206aa2ba47b8a5c0f6017e1069c099f |
|
BLAKE2b-256 | 46e8746e93a707726e8870b4338dc26ea9267d02f8340a9f581c474cbb19dfef |
File details
Details for the file montagu_deploy-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: montagu_deploy-0.0.5-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db93c59a4d5b523b58ce15736b7c0631d1104e73600df3a61ad29edfb64a5120 |
|
MD5 | 2d555602c964f412425e15b735cc121a |
|
BLAKE2b-256 | 106e5c63b43376af82edccb65335090efbc05dd11689669511246f377de1acfe |