Date
1 - 4 of 4
JavaBuildpack versioned external configuration
Svetlin Zarev
Hello!
Does the JavaBuildpack supports versioned external configurations ? Imagine I have in my index.yml: 1.1.0: https://repository.example.org/config-1.1.0.tar.gz 1.0.0: https://repository.example.org/config-1.0.0.tar.gz And the following env variable: JBP_CONFIG_TOMCAT: "{ tomcat: { external_configuration_enabled: true }, external_configuration: { repository_root: \" https://repository.example.org/\" } }" Then is there a way to tell the buildpack to pick 1.0.0 or 1.1.0 ? Is there something like specifying { version: 1.0.0 } in the env variable ? Kind regards, Svetlin |
|
Violeta Georgieva <violetagg@...>
Hi,
2016-09-29 10:21 GMT+03:00 Svetlin Zarev <svetlin.angelov.zarev(a)gmail.com>: Imagine I have in my index.yml: external_configuration_enabled: true }, external_configuration: { repository_root: \" https://repository.example.org/\" } }" You should be able to do JBP_CONFIG_TOMCAT: "{ tomcat: { external_configuration_enabled: true }, external_configuration: { version: 1.1.0, repository_root: \" https://repository.example.org/\" } }" Hope this helps. Regards, Violeta there something like specifying { version: 1.0.0 } in the env variable ?
|
|
Ben Hale <bhale@...>
And the following env variable: JBP_CONFIG_TOMCAT: "{ tomcat: { external_configuration_enabled: true }, external_configuration: { repository_root: \" https://repository.example.org/\" } }"The environment variable configuration is a “flow” style[1] YAML representation of the configuration file[2] being configured. If you review the documentation for the Tomcat configuration[3], you’ll see that there is a `external_configuration.version` property to go along with the `external_configuration.repository_root` property. -V [1]: http://www.yaml.org/spec/1.2/spec.html#Flow [2]: https://github.com/cloudfoundry/java-buildpack/blob/master/config/tomcat.yml#L23 [3]: https://github.com/cloudfoundry/java-buildpack/blob/master/docs/container-tomcat.md#configuration |
|
Svetlin Zarev
Thanks!
|
|