Dockerfile: https://github.com/Year4000/PyCloud/blob/master/Dockerfile
1.0K
A python wrapper daemon that manages tmux sessions and provides a json control over the sessions with redis messaging channels.
To install or update PyCloud it as simple of running pip3. Run the following command as root to get started.
$ pip3 install git+https://github.com/Year4000/[email protected]
When installing there is a daemon script that is a wrapper for the commands bellow.
In single session mode
python3 -m pycloud.app
In system daemon mode
python3 -m pycloud.app --daemon
PyCloud runs with Redis to trigger the creation of nodes from multiple servers all running PyCloud. A service can use publish a JSON string on the channels above and one of the instances will process it.
year4000.pycloud.create{
"id": "RANDOMLY_GENERATED_BY_USER",
"script": "SCRIPT TO RUN ON SERVER AFTER REQUEST IS RECEIVED"
}
year4000.pycloud.create.RANDOMLY_GENERATED_BY_USER{
"cloud": "PYCLOUD_HASH",
"id": "SESSION_HASH"
}
At this moment both Status and Remove calls are the same Request and Response but Status grabs the status while Remove removes the node.
year4000.pycloud.statusyear4000.pycloud.remove{
"id": "RANDOMLY_GENERATED_BY_USER",
"session": "SESSION_HASH"
}
year4000.pycloud.status.RANDOMLY_GENERATED_BY_USERyear4000.pycloud.remove.RANDOMLY_GENERATED_BY_USER{
"cloud": "PYCLOUD_HASH",
"id": "SESSION_HASH",
"status": true
}
Content type
Image
Digest
Size
260.7 MB
Last updated
over 9 years ago
docker pull year4000/pycloud