CentOS CI provisioner
Project description
Info
Community Platform Engineering team (of Red Hat) is working on revamping this project and thus, have cleaned this repository by
- marking other branches stale
- Clean branch created for development
to see the current deployed version of Duffy in CentOS CI Infra, check stale/master branch.
Duffy
Duffy is the middle layer running ci.centos.org that manages the provisioning, maintenance and teardown / rebuild of the Nodes (physical hardware for now, VMs coming soon) that are used to run the tests in the CI Cluster.
Development
Installation
To install Duffy:
- Clone the repository and navigate into the project directory.
git clone https://github.com/CentOS/duffy.git cd duffy
- Set up and activate a virtual environment.
- Using native virtual environment
python3 -m venv duffyenv source duffyenv/bin/activate
- Using virtualenv wrapper
virtualenv duffyenv source duffyenv/bin/activate
- Using Poetry virtual environment shell
poetry shell
- Using native virtual environment
- Install using Poetry
poetry install
Running Duffy server
Viewing CLI usage
duffy --help
Usage: duffy [OPTIONS]
Duffy is the middle layer running ci.centos.org that manages the
provisioning, maintenance and teardown / rebuild of the Nodes (physical
hardware for now, VMs coming soon) that are used to run the tests in the CI
Cluster.
Options:
-p, --portnumb INTEGER Set the port value [0-65536]
-6, --ipv6 Start the server on an IPv6 address
-4, --ipv4 Start the server on an IPv4 address
-l, --loglevel [critical|error|warning|info|debug|trace]
Set the log level
--version Show the version and exit.
--help Show this message and exit.
Starting the server at port 8080 using IP version 4 and setting the log level to trace
duffy -p 8000 -4 -l trace
* Starting Duffy...
* Port number : 8000
* IP version : 4
* Log level : trace
INFO: Started server process [104283]
INFO: Waiting for application startup.
TRACE: ASGI [1] Started scope={'type': 'lifespan', 'asgi': {'version': '3.0', 'spec_version': '2.0'}}
TRACE: ASGI [1] Receive {'type': 'lifespan.startup'}
TRACE: ASGI [1] Send {'type': 'lifespan.startup.complete'}
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
Exit out of the server using Ctrl
+ C
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 Distribution
duffy-3.3.3.tar.gz
(44.2 kB
view details)
Built Distribution
duffy-3.3.3-py3-none-any.whl
(58.2 kB
view details)
File details
Details for the file duffy-3.3.3.tar.gz
.
File metadata
- Download URL: duffy-3.3.3.tar.gz
- Upload date:
- Size: 44.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.18.15-200.fc36.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19144ed16efdf6c57d0a24e7082b973c23836f3d272370175dab3b0f408400dc |
|
MD5 | 6799b0cf27c9142d14efd11055fe61fe |
|
BLAKE2b-256 | fa57395139c49f9f52f1b042be78a18cf969b9b094131a16962514d9bda2aeef |
File details
Details for the file duffy-3.3.3-py3-none-any.whl
.
File metadata
- Download URL: duffy-3.3.3-py3-none-any.whl
- Upload date:
- Size: 58.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.18.15-200.fc36.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95ae639c0541d74ab8d44c83e78e6b2abff9e5326fb84b83a13f4d304344aaee |
|
MD5 | 0ad9e6be2e8713e12130a82fc797f820 |
|
BLAKE2b-256 | e747e7426238331ef597b8b73727dc202813b8045b9c465990559e291dfdde1d |