Sign inSign up

pasinduakalpa/dynamicus

By pasinduakalpa

•Updated over 2 years ago

A simple rust based Tauri dynamic update server

Image
Integration & delivery
1

357

pasinduakalpa/dynamicus repository overview

⁠Quick reference

⁠Quick reference (cont.)

⁠What is Tauri Dynamic Update Server?

Tauri Dynamic Update Server⁠ is a minimalistic server that can be used to serve updates to Tauri applications dynamically. This server image is ~137MB in size and is based on the debian:bookworm-slim⁠ image.

⁠How to use this image

⁠start a tauri dynamic server instance

$ docker run --name dynamic-update-server -p 8000:8000 -e github_token=mygithubtoken -e github_repo_owner=mygithubusername -e github_repo_name=mytauriappreponame -d pasinduakalpa/dynamicus:latest

⁠... via docker-compose or docker stack deploy

Example docker-compose.yml for tauri-dynamic-update-server:

version: '3.9'

services:
  api:
    image: pasinduakalpa/dynamicus:latest
    container_name: dynamic-update-server
    restart: always
    ports:
      - '8000:8000'
    environment:
      github_token: mygithubtoken
      github_repo_owner: mygithubusername
      github_repo_name: mytauriappreponame

Run docker stack deploy -c stack.yml dynamic-update-server (or docker-compose -f stack.yml up), wait for it to initialize completely, and visit http://swarm-ip:8000, http://localhost:8000, or http://host-ip:8000 (as appropriate).

⁠How to extend this image

There are many ways to extend the tauri update server image. Without trying to support every possible use case, here are just a few that we have found useful.

⁠Environment Variables

The Tauri Update Server image uses several environment variables which are easy to miss. There are few variables required to run server they are github_token, github_repo_owner, github_repo_name, the rest are optional.

⁠github_token

This is the github token that is used to authenticate with the github api. This is a required field.

⁠github_repo_owner

This is the owner of the github repository that the tauri app is hosted in. This is a required field.

⁠github_repo_name

This is the name of the github repository that the tauri app is hosted in. This is a required field.

⁠github_api_url

This is the url of the github api. This is an optional field. The default value is https://api.github.com.

⁠home_redirect_url

This is the url that the server will redirect to when the user visits the root of the server. This is an optional field. The default value is https://github.com/pAkalpa.

Tag summary

Content type

Image

Digest

sha256:312a378b6…

Size

49.3 MB

Last updated

over 2 years ago

docker pull pasinduakalpa/dynamicus