Hi Ivy Team, I would like to configure Administrators by using Environment variable, I can configure YAML:
Can I create Environment variables like following:
I use Environment variable because I'm running Axon.ivy Engine within Containerized environment, and Environment variable is the suitable way to store configuration. I could see the Global Variables, Security System face the same issue. Thank for your support. asked 17.06.2020 at 00:17 vinh_ |
The name of the administrator is part of the environment variable key: This installs an administrator with name admin and password admin.
This example installs an administrator with name vinh and password 1234
answered 17.06.2020 at 03:09 Alex Suter ♦♦ How about the global variables, I could see it has SPACE in the key: https://developer.axonivy.com/doc/8.0/engine-guide/configuration/files/app-yaml.html?highlight=global%20variables
(17.06.2020 at 03:37)
vinh_
Could be possible when you escape the key. But I'm not sure. It's quite hard to configure the hole ivy with environment variables. I don't recommend it. If you are in containerized environment like Kubernetes then you better use ConfigMap.
(17.06.2020 at 04:02)
Alex Suter ♦♦
I am using ConfigMaps, I want to separate those configurations into many ConfigMaps, then expose them as environment variables, the only alternative way I know is store the whole ivy.yaml inside a key/value of ConfigMap, I don't know if I could split ivy.yaml into smaller files?
(17.06.2020 at 05:56)
vinh_
I think it is possible with ConfigMap to split them in smaller files and merge them together "on-the-fly"? If not, then you may start a feature request for the Axon.ivy platform that you are able to split ivy.yaml in multiple files.
(18.06.2020 at 03:53)
Alex Suter ♦♦
Hi Alex, I think merging the ivy.yaml "on-the-fly" is possible, it will require some scripting work. Thank you for a good discussion.
(18.06.2020 at 20:55)
vinh_
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 17.06.2020 at 00:17
Seen: 2,394 times
Last updated: 18.06.2020 at 20:55
Hello vinh, you are spot on, an example of the environment variables is available in our docker examples: https://github.com/ivy-samples/docker-samples/tree/master/ivy-environment-variables
Thanks about the example. It clear for me.