8000 GitHub - bkataru-forks/ply: A daemonless container runtime and package manager for Linux. Explicit dependencies, lockfiles, and application images you can copy and run. · GitHub
[go: up one dir, main page]

Skip to content
bkataru-forksPublic
forked from iluxav/ply

About

A daemonless container runtime and package manager for Linux. Explicit dependencies, lockfiles, and application images you can copy and run.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

ply

A daemonless container runtime and package manager for Linux.

Package your app with explicit, versioned dependencies. Build an image, copy it to a server, and run it as a foreground process.

Website · Documentation · Releases · Report an issue

Status: pre-1.0. The CLI and image format may change. Linux x86_64 and arm64 are the primary targets; the native Apple Silicon backend is experimental and currently requires building from source. See the macOS guide for setup and feature limitations.

Why ply?

Ply is designed for developers deploying applications to individual Linux hosts who want explicit dependencies and a small runtime they can operate with familiar shell tools.

  • Named dependencies. Declare your base system and runtimes in ply.toml; ply.lock records resolved versions and content hashes.
  • Shared packages. Applications reference dependency packages stored separately on the host. Apps using the same package content can reuse it.
  • File-based distribution. Copy an application image with scp or serve packages over HTTP. Missing dependencies are fetched from the configured sources and checked against their locked hashes.
  • Foreground execution. Run without a central Ply daemon. Logs go to your terminal, signals reach the application, and exit codes propagate.

Try it on Linux

Install Ply:

curl -fsSL https://plybox.sh/install.sh | sh

The installer uses ~/.local/bin for a regular user or /usr/local/bin when run as root or with sudo. Fo 8000 llow its PATH instructions. If it requests host preparation, run sudo ply setup once; this prepares host facilities needed by the runtime, including networking and storage, and prints a short to-do list for rootless use on this host, such as installing passt so rootless apps have outbound network. The example below needs none of the to-dos.

Create a directory containing a page to serve:

mkdir ply-hello
cd ply-hello
printf 'Hello from Ply!\n' > index.html

Save this as server.js in the same directory:

const http = require("http");
const fs = require("fs");

const port = Number(process.env.PORT) || 8000;
http
  .createServer((req, res) => {
    res.setHeader("Content-Type", "text/plain; charset=utf-8");
    res.end(fs.readFileSync("index.html"));
  })
  .listen(port, "0.0.0.0", () => console.log(`hello-http listening on ${port}`));

And this as ply.toml:

[package]
name = "hello"
version = "0.1.0"
base = "debian@13"
entrypoint = ["node", "server.js"]
include = ["server.js", "index.html"]

[dependencies]
node = "22"

[ports]
web = 8000

[sources]
default = "https://registry.plybox.sh/ply/{package}"

The same three files are in examples/hello-http.

Build and run it:

ply build .
ply run --publish 127.0.0.1:8080:8000 hello-0.1.0-linux-*.img

Open localhost:8080, or run this in another terminal on the same machine:

curl http://127.0.0.1:8080
# Hello from Ply!

The example serves one file with Node's built-in http module and publishes it on the host's loopback address. If 8080 is already taken on your machine, ply says so; pick another host port, for example 127.0.0.1:8081:8000, and use it in the curl command too. If you are working over SSH, run the curl command on that Linux host.

Press Ctrl-C in the original terminal to stop it. Edit index.html, then repeat the build and run commands to serve your updated package. Downloaded dependencies remain cached for reuse.

What gets shipped?

ply build produces an application image and a lockfile. The image contains your application files and locked dependency references. The base system and the Node.js runtime remain separate packages.

On another Linux host with Ply installed and set up, copy and run the image:

scp hello-0.1.0-linux-*.img server:
ssh -t server 'ply run --publish 127.0.0.1:8080:8000 hello-0.1.0-linux-*.img'

Replace server with your SSH destination. Build for the destination's CPU architecture; an x86_64 image needs an x86_64 host, and an arm64 image needs an arm64 host.

The destination fetches any missing dependencies from the image's configured sources. An application image's size therefore excludes those dependency downloads. Use ply bundle when you need an artifact with dependencies included for offline use.

For services that should survive logout and reboot, follow the supervision guide.

How it fits alongside Docker and Podman

Ply uses its own package and image model, with named dependencies composed at runtime. It targets deployment on individual hosts.

Docker and Podman provide established OCI workflows and a much larger ecosystem. Docker supports distributing images as files, and Podman runs without a central daemon. Ply's main distinction is its package composition model.

Ply can import Docker/OCI images as flattened snapshots. Importing an image does not turn its contents into separately versioned Ply dependencies. Compatibility varies by image; see the documented tested images and limitations.

If your workflow depends on Kubernetes, Docker Compose files, Dev Containers, or Testcontainers, account for that tooling before considering a migration.

Read the architecture and tradeoffs for more detail.

Next steps

Feedback and contributions

Trying Ply on an existing application is a useful way to contribute. Open an issue with what you tried, what happened, and what you expected. Reports of successful deployments are welcome too: describe the app and whether Ply made your workflow easier.

For bugs, include your Ply version, OS and architecture, whether the run was rootless or rootful, and a minimal reproduction. Remove credentials and private data from manifests and logs before sharing them.

For code changes, include the reason for the change and how you verified it. Run the repository checks from the project root:

make check

License

MIT.

About

A daemonless container runtime and package manager for Linux. Explicit dependencies, lockfiles, and application images you can copy and run.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0