Skip to main content

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 -d for detached mode (background).
  • down: Stop detached processes and remove containers. Use -a to stop all detached.
  • ps: List installed containers and running detached processes.
  • logs: View logs of a detached container. Use -f to follow, -n N for tail.

Architecture

  • Uses proot-distro run for images with Entrypoint/Cmd (server images)
  • Uses proot-distro login -- <command> for services with explicit command
  • PID files stored in ~/.local/share/pd-compose/
  • Log files stored in ~/.local/share/pd-compose/<name>.log

Credits

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

pd_compose-0.3.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pd_compose-0.3.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for pd_compose-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8d6519d2ca5b8795c97450820453f458d15185722d9c95c9b3e6bc88e4d50cd9
MD5 b9640ea689f7cb566d23a5f13190b99b
BLAKE2b-256 26787d11cf9367752b6b855a285cfee7e4f28be7e183d6cb12793b580628ac19

See more details on using hashes here.

Provenance

The following attestation bundles were made for pd_compose-0.3.0.tar.gz:

Publisher: publish.yml on aleguacaran/pd-compose

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pd_compose-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b1ad64da6d7397c59a5ec40cdb3df8d06e6ad8c6bbfd64df02cc1d6262a9377
MD5 d68e80f45b66f021a8308cc0af7ccd50
BLAKE2b-256 673acc8c68d39a2cba2bbf943ba8215707f9583c2d75986dce2637d35dcd0c0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pd_compose-0.3.0-py3-none-any.whl:

Publisher: publish.yml on aleguacaran/pd-compose

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page