Re: manifest files and the Java client
Scott Frederick <scottyfred@...>
Azad,
You are correct, the Java client does not support creating an application based on the data in manifest.yml. With the cf CLI and manifest.yml, you specify the host(s) (i.e. subdomain) and domain(s) separately, and these are combined into one ore more routes. So with a host of "myapp" and a domain of "apps.mycf.org", the full route would be "myapp.apps.mycf.org". With the Java client, each route (host + domain) is provided in absolute form in the "List<String> uris" parameter of the "createApplication()" method. To match the CLI example, you would specify one "uri" String with the value "myapp.apps.mycf.org". The domain part of the uri must be a valid domain in your CF deployment (you can see the list with "cf domains"). The best sample code for the Java client is the Maven and Gradle plugins there are in the same GitHub repository. The Maven plugin is here: https://github.com/cloudfoundry/cf-java-client/tree/master/cloudfoundry-maven-plugin . The code in the Maven plugin that creates an application, uploads the bits, and waits for the app to start is here: https://github.com/cloudfoundry/cf-java-client/blob/master/cloudfoundry-maven-plugin/src/main/java/org/cloudfoundry/maven/AbstractPush.java Scott On Fri, Jun 19, 2015 at 12:05 PM, Bolour, Azad (GE Global Research, consultant) <Azad.Bolour(a)ge.com> wrote: Hi, |
|