Configurable desktop launcher for Docker-based applications
Project description
docker-app-launcher
Configurable desktop launcher for Docker-based applications. One persistent window. It opens, shows progress, and never closes itself — no dialog chains.
Quick Start
pip install docker-app-launcher
Python API (3 lines)
from docker_app_launcher import LauncherConfig, launch
launch(LauncherConfig(
app_name="My App",
container_name="my-app",
default_port=8080,
))
CLI
docker-app-launcher --config launcher.json # open the window
docker-app-launcher --status # print state and exit
docker-app-launcher --install --port 9000 # build + start headless
docker-app-launcher --check # is Docker running?
launcher.json
Everything is configurable. Only app_name is required — the rest is derived
(slug, container/image names, compose project, config dir) or defaulted.
{
"app_name": "My App",
"container_name": "my-app",
"default_port": 8080,
"compose_file": "docker-compose.prod.yml",
"install_dir": "/opt/my-app",
"health_check_path": "/api/health",
"health_check_key": "status",
"health_check_value": "ok",
"repo_url": "https://github.com/owner/repo",
"locale": "en"
}
Features
- One persistent window — never closes itself; only the X closes it.
- Docker check on startup — distinguishes not installed / running / stopped / no Docker.
- Live build progress — the Docker build is streamed line-by-line into the window.
- Configurable port — editable in the GUI and via
--port, validated and persisted (tolauncher.jsonand.env). - Verified actions — install runs a health check; uninstall re-lists the containers to confirm they are gone.
- Install manifest + startup cleanup — finds and offers to remove stale leftovers of older installs.
- Verbose uninstall / cleanup — every step reported with a ✓ / ✗ result.
- System tray (optional) —
pip install docker-app-launcher[tray]; the window minimizes to the tray while running. - DE / EN i18n — with per-app custom-string overrides via
custom_strings. - Actions architecture — all business logic is GUI-free and unit-tested without a display.
- CLI ↔ GUI parity — both call the exact same actions layer.
Architecture
| Module | Responsibility |
|---|---|
config.py |
LauncherConfig dataclass — the single source of truth. |
actions.py |
All business logic. No tkinter. Fully testable. |
gui.py |
LauncherApp(tk.Tk) — a thin window over the actions. |
tray.py |
Optional system tray (pystray + Pillow). |
i18n.py |
DE/EN strings with custom-string overrides. |
__main__.py |
CLI entry point + GUI router. |
Configuration reference
See LauncherConfig for the full field list (app identity, network/health, Docker timeouts, paths, GUI, links, cleanup, tray, i18n, and lifecycle callbacks).
Development
poetry install --with dev --all-extras
make ci # lint + format-check + typecheck + tests
make test # tests with coverage
make fix # auto-fix lint + format
Used by
License
MIT © Asterios Raptis
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 docker_app_launcher-0.1.0.tar.gz.
File metadata
- Download URL: docker_app_launcher-0.1.0.tar.gz
- Upload date:
- Size: 27.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.11.13 Linux/7.0.0-22-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f22523addbe2239d82aef8e9668d8f2e89d557df79ef474c4aa4fc8e7ba6416a
|
|
| MD5 |
bed70e529fbb8b7f68884dfb9293a024
|
|
| BLAKE2b-256 |
d1d2ff76a09f19616cac0ced25fb09245602ba6da62f90562261592a7e18e5b2
|
File details
Details for the file docker_app_launcher-0.1.0-py3-none-any.whl.
File metadata
- Download URL: docker_app_launcher-0.1.0-py3-none-any.whl
- Upload date:
- Size: 30.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.11.13 Linux/7.0.0-22-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5be5de020b8fabe89fa037edc08b60ce1c381e16626c4a87a2a90f7ccc930837
|
|
| MD5 |
e9b7809c9381705e8683076812c42862
|
|
| BLAKE2b-256 |
7c6c02338336198b2abbc3621fdecd28a9d80feaea0abf10b95a374f35a0cc52
|