Automatic deployment on-prem from zip archives
Project description
Source Code: https://gitlab.com/fholmer/adop
License: BSD License
Summary
Automatic deployment on-prem from zip archives.
Warning
This is an alpha release. Not ready for production.
Docs
Not available yet. Scheduled for beta release.
Installation
Open command line and and install using pip:
> pip install adop
Usage
adop is available as console script and library module
> adop -h
> python -m adop -h
Print general help
> adop -h
Help on serving rest api
> adop serve-api -h
Serve rest api on http://127.0.0.1:8000
> adop serve-api
Find the generated access token
Windows
> type work/adop.ini | findstr token
Linux
$ cat work/adop.ini | grep token
Test rest api with curl
> curl -H "Token: paste-token-here" http://127.0.0.1:8000/api/v1/test
Upload and deploy a zip-library:
> curl -H "Content-Type: application/zip" -H "Root: mylib" -H "Token: T" --data-binary @work/mylib.zip http://127.0.0.1:8000/api/v1/deploy/zip
Zip file layout
Zip files with exactly one root directory are valid and can be distributed. The root directory name must be unique if many zip files are to be distributed.
Example of a valid zip file layout:
/mylib
/README.rst
/main.py
/mypackage1
/__init__.py
/__main__.py
/mypackage2
/__init__.py
/__main__.py
Following layout is not valid:
/README.rst
/mylib1
/__init__.py
/__main__.py
/mylib2
/__init__.py
/__main__.py
API
Description |
result |
method |
endpoint |
---|---|---|---|
Check that the API is up |
json |
GET |
/api/v1/test |
Sha sum for all deployed zipfiles |
json |
GET |
/api/v1/state |
Sha sum for given deployed root |
json |
GET |
/api/v1/state/<root> |
Start auto-fetch routine if enabled |
json |
GET |
/api/v1/trigger/fetch |
Download zipfile of given root |
zip |
GET |
/api/v1/download/zip/<root> |
Upload and deploy a zipfile |
json*1 |
POST |
/api/v1/deploy/zip |
Upload a zipfile without deploying it |
json*1 |
POST |
/api/v1/upload/zip |
Deploy a pre uploaded zip-file |
json*1 |
GET |
/api/v1/deploy/zip |
Zipfile unpacking progress |
json |
GET |
/api/v1/progress |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file adop-0.0.1a2-py3-none-any.whl
.
File metadata
- Download URL: adop-0.0.1a2-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 145f29afd82a65b8fb52f7885d77acfdf432b479e490c772d8b83e48d17c51e3 |
|
MD5 | edc90fc49c62fd3cd4edc745866dba65 |
|
BLAKE2b-256 | 3403f008f64e66335b6ef0b60457191d4f9a87518aaff6544028349d6e4d9967 |