domino-apps
Publish, deploy, update, restart, stop or roll back a web application as a Domino App, and automate those steps over the Apps API or a CI/CD pipeline. Use whenever the user wants to publish, deploy, ship, launch, release or host an app (React/Vite, Streamlit, Dash, Flask, Shiny, Gradio, FastAPI, Rust) on Domino, make an existing app work behind Domino's reverse proxy (app.sh entry point, mandatory 0.0.0.0:8888, DOMINO_RUN_HOST_PATH, relative base, HashRouter, server-side model endpoint calls), create a new App version, deploy an older version, start or stop an App over /api/apps/v1, or set up GitHub Actions deployment to Domino. Not for scaffolding a brand-new app from scratch (domino-app-init) or for diagnosing 404s, blank pages or broken routing in an already published app (domino-debug-proxy); use it when those hand off to publishing.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 5
- Forks
- 4
01 前言 Front Matter
- name
- domino-apps
- description
- Publish, deploy, update, restart, stop or roll back a web application as a Domino App, and automate those steps over the Apps API or a CI/CD pipeline. Use whenever the user wants to publish, deploy, ship, launch, release or host an app (React/Vite, Streamlit, Dash, Flask, Shiny, Gradio, FastAPI, Rust) on Domino, make an existing app work behind Domino's reverse proxy (app.sh entry point, mandatory 0.0.0.0:8888, DOMINO_RUN_HOST_PATH, relative base, HashRouter, server-side model endpoint calls), create a new App version, deploy an older version, start or stop an App over /api/apps/v1, or set up GitHub Actions deployment to Domino. Not for scaffolding a brand-new app from scratch (domino-app-init) or for diagnosing 404s, blank pages or broken routing in an already published app (domino-debug-proxy); use it when those hand off to publishing.
- compatibility
- Domino 6.3 and Domino Cloud. Requires DOMINO_API_HOST; in a run use DOMINO_API_PROXY, outside a run a Personal Access Token or service account token.
02 资源文件 5
- 参考文档API-APPS.md11.3 KB
- 参考文档FRAMEWORKS.md25.2 KB
- 参考文档REACT-CICD.md12.7 KB
- 参考文档REACT-VITE-GUIDE.md9.1 KB
- 参考文档TROUBLESHOOTING.md11.6 KB
03 SKILL.md 正文
Domino Apps
Applies to Domino 6.3 and Domino Cloud.
A Domino App runs project code in a container behind Domino's reverse proxy. The proxy authenticates every request, strips the App's URL prefix, and forwards the viewer's token as Authorization: Bearer (secure identity propagation, the default).
Rules every App must satisfy
- Make the App idempotent. It restarts at any time and can run as several replicas at once: startup changes nothing (migrate and seed in a Job before publishing), each write is an upsert or carries an idempotency key under a unique constraint, so a retry stores it once, and state lives in a Dataset or database, not in memory or on the App's disk (details).
- Serve on
0.0.0.0:8888. An App that does not expose a server on that address and port fails to start. Port 8888 is mandatory, not a default. - The entry point is a launch file in the project (
app.sh, or a Python or R script). It is fixed for the life of the App; create a new App to change it. - Read the URL prefix from
DOMINO_RUN_HOST_PATHwherever a framework needs its base path (Dashrequests_pathname_prefix, Gradioroot_path). Never assemble it from the project owner, name and run ID; the prefix is not derived from them. - Use relative URLs for assets and API calls (Vite
base: './',new URL('api/', document.baseURI)), never root-absolute/assets/...orfetch('/api/...'). They break when the App URL lacks its trailing slash; add it (details). - Keep secrets on the server. Model endpoint tokens live in project or user environment variables and are read by backend code. Anything in a
VITE_-prefixed variable is compiled into the browser bundle.
Quick start
| Framework | app.sh runs |
Details |
|---|---|---|
| Vite + React | node server.js serving a build made once by scripts/build-dist.sh; never installs or builds |
REACT-VITE-GUIDE.md |
| Streamlit | streamlit run app.py --server.port 8888 --server.address 0.0.0.0 --server.enableCORS false --server.enableXsrfProtection false |
FRAMEWORKS.md |
| Dash | python app.py with Dash(__name__, routes_pathname_prefix='/', requests_pathname_prefix=os.environ.get('DOMINO_RUN_HOST_PATH')) and app.run(host='0.0.0.0', port=8888) |
FRAMEWORKS.md |
| Flask | python -m flask run --host=0.0.0.0 --port=8888 or gunicorn -w 4 -b 0.0.0.0:8888 app:app |
FRAMEWORKS.md |
| Shiny | R -e 'shiny::runApp("./", port=8888, host="0.0.0.0")' |
FRAMEWORKS.md |
| Rust (axum) | the prebuilt binary; never compiles | domino-rust-apps |
Vite: base: './' and HashRouter; BrowserRouter breaks nested routes.
Lifecycle
Create, publish and deploy are separate steps. Publishing records an immutable version (code commit, environment revision, mounts, identity propagation); deploying starts it. Hardware tier, autoscaling, vanity URL and iframe settings are deployment settings: changing them restarts the instance without creating a version. Develop in a workspace with App Preview (a real App runtime, author-only at /preview/<draftAppId>), then Publish App, then Deploy the version from the App details page.
Check three things before publishing. Builds: Vite and Rust Apps start a build made once in a Workspace or Job, named by date, with the previous build kept and the label in Version Notes (details). Files: the App runs the project's committed files, so sync first (DFS Workspace: File Changes > Sync to Domino; Git-based: commit and push) or the start fails with entry script 'app.sh' not found. Packages: the App uses the project's Compute Environment, not what you pip install in a Workspace (streamlit: not found, exit 127); check with python -c "import <framework>" and fix it as FRAMEWORKS.md shows.
Environment variables and headers
Injected at start: DOMINO_RUN_HOST_PATH (URL prefix, trailing /), the DOMINO_PROJECT_* and DOMINO_RUN_ID identifiers, DOMINO_STARTING_USERNAME (who started the run, not the viewer), DOMINO_API_HOST and DOMINO_API_PROXY (in-cluster API addresses; never in browser links), plus project and user environment variables (full list). The viewer is the token's preferred_username claim; read domino-username only when no token arrives (Apps with extended identity propagation never get it, and there a client can send its own).
Calling Domino APIs and model endpoints from an App
- As the publisher (the user who started the App):
$DOMINO_API_PROXY/api/...with noAuthorizationheader; code that needs a bearer gets one per request from$DOMINO_API_PROXY/access-token. - As the viewer: the request's bearer token on
$DOMINO_API_HOST. Without extended identity propagation (published by a SysAdmin or CloudAdmin; viewer consent) most routes reject it, often with 500 (details). No token: return 401, since$DOMINO_API_HOSTruns calls withoutAuthorizationas the publisher. - Model endpoints: from backend code only, with
MODEL_API_URLandMODEL_API_TOKENfrom Project environment variables; HTTP Basic with the token as username and password for synchronous endpoints, a bearer for asynchronous ones (details).
Auth: https://docs.domino.ai/cloud/reference/api/domino-api-authentication ; legacy API keys (X-Domino-Api-Key) are deprecated.
REST automation
/api/apps/v1 for create, versions, publish (drafts), start and stop; /api/apps/beta only for instance reads (list instances, logs, real-time logs, views). Full chain, bodies and the logs route: API-APPS.md. CI/CD with GitHub Actions and a service account: REACT-CICD.md.
Reference files
- REACT-VITE-GUIDE.md: Vite config, Express backend, HashRouter, App Preview
- REACT-CICD.md: GitHub Actions workflow and Public API deploy script
- FRAMEWORKS.md: Streamlit, Dash, Flask, Gradio, FastAPI, Shiny, dependencies, viewer identity, proxy behaviour and limits
- API-APPS.md: v1 vs beta routes, publish chain, logs
- TROUBLESHOOTING.md: symptoms, causes and fixes
Docs: https://docs.domino.ai/cloud/platform-capabilities/core-concepts/apps (same under /6.3/). Related skills: domino-app-init (scaffold), domino-debug-proxy (diagnose), domino-api-intro (auth, hosts), domino-ui-bootstrap (design system SPA), domino-extensions (mount an App in the Domino UI).
04 同仓库更多 Skills
tags-and-properties
Manage Domino tags and properties via the Tags (Taxonomy) API at /api/taxonomy/v1. Covers namespaces and tags (create, list, update, deprecate, delete; tag entities such as projects, models, datasets, apps, project templates, NetApp volumes, environments; query by tag; autocomplete; merge; CSV import/export) and properties (typed metadata fields - text, number, date, boolean, url, user, organization, select, multi_select - with per-entity values, groups and versioned entities like model_version/app_version). Use when organizing entities with tags, building hierarchical namespaces, defining typed metadata fields, setting property values, finding entities by tag, bulk-tagging during onboarding, or migrating a taxonomy across environments.
netapp-volumes
Work with Domino Volumes for NetApp ONTAP (NetApp Volumes) - shared, multi-terabyte storage with near-instant snapshots. Covers creating volumes, attaching them to projects, mount paths (/mnt/netapp-volumes/ or /domino/netapp-volumes/), snapshots and tags, roles, deletion, mounting volumes in jobs, and the NetApp Volumes REST API (/remotefs/v1). Use when managing large-scale shared data, taking fast no-copy snapshots, or integrating NetApp ONTAP storage with Domino.
domino-workspaces
Work with Domino Workspaces - interactive sessions running Jupyter, JupyterLab, VS Code or RStudio on a hardware tier with a compute environment. Covers launching and configuring a Workspace, what persists across stop and resume, file paths and syncing for DFS and Git-based Projects, package and home-directory persistence, SSH access from a local IDE, the Workspace API routes, and troubleshooting. Use when setting up or debugging an interactive development session in Domino.
domino-ui-bootstrap
Bootstrap or retrofit a Vite + React 18 + TypeScript project so it uses the Domino design system (`@dominodatalab/extensions-tools`). Scoped to a **fully standalone SPA frontend for a Domino application or extension**, not snippets, library additions, or work inside an existing Domino monorepo package. Use whenever the user wants to create, scaffold, refactor, retrofit, or set up such an SPA (a React app, web app, frontend, UI, or extension) that should "look like Domino", use Domino components, follow the Domino design system, or integrate with the Domino platform, including when they mention DominoThemeProviderDecorator, extensions-tools, or base-components without saying "Domino". Also use to make an existing standalone React/Vite project "Domino-styled" or add Domino theming. Handles React 18 / react-router 5 pinning, Storybook MCP registration, theme provider wiring, and build verification.
domino-trace-setup
Set up GenAI tracing for an LLM or agent application in Domino by checking the Domino SDK and MLflow requirements (the DSE needs nothing installed), then adding a tracing_setup.py helper, span evaluators, a config.yaml, and @add_tracing / DominoAgentContext wiring. Use when the user asks to add tracing, observability, or evaluation to an agent or LLM app running on Domino.
domino-rust-apps
Build a Rust web app (axum) in Domino and ship it as a Domino App that starts from a prebuilt binary. Covers installing a pinned Rust toolchain into a Compute Environment with rustup, Cargo project defaults (edition 2024, rust-toolchain.toml, Cargo.lock, Clippy pedantic, rustfmt, cargo-nextest, cargo-deny), rust-analyzer for the IDE and coding agents, check hooks, calling Domino as the viewer with extended identity propagation, dev and release build profiles, keeping target/ out of Git and Domino storage, and an app.sh that runs the binary in App Preview and deployments without compiling. Use when the user wants a Rust app, API, dashboard or Proa site on Domino, a performance-sensitive or correctness-critical App, or asks to set up Rust, cargo, Clippy, nextest or rust-analyzer in a Domino Workspace or environment.