Spring Cloud Spinnaker is a Spring Boot web application used to deploy all the parts of Spinnaker to a pre-selected space in PCF.
To run the app locally on your machine, you have to follow a few steps.
Requirements:
-
Either a Mac or Unix based system. (Building the Spinnaker components on Windows won’t work, and Cygwin has yet to be tested)
-
Java 8 SDK
-
git
-
8GB of RAM + 4GB of disk when running on CF
-
Run
./mvnw clean package
-
Run
cf push spinnaker-deployer -p target/spring-cloud-spinnaker-<version>.jar
Now you can point your browser at the deployment site of the Spinnaker Deployer, fill outs its settings, and install Spinnaker anywhere!
Visit https://cloud.spring.io/spring-cloud-spinnaker and navigate to the reference docs to use this app.
Snapshots are automatically published via Jenkins by effectively doing this…
$ USERNAME=<user> PASSWORD=<enc artifactory password> ./mvnw -Pdistribute,snapshot,docs clean deploy
Note
|
CI builds don’t sign artifacts with GPG |
To do a release (.RELEASE, .RC?, .M?):
-
Check in all changes and ensure there are no edited files.
-
Bump up the version in
pom.xml
to the desired version and commit the change. -
git tag <version>
(like v1.0.0.M1) -
Execute a maven deploy.
-
For a milestone:
USERNAME=<user> PASSWORD=<enc artifactory password> ./mvnw -Pdistribute,gpg,milestone,docs clean deploy
-
For a release:
USERNAME=<user> PASSWORD=<enc artifactory password> ./mvnw -Pdistribute,gpg,release,docs clean deploy
-
For a release to maven central:
USERNAME=<user> PASSWORD=<password> ./mvnw -Pdistribute,gpg,central,docs clean deploy -s settings.xml
-
-
Bump up the version in
pom.xml
again to the next BUILD-SNAPSHOT, and update application.yml as well for each uber JAR to BUILD-SNAPSHOT. -
Commit the change.
-
git push
-
Inspect handiwork at https://repo.spring.io/ or https://oss.sonatype.org/#stagingRepositories
Note
|
A word about reference documentation. Based upon this, the distribute profile contains an artifactory property that is applied to the ZIP file generated by the docs profile. A CRON job will scoop up the zipped up docs and unpack them inside the target location.
|