Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/assets/autoshutdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/shutdown-api.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/shutdown_env.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions docs/deploy-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

Environment variables are used to configure the Helios container. The following environment variables are available:

| Name | Value | Required |
|-------------------|--------------------------------------------------------------------------------------------------------------------------------------|----------|
| USER | Name of the user | X |
| UID | POSIX compliant uid for the user | X |
| GID | POSIX compliant gid for the user | |
| PASSWORD | Password set for the user | |
| IDLE_TIME | Trigger the idle hook after x time | |
| DISABLE_VGL | Disable VirtualGL Wrapper around the entire desktop session. You will need to manually run applications that require it via `vglrun` | |
| DESKTOP_FILES | Paths separated by `:`. For example, `/some/path/1/*.desktop:/some/*/2/*.desktop` | |
| PREFIX | Prefix for URL for use behind a reverse proxy | |
| SELKIES_FRAMERATE | Set framerate as a range (e.g., `15-60`) or a fixed value (e.g., `30`) | |
| SUDO | Grant `SUDO` to the user on the container | |
| Name | Value | Required |
|-------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|
| USER | Name of the user | X |
| UID | POSIX compliant uid for the user | X |
| GID | POSIX compliant gid for the user | |
| PASSWORD | Password set for the user | |
| IDLE_TIME | Trigger the idle hook after x minutes (only required when the [auto shutdown plugin](https://github.com/juno-fx/Terra-Official-Plugins/tree/main/plugins/helios-auto-shutdown) is installed) | |
| DISABLE_VGL | Disable VirtualGL Wrapper around the entire desktop session. You will need to manually run applications that require it via `vglrun` | |
| DESKTOP_FILES | Paths separated by `:`. For example, `/some/path/1/*.desktop:/some/*/2/*.desktop` | |
| PREFIX | Prefix for URL for use behind a reverse proxy | |
| SELKIES_FRAMERATE | Set framerate as a range (e.g., `15-60`) or a fixed value (e.g., `30`) | |
| SUDO | Grant `SUDO` to the user on the container | |


When using the Orion Platform, you can configure them in the [Templates](https://juno-fx.github.io/Orion-Documentation/genesis/workstations/)
Expand Down
27 changes: 27 additions & 0 deletions docs/plugins-autoshutdown.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Auto shutdown plugin

Juno supplies an official [Terra](https://juno-fx.github.io/Orion-Documentation/latest/terra/intro/) plugin for automatically shutting down idle workstations after a configurable amount of time.

## Install the plugin

The [plugin](https://github.com/juno-fx/Terra-Official-Plugins/tree/main/plugins/helios-auto-shutdown) can be installed from the official Terra repository. The plugin itself requires no configuration other than which project to enable it in.

![shutdown plugin image](./assets/autoshutdown.png)

## Setup the workload

In order for the workstations to shutdown we need to configure two settings on the Helios workload.

### IDLE_TIME environment variable

On the Helios workload configuration screen you are given the option to add `env variables`. Add one with the name `IDLE_TIME` configured to the amount of **minutes** you would like to wait before an idle workstation is shutdown. For example set this to `60` to shutdown after an hour.

![environment setup](./assets/shutdown_env.png)

### Enable API access within the workstation

In order for the workstation to be gracefully shutdown we need to allow the workstation to access the shutdown API endpoint. This is handled automatically and securely, all you need to do is set the setting `enableAPI` to `True` in the workload configuration window.

![enableAPI setting](./assets/shutdown-api.png)

Thats it! Your idle workstations will now automatically shutdown as per your configured time.
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ nav:
- deploy-k8s.md
- Persistence:
- deploy-session.md
- Plugins:
- plugins-autoshutdown.md
- Building Workstations:
- getting-started.md
- Customization:
Expand Down