Quantcast
Channel: Rockstor Community Forum - Latest topics
Viewing all articles
Browse latest Browse all 1939

Add a "default_value" to the Environment Object of Rockon conf file

$
0
0

@aremiaskfa wrote:

So, the current Environment Object schema looks like this:

{
  "description": "<Detailed description. Eg: Login username for Syncthing UI>",
  "label": "Web-UI username",
  (optional)"index": <integer: 1 or above. order of this environment variable, if relevant>
}

And I propose the following schema:

{
  "description": "<Detailed description. Eg: Login username for Syncthing UI>",
  "label": "Web-UI username",
  (optional)"default_value": <string: arbitrary value. suggested default value of this environment variable, if relevant>
  (optional)"index": <integer: 1 or above. order of this environment variable, if relevant>
}

Why?
I am currently trying to add a new Rockon to the registry: https://github.com/mbentley/docker-omada-controller/tree/master#building-images

Here the author mentions some caveats when configuring.
For example: the ports in the Ports section must be the same as the ones in the Environment section.

If possible, I’d like to offer the end-user the default values, so that the user doesn’t need to get confused by the fact that port values need to be entered twice.

In this sshot, I have entered the values manually:
1674120763708%20-%20Copy

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1939