A minimal compose-like tool for proot-distro
Project description
pd-compose
pd-compose is a minimal compose-like tool for proot-distro. It reads a pd-compose.yaml to install, start, and stop proot-distro containers — inspired by Docker Compose.
Usage
Define services in pd-compose.yaml:
services:
ubuntu-vm:
image: ubuntu:24.04
binds:
- /host/path:/container/path
environment:
DEBIAN_FRONTEND: noninteractive
command: nginx # optional: command to run
Run:
pd-compose up # install and run containers interactively
pd-compose up -d # run containers in background (detached)
pd-compose ps # list installed containers and detached processes
pd-compose ps -a # show all including stopped detached
pd-compose logs <name> # view logs of detached container
pd-compose logs <name> -f # follow logs
pd-compose down # stop detached and remove containers
pd-compose down -a # stop all detached containers
Commands
- up: Install and run containers. Use
-dfor detached mode (background). - down: Stop detached processes and remove containers. Use
-ato stop all detached. - ps: List installed containers and running detached processes.
- logs: View logs of a detached container. Use
-fto follow,-n Nfor tail.
Architecture
- Uses
proot-distro runfor images with Entrypoint/Cmd (server images) - Uses
proot-distro login -- <command>for services with explicitcommand - PID files stored in
~/.local/share/pd-compose/ - Log files stored in
~/.local/share/pd-compose/<name>.log
Credits
- Built on top of proot-distro by Termux.
- Inspired by Docker Compose.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pd_compose-0.3.0.tar.gz.
File metadata
- Download URL: pd_compose-0.3.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d6519d2ca5b8795c97450820453f458d15185722d9c95c9b3e6bc88e4d50cd9
|
|
| MD5 |
b9640ea689f7cb566d23a5f13190b99b
|
|
| BLAKE2b-256 |
26787d11cf9367752b6b855a285cfee7e4f28be7e183d6cb12793b580628ac19
|
Provenance
The following attestation bundles were made for pd_compose-0.3.0.tar.gz:
Publisher:
publish.yml on aleguacaran/pd-compose
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pd_compose-0.3.0.tar.gz -
Subject digest:
8d6519d2ca5b8795c97450820453f458d15185722d9c95c9b3e6bc88e4d50cd9 - Sigstore transparency entry: 1565835278
- Sigstore integration time:
-
Permalink:
aleguacaran/pd-compose@3fad717cabe738fb401e6ed128b49bf5e0ffb0e3 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/aleguacaran
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3fad717cabe738fb401e6ed128b49bf5e0ffb0e3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pd_compose-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pd_compose-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b1ad64da6d7397c59a5ec40cdb3df8d06e6ad8c6bbfd64df02cc1d6262a9377
|
|
| MD5 |
d68e80f45b66f021a8308cc0af7ccd50
|
|
| BLAKE2b-256 |
673acc8c68d39a2cba2bbf943ba8215707f9583c2d75986dce2637d35dcd0c0e
|
Provenance
The following attestation bundles were made for pd_compose-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on aleguacaran/pd-compose
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pd_compose-0.3.0-py3-none-any.whl -
Subject digest:
6b1ad64da6d7397c59a5ec40cdb3df8d06e6ad8c6bbfd64df02cc1d6262a9377 - Sigstore transparency entry: 1565835419
- Sigstore integration time:
-
Permalink:
aleguacaran/pd-compose@3fad717cabe738fb401e6ed128b49bf5e0ffb0e3 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/aleguacaran
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3fad717cabe738fb401e6ed128b49bf5e0ffb0e3 -
Trigger Event:
release
-
Statement type: