Skip to content

Commit 02436c9

Browse files
asanvaqzhijie-yang
andauthored
docs: migrate to v2 temporal-ui (#952)
* docs: migrate to v2 temporal-ui * docs: Apply suggestions from code review Co-authored-by: zhijie-yang <zhijie.yang@canonical.com> * docs: add server configuration information * docs: apply header suggestion Co-authored-by: zhijie-yang <zhijie.yang@canonical.com> * docs: update run_cmd * docs: fix run command based on displayed text * docs: fix error * docs: homogenize nomenclature * docs: apply suggestions from review Updated the documentation for the Temporal UI Docker parameters and run command. * docs: apply suggestion from review Co-authored-by: zhijie-yang <zhijie.yang@canonical.com> --------- Co-authored-by: zhijie-yang <zhijie.yang@canonical.com>
1 parent 4a29edd commit 02436c9

1 file changed

Lines changed: 42 additions & 32 deletions

File tree

oci/temporal-ui/documentation.yaml

Lines changed: 42 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,48 @@
1-
version: 1
2-
1+
version: 2
32
application: temporal-ui
43
description: >
5-
The Temporal UI provides a browser-based user interface for Temporal, allowing users to view Workflow Execution state, metadata, and debug their Temporal applications.
6-
7-
docker:
8-
parameters:
9-
- -p 8081:8081
10-
access: |
11-
### New entrypoint `pebble`
12-
13-
Please note that the entrypoint of the images in this repository is [Pebble](https://documentation.ubuntu.com/pebble/), a lightweight service manager. The pebble process launches and supervises the temporal ui server process.
4+
The Temporal UI provides a browser-based user interface for Temporal, allowing users to view Workflow Execution
5+
state, metadata, and debug their Temporal applications.
146
15-
#### Temporal UI Server Configuration
7+
## Temporal UI Server Configuration
168
17-
Temporal UI server must be provided with a configuration file to start up sucessfully. We do not include any default configurations in the image. Instead, we expect the user to either add a configuration file in the deployed container or mount a volume with the config file in the container.
9+
Temporal UI server must be provided with a configuration file to start up successfully. We do not include any default configurations in the image. Instead, we expect the user to either add a configuration file in the deployed container or mount a volume with the config file in the container.
1810
19-
Some development configuration files can be found in [the temporal ui repository](https://github.com/temporalio/ui/tree/main/server/config).
11+
Some development configuration files can be found in [the Temporal UI repository](https://github.com/temporalio/ui/tree/main/server/config).
12+
13+
website: https://github.com/temporalio/ui
14+
issues: https://github.com/canonical/temporal-rocks/issues
15+
source-code: https://github.com/canonical/temporal-rocks
2016

21-
The following outlines steps to mount the development configuration files while launching a container:
22-
23-
```sh
24-
$ git clone https://github.com/temporalio/ui
25-
26-
$ docker run -d --name temporal-ui-container -p 8081:8081 -v ./ui/server/config:/home/ui-server/config -e TEMPORAL_ROOT=/home/ui-server -e TEMPORAL_ENVIRONMENT=development ubuntu/temporal-ui:2.39.0-24.04_edge
27-
```
28-
29-
parameters:
30-
- type: -e
31-
value: 'TEMPORAL_ROOT=/home/ui-server'
32-
description: Root directory of execution environment
33-
- type: -e
34-
value: 'TEMPORAL_CONFIG_DIR=config'
35-
description: Config directory path relative to the root
36-
- type: -e
37-
value: 'TEMPORAL_ENVIRONMENT=development'
38-
description: Runtime environment
17+
docker:
18+
parameters: >-
19+
-d
20+
-p 8081:8081
21+
-v <path>:/home/ui-server/config
22+
-e TEMPORAL_ROOT=/home/ui-server
23+
-e TEMPORAL_ENVIRONMENT=production
24+
run_conclusion: |
25+
The Temporal UI is started by Pebble and serves the UI on port 8081.
26+
27+
To obtain a runnable configuration, refer to the [official repository](https://github.com/temporalio/ui).
28+
29+
30+
31+
config:
32+
TEMPORAL_ROOT:
33+
type: env
34+
description: Root directory of execution environment.
35+
TEMPORAL_CONFIG_DIR:
36+
type: env
37+
description: Config directory path relative to `TEMPORAL_ROOT`.
38+
TEMPORAL_ENVIRONMENT:
39+
type: env
40+
description: Runtime environment.
41+
'`-v <path>:/home/ui-server/config`':
42+
type: mount
43+
description: >-
44+
Temporal UI server configuration directory.
45+
Replace the target path if `TEMPORAL_ROOT` and `TEMPORAL_CONFIG_DIR` are set to different values from `/home/ui-server` and `config`.
46+
'`-p <port>:8081`':
47+
type: port
48+
description: Temporal UI is configurable to expose the web interface on localhost.

0 commit comments

Comments
 (0)