Redirect Spring cli distribution bundle

This commit adds the '/spring' endpoint that is used to download the
Spring CLI distribution bundle. Instead of relying on the presence of
a local 'spring.zip' file uploaded as part of the application, a
redirect to a configurable repository is used.

It is possible to download both the zip and the tar.gz distribution
by specifying the extension in the url (i.e. /spring.tar.gz provides
the tar.gz distribution.

Fixes gh-31
This commit is contained in:
Stephane Nicoll
2014-08-19 16:25:42 +02:00
parent 97df5393e9
commit 95441ef19c
11 changed files with 174 additions and 30 deletions

View File

@@ -71,14 +71,12 @@ An example Cloud Foundry `manifest.yml` file is provided. You should ensure that
the application name and URL (name and host values) are suitable for your environment
before running `cf push`.
You can jar up the app and make it executable in any environment. Care is needed with the includes and excludes:
You can jar up the app and make it executable in any environment.
$ spring jar start.jar app.groovy
$ version=1.1.5.RELEASE
$ wget -O spring.zip https://repo.spring.io/org/springframework/boot/spring-boot-cli/${version}/spring-boot-cli-${version}-bin.zip
$ spring jar --include '+spring.zip' start.jar app.groovy
To deploy on Cloudfoundry:
$ cf push start -p start.jar -n start-<space>
Where `<space>` is the name of the space. As a failsafe, and a