Update README with docker dev workflow

This commit is contained in:
2025-07-13 19:36:33 -06:00
parent 1793504467
commit 20ec64cf1c
+10
View File
@@ -1,10 +1,12 @@
# GUI Development # GUI Development
## Running Desktop ## Running Desktop
1. `cargo install dioxus-cli --version 0.6.3` 1. `cargo install dioxus-cli --version 0.6.3`
2. `dx run -p mumble-web2-gui --platform desktop --release` 2. `dx run -p mumble-web2-gui --platform desktop --release`
## Running Web ## Running Web
1. `cargo install dioxus-cli --version 0.6.3` 1. `cargo install dioxus-cli --version 0.6.3`
2. `dx build -p mumble-web2-gui --platform web --release` 2. `dx build -p mumble-web2-gui --platform web --release`
3. `cp config.toml.example config.toml` 3. `cp config.toml.example config.toml`
@@ -12,6 +14,7 @@
5. connect to `localhost:8080` 5. connect to `localhost:8080`
## Running Web (with `dx serve`) ## Running Web (with `dx serve`)
1. `cargo install dioxus-cli --version 0.6.3` 1. `cargo install dioxus-cli --version 0.6.3`
2. `cp config.toml.example config.toml` 2. `cp config.toml.example config.toml`
3. `cargo run -p mumble-web2-proxy` in the background 3. `cargo run -p mumble-web2-proxy` in the background
@@ -19,3 +22,10 @@
5. `export 'MUMBLE_WEB2_GUI_CONFIG={"cert_hash": <CERTIFICATE HASH HERE>, "proxy_url": "https://localhost:4433"}'` 5. `export 'MUMBLE_WEB2_GUI_CONFIG={"cert_hash": <CERTIFICATE HASH HERE>, "proxy_url": "https://localhost:4433"}'`
6. `dx serve -p mumble-web2-gui --platform web` 6. `dx serve -p mumble-web2-gui --platform web`
7. connect to `localhost:8080` 7. connect to `localhost:8080`
## Running the dev stack with a docker based proxy
1. cd docker && sudo docker compose up -d
2. MUMBLE_WEB2_GUI_CONFIG_URL="<https://localhost:64444/config>" dx serve -p mumble-web2-gui --platform web
3. connect to <https://localhost:64444>
4. fill in the proxy url as <https://127.0.0.1:4433/proxy> (this should autofill but is currently broken)