README.md

Altitude as a private Umbrel app #

This package installs Altitude with its logo on the Umbrel dashboard. Umbrel handles app login protection, start/stop/restart, and the persistent app-data directory. Altitude keeps its own account login and workspace setup. Nothing is submitted to the official store or pushed to a public registry, and Umbrel does not need access to your Tangled repository.

Prepared for umbrelOS 2.0.1 on Intel/AMD. The package opens on port 8788 and supports HTTP for private LAN/Tailscale use, as well as HTTPS when available. Your old standalone deployment uses port 8787, so the two are separate installations with separate databases. Existing standalone data is not imported automatically.

Why there is a local registry #

Umbrel's install/update lifecycle pulls every application image. Loading an image archive alone does not satisfy that lifecycle. The installer therefore runs a small registry bound to 127.0.0.1:5099 only, loads the private images, and pushes them to that registry on the same server. It then pins their digests in the app package. No Docker daemon configuration changes, registry credentials, public repositories, or externally accessible registry ports are needed.

The registry is deployment infrastructure, separate from the Altitude app, with its own restart policy and registry-data/ directory. Keep it and its files for app updates. The Altitude containers have no Docker socket, privileged mode, host network, or raw host ports. This is a private single-architecture package, not an official-store submission.

Build on your computer #

From the Altitude source checkout, with Docker, Buildx, Docker API 1.48+ and Python 3 available:

./deploy/umbrel/build-native-bundle.sh .local/umbrel-native

The default target is linux/amd64, matching this Umbrel. For ARM hardware, set PLATFORM=linux/arm64. Images are built locally and exported into the bundle. The dark-background, colourful-logo PNG icon is embedded in the generated manifest, so displaying it does not require a public asset host. Generated images and deployment state are ignored by Git; source packaging files may remain in your private Tangled repository.

Copy and install #

From your computer:

ssh -t umbrel@server.long-shiner.ts.net 'mkdir -p ~/altitude-native'
scp -r .local/umbrel-native/. umbrel@server.long-shiner.ts.net:altitude-native/
ssh -t umbrel@server.long-shiner.ts.net

On Umbrel:

cd ~/altitude-native
sudo ./install-native.sh

The installer verifies the architecture and source directory, loads the images, starts the loopback registry, verifies image pulls, and copies only the altitude-private package into Umbrel's existing official-store source checkout. It installs through umbreld client apps.install.mutate. It does not change the official store's Git remote, tracked files, or other apps.

The default source checkout is /home/umbrel/umbrel/app-stores/getumbrel-umbrel-apps-github-53f74447. If yours differs, locate it under your Umbrel's app-stores directory and run:

sudo env STORE_PATH=/actual/official/store/checkout ./install-native.sh

This is Umbrel's developer sideload method, rather than adding a public community store. A store refresh can discard the source copy; the installed app keeps its separate package/data. Rerun the update installer to stage it again before an update. An install failure can leave a staged package; after inspecting apps.state and logs, use the documented update/recovery path rather than deleting app data.

Once Umbrel reports the app ready, refresh its dashboard. Open Altitude, sign in to Umbrel if asked, then create your Altitude account and workspace. The launch URL supports HTTP on port 8788. If you choose HTTPS instead, use a certificate trusted by your devices. Web access through the Umbrel dashboard is the default. The /api/* routes are whitelisted through Umbrel’s outer login gate so the desktop client can connect. These routes still use Altitude’s account authentication and rate limits; the browser UI remains behind Umbrel login. Enter http://server.long-shiner.ts.net:8788 in the desktop app. Existing native installations need the updated package applied with ./install-native.sh update before this works.

Check installation #

On Umbrel:

sudo umbreld client apps.state.query --appId altitude-private
sudo umbreld client apps.logs.query --appId altitude-private
sudo umbreld client apps.restart.mutate --appId altitude-private

Verify the dashboard logo, HTTP launch, account/workspace creation, saved tasks, and persistence after restarting through Umbrel. The package uses ${APP_DATA_DIR}/data/postgres and declares storage.dataRoot: data. A stable database password is derived from Umbrel's app seed; there are no committed credentials. The opt-in same-origin API mode compares the browser Origin with the preserved Host, supporting Umbrel hostnames, LAN IPs and Tailscale IPs without a wildcard CORS policy. Refresh cookies are HttpOnly and SameSite=Strict, with Secure disabled to support this private HTTP deployment. If you later require HTTPS exclusively, enable Secure cookies and requiresHttps together.

Updates and recovery #

The easiest update runs from the repository root on your development computer:

./umbrel-update

It targets umbrel@server.long-shiner.ts.net by default, builds the current checkout, uploads an isolated release, and runs the backup-aware updater on Umbrel. Use --bundle .local/umbrel-native to skip rebuilding, or --host user@host to change servers. The command retains the existing native database, credentials, browser port and HTTP/HTTPS cookie policy. It refuses overlapping updates and database major-version changes. See the main README for the full workflow.

Registry storage remains under ~/altitude-native/registry-data, even though each update is uploaded under ~/altitude-native/releases/<release>. Backups go to ~/altitude-native/backups/<timestamp>/. Each backup includes a PostgreSQL custom-format dump and the installed package/configuration, excluding the live data directory. App writers are stopped while the backup is made. A failed backup or image preparation resumes the previous containers; after the Umbrel update/migration is invoked, failures retain the backup and require inspection rather than an automatic database restore.

For a manual update, copy the new bundle into your existing ~/altitude-native directory without deleting registry-data/, then run sudo ./install-native.sh update. Current installers route that command through update-native.sh for the same backup and validation checks. If invoking update-native.sh from a separate release directory, set ALTITUDE_REGISTRY_DIR to the original absolute ~/altitude-native path so it reuses the existing registry and backup storage. Keep the app ready and its existing database running before starting an update.

If an update fails, use sudo umbreld client apps.state.query --appId altitude-private and sudo umbreld client apps.logs.query --appId altitude-private to inspect it. Before restoring anything, retain the current database and the printed recovery directory. Test database.dump in a separate empty PostgreSQL 17 database using pg_restore; do not import it over a populated live database. The updater does not delete an app-data directory to clear an error, and it does not automatically roll back database migrations.

Keep previous bundles and database backups for rollback. Selecting older images alone may not reverse a database migration. Registry data is not part of Altitude's Umbrel app-data backup; retain the native bundle so it can be rebuilt independently. Removing the native app through Umbrel does not remove this separately managed registry. Stop the registry only when no installs or updates need it.

For a logical database backup on Umbrel:

mkdir -p ~/altitude-backups
chmod 700 ~/altitude-backups
(umask 077; sudo docker exec altitude-private_db_1 pg_dump -U altitude -d altitude --no-owner --no-acl > ~/altitude-backups/altitude.sql)

Do not import a standalone backup into an already initialized database. If migrating from standalone hosting, use an empty target database and a separate, backed-up migration procedure; first-run password and Umbrel lifecycle ownership differ.

Verification boundary #

Local image builds, origin checks, registry push/pull, and container smoke checks can be performed without changing your Umbrel. Final dashboard rendering, Umbrel login and HTTP/HTTPS routing, and the actual umbreld install/update lifecycle must be verified on the device. Local Compose checks alone are not proof of a successful native Umbrel installation.

References: Umbrel packaging, developer sideload and verification, and Umbrel's image pull implementation.

Change the icon on an existing installation #

Copy the updated update-icon.sh and altitude-private/umbrel-app.yml from the bundle into their matching paths under ~/altitude-native on Umbrel. Then run:

cd ~/altitude-native
sudo ./update-icon.sh

This changes only the installed manifest's icon and restarts Altitude. It preserves the database, credentials, image references, version and other manifest fields. The original manifest is saved as umbrel-app.yml.before-icon. Refresh the Umbrel dashboard after the restart. New installations already use this icon.