You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Nathan Fretz 892ddb7777
Update home-assistant to version 2024.11.0 (#1755)
2 months ago
.github/workflows Update linter 3 months ago
adguard-home Update adguard-home to v0.107.54 (#1752) 2 months ago
affine Update affine to version 0.17.4 (#1658) 2 months ago
agora Add missing release notes keys (#1109) 7 months ago
alby-nostr-wallet-connect Remove periods from the end of taglines (#1120) 7 months ago
albyhub Update albyhub release notes 2 months ago
audiobookshelf Update audiobookshelf to version v2.16.2 (#1695) 2 months ago
autobrr Update autobrr to v1.49.0 (#1753) 2 months ago
back-that-mac-up Finalize Widgets for umbrelOS 1.0 (#1024) 9 months ago
baikal App Submission: Baikal (#1606) 2 months ago
bazarr Update bazarr to v1.4.5 (#1571) 3 months ago
bitcoin Update Bitcoin Node to v28.0 (#1709) 2 months ago
bitcoin-knots Update bitcoin-knots to v27.1.2 (#1666) 2 months ago
bitfeed Add missing release notes keys (#1109) 7 months ago
bleskomat-server Add missing release notes keys (#1109) 7 months ago
blockstream-blind-oracle Add missing release notes keys (#1109) 7 months ago
bluewallet Add missing release notes keys (#1109) 7 months ago
btc-rpc-explorer Update BTC RPC Explorer with RPC Terminal Functionality (#1319) 5 months ago
btcpay-server Update BTCPay Server to v2.0.1 (#1739) 2 months ago
budibase Update budibase to 3.0.4 (#1744) 2 months ago
calibre-web Update calibre-web to version 0.6.23 (#1300) 5 months ago
chatbot-ui Update chatbot-ui to 2023.04.20 (#646) 2 years ago
chatpad-ai Update Chatpad AI to commit bb5f4a (#1193) 6 months ago
circuitbreaker Update Circuitbreaker to v0.5.1 (#908) 1 year ago
cloudflared Update Cloudflare Tunnel to 2024.6.1 (web 1.0.2) (#1234) 5 months ago
code-server Update code-server to v4.95.1 (#1754) 2 months ago
core-lightning Update Core Lightning to v24.05 and RTL(CLN) to v0.15.2 (#1155) 6 months ago
core-lightning-rtl Update Core Lightning to v24.05 and RTL(CLN) to v0.15.2 (#1155) 6 months ago
databag Update databag to 0.1.17 (#1495) 3 months ago
datum Add Datum gallery assets 2 months ago
dockge App Submission: Dockge (#1106) 3 months ago
duplicati App Submission: Duplicati (#1179) 5 months ago
electrs Update electrs to v0.10.6 (#1711) 2 months ago
element Update element to v1.11.84 (#1745) 2 months ago
elements Update Elements to v23.2.1 (#905) 1 year ago
enclosed App Submission: Enclosed (#1563) 2 months ago
esphome Update esphome to 2024.10.2 (#1696) 2 months ago
file-browser Update file-browser to version v2.31.2 (#1595) 3 months ago
firefly-iii Update firefly-iii to v6.1.21 (#1557) 3 months ago
firefly-iii-importer Update firefly-iii-importer to v1.5.6 (#1471) 3 months ago
firefox Update firefox to 130.0.1-hotfix (#1553) 3 months ago
freshrss Update freshrss to version 1.24.3 (#1450) 4 months ago
frigate Update frigate to v0.14.1 (#1415) 4 months ago
fulcrum App Submission: Fulcrum (#1531) 2 months ago
ghostfolio Update ghostfolio to 2.121.1 (#1731) 2 months ago
gitea Update gitea to v1.22.3 (#1619) 3 months ago
gitlab Update GitLab to 17.5.1 (#1564) 2 months ago
heimdall Update heimdall to version v2.6.3 (#1746) 2 months ago
helipad Update Helipad to v0.2.0 (#1076) 8 months ago
home-assistant Update home-assistant to version 2024.11.0 (#1755) 2 months ago
home-assistant-fusion-ui Update home-assistant-fusion-ui to 2024.10.1 (#1632) 2 months ago
homebox Update homebox to 0.10.3 (#981) 10 months ago
homebridge Update homebridge to version 1.8.4-2024-10-09 (#1659) 2 months ago
immich Update immich to version v1.119.1 (#1719) 2 months ago
invidious Update invidious to 2.20240825.2 (#1428) 4 months ago
invoice-ninja Update invoice-ninja to v5.10.43 (#1699) 2 months ago
ipfs-podcasting Add missing release notes keys (#1109) 7 months ago
itchysats Make deprecated itchysats uninstallable on umbrelOS 0.5 2 months ago
jackett Update jackett to v0.22.862 (#1720) 2 months ago
jam Update Jam to v0.3.0 (#1572) 3 months ago
jellyfin Update jellyfin to v10.10.1 (#1732) 2 months ago
jellyseerr Update jellyseerr to version v2.0.1 (#1678) 2 months ago
just-download Update just-download to v1.0.9 (#1430) 4 months ago
kollider Update categories 2 years ago
krystal-bull Update categories 2 years ago
libreddit Add missing release notes keys (#1109) 7 months ago
libreoffice Update libreoffice to version 7.6.7 (#1345) 5 months ago
librespeed Update librespeed to 5.4.1 (#1335) 5 months ago
libretranslate Update libretranslate to v1.6.2 (#1721) 2 months ago
lidarr Update lidarr to version v2.7.1.4417 (#1701) 2 months ago
lightning Update LND to v0.18.3-beta (#1690) 2 months ago
lightning-shell Add missing release notes keys (#1109) 7 months ago
lightning-terminal Update lightning-terminal to v0.13.6-alpha (#1710) 2 months ago
linkstack App Submission: LinkStack (#1537) 2 months ago
llama-gpt Update LlamaGPT submission link 1 year ago
ln-visualizer App manifest fixes (#1081) 7 months ago
lnbits Update lnbits to version v0.12.12 (#1679) 2 months ago
lndboss disable lndboss and add deprecation notice 7 months ago
lndg Update LNDg to v1.9.0 (#1523) 3 months ago
lnmarkets Update LN Markets to v2.0.1 (#964) 10 months ago
lnplus Update categories 2 years ago
maybe Update maybe to v0.1.0-alpha.18 (#1602) 3 months ago
mealie Update mealie to version v2.1.0 (#1722) 2 months ago
memos Update memos to v0.22.5 (#1439) 4 months ago
mempool Update mempool to v3.0.1 (#1590) 3 months ago
metube Update metube to version 2024-10-02 (#1583) 3 months ago
minio Update minio to RELEASE.2024-10-29T16-01-48Z (#1723) 2 months ago
monero App Submission: Monero Node (#690) 6 months ago
morphos Update morphos to v0.6.0 (#1509) 3 months ago
myspeed App Submission: MySpeed (#1103) 7 months ago
n8n Update n8n to n8n@1.65.2 (#1733) 2 months ago
navidrome Update navidrome to version v0.53.3 (#1560) 3 months ago
nextcloud Update nextcloud to version v30.0.0 (#1547) 3 months ago
nginx-proxy-manager Update Nginx Proxy Manager to v2.12.1 (#1662) 2 months ago
nitter Update categories 2 years ago
node-red Update node-red to 4.0.5 (#1623) 3 months ago
node-red-standalone Update node-red-standalone to 4.0.5 (#1624) 3 months ago
nolooking Update categories 2 years ago
nostr-relay Finalize Widgets for umbrelOS 1.0 (#1024) 9 months ago
nostrudel Update noStrudel to v0.41.0 (#1506) 3 months ago
ntfy Convert environment variable booleans to strings for umbrelOS 0.5 compatibility (#1176) 6 months ago
nutstash-wallet Remove periods from the end of taglines (#1120) 7 months ago
oak-node Bump Oak Node to v0.3.8 (#780) 1 year ago
octoprint Update octoprint to 1.10.3 (#1747) 2 months ago
onlyoffice-nextcloud Update onlyoffice-nextcloud to version v8.2.0 (#1683) 2 months ago
ordinals Update ordinals to version v0.20.0 (#1459) 4 months ago
overseerr Update Overseer to 1.33.2 (#1077) 8 months ago
paperless Update paperless to v2.13.4 (#1734) 2 months ago
passky-client Add missing release notes keys (#1109) 7 months ago
passky-server Update passky-server to version v8.1.8 (#1748) 2 months ago
peerswap Update to v1.6.9 (#1484) 3 months ago
penpot Update penpot to version 2.2.0 (#1636) 2 months ago
photoprism Update photoprism to 240915-e1280b2fb (#1478) 3 months ago
pi-hole Update pihole repo to docker-pi-hole 3 months ago
pingvin-share App Submission: Pingvin Share (#1229) 3 months ago
plausible Update plausible to v2.1.4 (#1625) 3 months ago
plex Update plex to version 1.41.0.8994 (#1562) 3 months ago
pocketbase Update pocketbase to v0.22.23 (#1735) 2 months ago
portainer Update portainer to 2.21.4 (#1704) 2 months ago
prowlarr Update prowlarr to version v1.25.4.4818 (#1685) 2 months ago
public-pool Update Public Pool - Bitcoin Core v28 compatibility (#1726) 2 months ago
qbittorrent Update qbittorrent to 5.0.0 (#1584) 3 months ago
radarr Update radarr to v5.14.0.9383 (#1705) 2 months ago
readarr Update readarr to version 0.4.0.2634 (#1585) 3 months ago
remmina Update remmina to 1.4.35 (#1586) 3 months ago
ride-the-lightning Update Ride the Lightning to v0.15.2 (#1156) 6 months ago
robosats Bump RoboSats to v0.7.1-alpha (#1729) 2 months ago
rotki Update rotki to v1.35.1 (#1686) 2 months ago
sabnzbd Update sabnzbd to version 4.3.3 (#1394) 4 months ago
saifa App Submission: Saifa (#1021) 7 months ago
samba Update samba to version v4.20.5 (#1724) 2 months ago
samourai-server Update categories 2 years ago
satsale Add missing release notes keys (#1109) 7 months ago
seafile Update seafile to version 11.0.12 (#1403) 4 months ago
simple-torrent Update categories 2 years ago
snapdrop Update snapdrop to version f88d46ed (#1427) 4 months ago
snort Update Snort to v0.2.1 (#1182) 6 months ago
snowflake Update snowflake to v2.7.0 (#849) 1 year ago
sonarr Update sonarr to v4.0.10.2544 (#1706) 2 months ago
sparkkiosk Add missing release notes keys (#1109) 7 months ago
specter-desktop Remove Specter Desktop from app store (#1743) 2 months ago
sphinx-relay Update sphinx-relay to v2.5.2 (#1548) 3 months ago
squeaknode Add missing release notes keys (#1109) 7 months ago
squeakroad Update categories 2 years ago
stirling-pdf Update stirling-pdf to v0.31.1 (#1736) 2 months ago
suredbits-wallet Update categories 2 years ago
synapse Update synapse v1.55.0 (#1357) 4 months ago
syncthing Update syncthing to v1.28.0 (#1654) 2 months ago
tailscale Update tailscale to version v1.76.1 (#1688) 2 months ago
tallycoin-connect Remove periods from the end of taglines (#1120) 7 months ago
tautulli Update tautulli to v2.14.6 (#1638) 2 months ago
tdex TDEX Provider hotfix (#1740) 2 months ago
teamspeak temporarily disable TeamSpeak 6 months ago
technitium-dns Update technitium-dns to version 13.0.2 (#1587) 3 months ago
thunderhub Update Thunderhub to v0.13.31 (#1102) 7 months ago
torq Tweak torq release notes formatting 4 months ago
transmission Update Transmission to 4.0.6 (#1240) 5 months ago
trilium-notes Update trilium-notes to version v0.63.7 (#1285) 5 months ago
umami Update umami to version v2.13.2 (#1423) 4 months ago
uptime-kuma Update uptime-kuma to version 1.23.15 (#1556) 3 months ago
urbit Update Urbit to 3.1 (#1355) 5 months ago
urbit-bitcoin-connector Add missing release notes keys (#1109) 7 months ago
usocial Add missing release notes keys (#1109) 7 months ago
vaultwarden Update vaultwarden to 1.32.3 (#1707) 2 months ago
vikunja Update vikunja to version 0.24.4 (#1588) 3 months ago
watch-your-lan Update watch-your-lan to version 2.0.4 (#1689) 2 months ago
whoogle-search Update whoogle-search to v0.9.1 (#1737) 2 months ago
wikijs Update wikijs to version v2.5.305 (#1639) 2 months ago
wireguard Update wireguard to version 14 (#1351) 5 months ago
woofbot Update WoofBot to v0.9.8 (#773) 1 year ago
woofbot-lnd Update WoofBot to v0.9.8 (#773) 1 year ago
yucca Update Yucca tagline and description 5 months ago
zabbix Update zabbix to 7.0.4 (#1660) 2 months ago
README.md Update README with up-to-date app testing instructions 2 months ago

README.md

Umbrel App Framework

🚨 This is the current workflow for developing and testing an app on umbrelOS 1.x. The app framework is under active development and this workflow will change in the future. For testing on umbrelOS 0.5.4, please refer to the previous version of this document.

If you can code in any language, you already know how to develop an app for Umbrel. There is no restriction on the kinds of programming languages, frameworks, or databases that you can use. Apps run inside isolated Docker containers, and the only requirement (for now) is that they should have a web-based UI.

Some server apps might not have a UI at all. In that case, the app should serve a simple web page listing the connection details, QR codes, setup instructions, and anything else needed for the user to connect. The user is never expected to have CLI access on Umbrel.

To keep this document short and easy, we won't go into the app development itself, and will instead focus on packaging and testing an existing app.

Let's jump into action by packaging BTC RPC Explorer, a Node.js based blockchain explorer, for Umbrel.

There are 4 steps:

  1. 🛳 Containerizing the app using Docker
  2. ☂️ Packaging the app for umbrelOS
  3. 🛠 Testing the app on umbrelOS
    1. Test using an umbrelOS development environment on your local machine
    2. Test using umbrelOS running on a physical device
  4. 🚀 Submitting the app

1. 🛳  Containerizing the app using Docker

1. Let's start by cloning BTC RPC Explorer on our system:

git clone --branch v2.0.2 https://github.com/janoside/btc-rpc-explorer.git
cd  btc-rpc-explorer

2. Next, we'll create a Dockerfile in the app's directory:

FROM node:12-buster-slim AS builder

WORKDIR /build
COPY . .
RUN apt-get update
RUN apt-get install -y git python3 build-essential
RUN npm ci --production

FROM node:12-buster-slim

USER 1000
WORKDIR /build
COPY --from=builder /build .
EXPOSE 3002
CMD ["npm", "start"]

A good Dockerfile:

  • Uses a lightweight base image - this results in less storage consumption and faster app installs.
  • Uses multi-stage builds for smaller image size.
  • Excludes development files in the final image.
  • Has only one service per container.
  • Doesn't run the service as root.
  • Uses remote assets that are verified against a checksum.
  • Results in deterministic image builds.

3. We're now ready to build the Docker image of BTC RPC Explorer. Umbrel supports both 64-bit ARM and x86 architectures, so we'll use docker buildx to build, tag, and push multi-architecture Docker images of our app to Docker Hub. This way, the same app can be installed on both ARM and x86 devices.

docker buildx build --platform linux/arm64,linux/amd64 --tag getumbrel/btc-rpc-explorer:v2.0.2 --output "type=registry" .

You need to enable "experimental features" in Docker to use docker buildx.


2. ☂️  Packaging the app for umbrelOS

1. Let's fork the getumbrel/umbrel-apps repo on GitHub, clone our fork locally, create a new branch for our app, and then switch to it:

git clone https://github.com/<YOUR-GITHUB-USERNAME>/umbrel-apps.git
cd umbrel-apps

2. It's now time to pick an ID for our app. An app ID should only contain lowercase alphabetical characters and dashes, and should be human readable and recognizable. For this app we'll go with btc-rpc-explorer.

We need to create a new subdirectory in the apps directory with the same name as our app ID and move into it:

mkdir btc-rpc-explorer
cd btc-rpc-explorer

3. Within the app's directory, we'll now create the skeleton for our app with the following files:

  • docker-compose.yml - Used to start and stop your app's Docker containers
  • umbrel-app.yml - An app manifest file so that Umbrel knows the name and version of the app
  • exports.sh - A shell script to export environment variables used within docker-compose.yml and share with other installed apps

We'll now create a docker-compose.yml file in this directory to define our application.

New to Docker Compose? It's a simple tool for defining and running Docker applications that can have multiple containers. Follow along with the tutorial, we promise it's not hard if you already understand the basics of Docker.

Let's copy-paste the following docker-compose.yml template into a text editor and modify it according to our app.

version: "3.7"

services:
  app_proxy:
    environment:
      # <app-id>_<web-container-name>_1
      # e.g. 'btc-rpc-explorer_web_1'
      # Note that the '_1' at the end is needed
      APP_HOST: <web-container-dns-name>
      APP_PORT: <web-container-port-number>
  
  web:
    image: <docker-image>:<tag>@sha256:<digest>
    restart: on-failure
    stop_grace_period: 1m
    ports:
      # You do not need to expose the port that your app's web server is listening on if you're using the app_proxy service.
      # This is handled by the APP_HOST and APP_PORT environment variables in the service above.
      #
      # If you need to expose additional ports, you can do so like this, replacing <port> with the port number:
      - <port>:<port>
    volumes:
      # Uncomment to mount your data directories inside
      # the Docker container for storing persistent data
      # - ${APP_DATA_DIR}/foo:/foo
      # - ${APP_DATA_DIR}/bar:/bar
      #
      # Uncomment to mount LND's data directory as read-only
      # inside the Docker container at path /lnd
      # - ${APP_LIGHTNING_NODE_DATA_DIR}:/lnd:ro
      #
      # Uncomment to mount Bitcoin Core's data directory as
      # read-only inside the Docker container at path /bitcoin
      # - ${APP_BITCOIN_DATA_DIR}:/bitcoin:ro
    environment:
      # Pass any environment variables to your app for configuration in the form:
      # VARIABLE_NAME: value
      #
      # Here are all the Umbrel provided variables that you can pass through to
      # your app
      # System level environment variables
      # $DEVICE_HOSTNAME - Umbrel server device hostname (e.g. "umbrel")
      # $DEVICE_DOMAIN_NAME - A .local domain name for the Umbrel server (e.g. "umbrel.local")
      #
      # Tor proxy environment variables
      # $TOR_PROXY_IP - Local IP of Tor proxy
      # $TOR_PROXY_PORT - Port of Tor proxy
      #
      # App specific environment variables
      # $APP_HIDDEN_SERVICE - The address of the Tor hidden service your app will be exposed at
      # $APP_PASSWORD - Unique plain text password that can be used for authentication in your app, shown to the user in the Umbrel UI
      # $APP_SEED - Unique 256 bit long hex string (128 bits of entropy) deterministically derived from user's Umbrel seed and your app's ID
  # If your app has more services, like a database container, you can define those
  # services below:
  # db:
  #   image: <docker-image>:<tag>@sha256:<digest>
  #   ...

Our app manifest YAML file tells Umbrel details about our app such as the name, description, dependencies, port number to access the app, etc.

There are currently two manifest versions: 1 and 1.1. Version 1 is the basic version and is sufficient for most apps. However, if your app requires the use of hooks (scripts that are run at different stages of the app lifecycle), you need to use version 1.1. Hooks allow you to perform custom actions at different stages of the app's lifecycle, such as before the app starts (pre-start), after the app installs (post-install), and more. If your app doesn't need to use hooks, you can stick with manifest version 1.

manifestVersion: 1
id: btc-rpc-explorer
category: finance
name: BTC RPC Explorer
version: "3.3.0"
tagline: Simple, database-free blockchain explorer
description: >-
  BTC RPC Explorer is a full-featured, self-hosted explorer for the
  Bitcoin blockchain. With this explorer, you can explore not just the
  blockchain database, but also explore the functional capabilities of your
  Umbrel.

  It comes with a network summary dashboard, detailed view of blocks, transactions, addresses, along with analysis tools for viewing stats on miner activity, mempool summary, with fee, size, and age breakdowns. You can also search by transaction ID, block hash/height, and addresses.

  It's time to appreciate the "fullness" of your node.  
releaseNotes: >-
  Dark mode is finally here! Easily switch between your preferred mode
  in one click.

  This version also includes lots of minor styling improvements, better
  error handling, and several bugfixes.  
developer: Dan Janosik
website: https://explorer.btc21.org
dependencies:
  - bitcoin
  - electrs
repo: https://github.com/janoside/btc-rpc-explorer
support: https://github.com/janoside/btc-rpc-explorer/discussions
port: 3002
gallery:
  - 1.jpg
  - 2.jpg
  - 3.jpg
path: ""
defaultUsername: ""
defaultPassword: ""
submitter: Umbrel
submission: https://github.com/getumbrel/umbrel/pull/334

The dependencies section within the app manifest gives Umbrel a list of app IDs that must be already installed in order for the user to install BTC RPC Explorer and also function.

The exports.sh shell script is a simple script to export environmental variables that your docker-compose.yml can read. These environment variables are also accessible when other apps start through their docker-compose.yml files. Most applications will not require this feature.

If we (for example) wanted to share BTC RPC Explorer's Address API with other apps; that would look like this:

export APP_BTC_RPC_EXPLORER_ADDRESS_API="electrumx"

4. For our app, we'll update <docker-image> with getumbrel/btc-rpc-explorer, <tag> with v2.0.2, <digest> with f8ba8b97e550f65e5bc935d7516cce7172910e9009f3154a434c7baf55e82a2b, and <port> with 3002. Since BTC RPC Explorer doesn't need to store any persistent data and doesn't require access to Bitcoin Core's or LND's data directories, we can remove the entire volumes block.

The digest is a unique, immutable identifier for the Docker image. This will supersede the tag in the docker-compose.yml file. The reason we want to pull an image by its digest, is that we are guaranteed to get the exact same image every time, and this image will be the same image that was tested and verified to work on umbrelOS. It is important to make sure that this digest is the multi-architecture digest, and not the digest for a specific architecture.

BTC RPC Explorer is an application with a single Docker container, so we don't need to define any other additional services (like a database service, etc) in the compose file.

If BTC RPC Explorer needed to persist some data we would have created a new data directory next to the docker-compose.yml file. We'd then mount the volume - ${APP_DATA_DIR}/data:/data in the docker-compose.yml to make the directory available at /data inside the container.

Updated docker-compose.yml file:

version: "3.7"

services:
  app_proxy:
    environment:
      APP_HOST: btc-rpc-explorer_web_1
      APP_PORT: 8080

  web:
    image: getumbrel/btc-rpc-explorer:v2.0.2@sha256:f8ba8b97e550f65e5bc935d7516cce7172910e9009f3154a434c7baf55e82a2b
    restart: on-failure
    stop_grace_period: 1m
    environment:
      BTCEXP_PORT: 8080

5. Next, let's set the environment variables required by our app to connect to Bitcoin Core, Electrum server, and for app-related configuration (as required by the app).

So the final version of docker-compose.yml would be:

version: "3.7"

services:
  app_proxy:
    environment:
      APP_HOST: btc-rpc-explorer_web_1
      APP_PORT: 8080
      
  web:
    image: getumbrel/btc-rpc-explorer:v2.0.2
    restart: on-failure
    stop_grace_period: 1m
    environment:
      PORT: 8080

      # Bitcoin Core connection details
      BTCEXP_BITCOIND_HOST: $APP_BITCOIN_NODE_IP
      BTCEXP_BITCOIND_PORT: $APP_BITCOIN_RPC_PORT
      BTCEXP_BITCOIND_USER: $APP_BITCOIN_RPC_USER
      BTCEXP_BITCOIND_PASS: $APP_BITCOIN_RPC_PASS

      # Electrum connection details
      BTCEXP_ELECTRUMX_SERVERS: "tcp://$APP_ELECTRS_NODE_IP:$APP_ELECTRS_NODE_PORT"

      # App Config
      BTCEXP_HOST: 0.0.0.0
      DEBUG: "btcexp:*,electrumClient"
      BTCEXP_ADDRESS_API: electrumx
      BTCEXP_SLOW_DEVICE_MODE: "true"
      BTCEXP_NO_INMEMORY_RPC_CACHE: "true"
      BTCEXP_PRIVACY_MODE: "true"
      BTCEXP_NO_RATES: "true"
      BTCEXP_RPC_ALLOWALL: "false"
      BTCEXP_BASIC_AUTH_PASSWORD: ""  

6. We're pretty much done here. The next step is to commit the changes, push it to our fork's branch, and test out the app on Umbrel.

git add .
git commit -m "Add BTC RPC Explorer"
git push

3. 🛠  Testing the app on umbrelOS

🚨 This is the current workflow for testing an app on umbrelOS 1.x. The app framework is under active development and this workflow will change in the future. For testing on umbrelOS 0.5.4, please refer to the previous version of this document.

3.1 Test using an umbrelOS development environment on your local machine

The umbrelOS development environment (umbrel-dev) requires a Docker environment that exposes container IPs to the host. This is how Docker natively works on Linux and can be done with OrbStack on macOS and WSL 2 on Windows.

1. Install OrbStack on macOS or WSL 2 with Docker Desktop on Windows.

2. Clone the getumbrel/umbrel repo.

From the root of the cloned repo, run the following command to view the available umbrel-dev commands:

npm run dev help

To start the development environment, run the following command:

npm run dev

[!NOTE] If this is your first time running the development environment, it may take a while to build the OS image locally on your machine.

Once initialized, umbrelOS will be accessible at http://umbrel-dev.local.

3. Copy the app's directory (with any .gitkeep files excluded) to the app-store directory on umbrel-dev.

To do this, we run the following command on our local machine:

rsync -av --exclude=".gitkeep" <path-to-your-forked-repo-on-local-machine>/btc-rpc-explorer umbrel@umbrel-dev.local:/home/umbrel/umbrel/app-stores/getumbrel-umbrel-apps-github-53f74447/

If you are asked for a password during the transfer, use the password that you set when you created your umbrelOS account.

4. Install the app.

From the umbrelOS homescreen, go to the App Store and navigate to BTC RPC Explorer. Click on the "Install" button and wait for the app to install.

You can also install the app from the command line. umbrelOS provides a web terminal that can be accessed via Settings > Advanced Settings > Terminal > umbrelOS, or you can use the umbrel-dev scripts to install the app using the umbreld RPC server:

npm run dev client -- apps.install.mutate -- --appId btc-rpc-explorer

That's it! Our BTC RPC Explorer app should now be accessible at http://umbrel-dev.local:3002

To uninstall the app, you can right-click on the app's icon on your homescreen and click on the "Uninstall" button. You can also uninstall the app using the umbrel-dev scripts:

npm run dev client -- apps.uninstall.mutate -- --appId btc-rpc-explorer

[!WARNING] When testing your app, make sure to verify that any application state that needs to be persisted is in-fact being persisted in volumes.

A good way to test this is to restart the app (right-click on the app's icon on your homescreen and click on the "Restart" button). If any state is lost, it means that state should be mapped to a persistent volume.

When stopping/starting the app, all data in volumes will be persisted and anything else will be discarded. When uninstalling/installing an app, even persistent data will be discarded.

3.2 Test using umbrelOS running on a physical device

You can get up and running with umbrelOS in a few different ways:

  1. Install umbrelOS on a Raspberry Pi 5
  2. Install umbrelOS on any x86 system
  3. Install umbrelOS in a VM
  4. Purchase an Umbrel Home device

Regardless of the method you choose, once you have umbrelOS up and running and have visited http://umbrel.local and created an account, you can follow the steps below to test your app.

1. Copy the app's directory (with any .gitkeep files excluded) to the app-store directory on your umbrelOS device.

To do this, we run the following command on our local machine:

rsync -av --exclude=".gitkeep" <path-to-your-forked-repo-on-local-machine>/btc-rpc-explorer umbrel@umbrel.local:/home/umbrel/umbrel/app-stores/getumbrel-umbrel-apps-github-53f74447/

If you are asked for a password during the transfer, use the password that you set for your umbrelOS device when you created your account.

2. Install the app on your umbrelOS device:

From your umbrelOS homescreen, go to the App Store and navigate to BTC RPC Explorer. Click on the "Install" button and wait for the app to install.

You can also install the app from the command line. umbrelOS provides a web terminal that can be accessed via Settings > Advanced Settings > Terminal > umbrelOS, or you can SSH into the device from your local machine via ssh umbrel@umbrel.local and use the same password you set for your umbrelOS device when you created your account.

umbreld client apps.install.mutate --appId btc-rpc-explorer

That's it! The app should now be accessible at http://umbrel.local:3002

To uninstall the app, you can right-click on the app's icon on your homescreen and click on the "Uninstall" button. You can also uninstall the app from the command line with:

umbreld client apps.uninstall.mutate --appId btc-rpc-explorer

[!WARNING] When testing your app, make sure to verify that any application state that needs to be persisted is in-fact being persisted in volumes.

A good way to test this is to restart the app (right-click on the app's icon on your homescreen and click on the "Restart" button). If any state is lost, it means that state should be mapped to a persistent volume.

When stopping/starting the app, all data in volumes will be persisted and anything else will be discarded. When uninstalling/installing an app, even persistent data will be discarded.


4. 🚀  Submitting the app

We're now ready to open a pull request on the main getumbrel/umbrel-apps apps repo to submit our app. Let's copy-paste the following markdown for the pull request description, fill it up with the required details, and then open a pull request.

# App Submission

### App name
...

### 256x256 SVG icon
_(Submit an icon with no rounded corners as it will be dynamically rounded with CSS. GitHub doesn't allow uploading SVGs directly, so please upload your icon to an alternate service, like https://svgur.com, and paste the link below.)_
_We will help finalize this icon before the app goes live in the Umbrel App Store._

...

### Gallery images
_(Upload 3 to 5 high-quality gallery images (1440x900px) of your app in PNG format, or just upload 3 to 5 screenshots of your app and we'll help you design the gallery images.)_
_We will help finalize these images before the app goes live in the Umbrel App Store._
...


### I have tested my app on:
- [ ] umbrelOS on a Raspberry Pi
- [ ] umbrelOS on an Umbrel Home
- [ ] umbrelOS on Linux VM

This is where the above information is used when the app goes live in the Umbrel App Store:

image

After you've submitted your app, we'll review your pull request, make some adjustments in the docker-compose.yml file, such as removing any port conflicts with other apps, pinning Docker images to their sha256 digests, assigning unique IP addresses to the containers, etc before merging.

🎉 Congratulations! That's all you need to do to package, test, and submit your app to Umbrel. We can't wait to have you onboard!


Advanced configuration

App Proxy

The Umbrel App Proxy automatically protects an app by requiring the user to enter their Umbrel password (either when they login into the main Web UI or by visiting an app directly e.g. http://umbrel.local:3002)

Disable

There could be cases where you wish to disable this authentication. That can be done by adding this env. var. to the app_proxy Docker Compose service:

PROXY_AUTH_ADD: "false"
Whitelist/blacklist

Some apps host a user facing at the root of their web application and then an API at e.g. /api. And in this case we would like / to be protected by Umbrel and /api protected by the apps existing/inbuilt API token system. This can be achieved by adding this env. var. to the app_proxy Docker Compose service:

PROXY_AUTH_WHITELIST: "/api/*"

Another example could be that the root of the web application (/) should be publically accessible but the admin section be protected by Umbrel. This can be achieved by adding these env. vars. to the app_proxy Docker Compose service:

PROXY_AUTH_WHITELIST: "*"
PROXY_AUTH_BLACKLIST: "/admin/*"

FAQs

  1. How do I push app updates?

    Every time you release a new version of your app, you should build, tag, and push the new Docker images to Docker Hub. Then open a new PR on our main app repo (getumbrel/umbrel-apps) with your up-to-date docker image, and updated version and releaseNotes in your app's umbrel-app.yml file.

  2. I need help with something else

    You can open an issue on GitHub or get in touch with @mayankchhabra, @lukechilds, or @nmfretz on Telegram.