Commit Graph

33 Commits

Author SHA1 Message Date
Dave Syer
7e31e9b36c Convert thread to an actual application
User can now use spring boot CLI as before or alternatively just
java -jar the deployer app.
2016-12-15 14:44:00 +00:00
Dave Syer
e3a0dc8395 Add javaOpts 2016-12-09 09:26:56 +00:00
Dave Syer
36f91edcae The format of the JAVA_OPTS changed in the deployer 1.1 2016-12-02 14:52:43 +00:00
Dave Syer
8aa3b6b302 The format of the JAVA_OPTS changed in the deployer 1.1 2016-12-02 14:49:06 +00:00
Spencer Gibb
c66f05dd3a Update to SNAPSHOT 2016-11-01 16:06:04 -06:00
Dave Syer
b83a8321d0 Update to 1.2.1.RELEASE (Camden.SR1) 2016-10-18 18:41:53 +01:00
Spencer Gibb
4a49831ce9 Update to SNAPSHOT 2016-10-13 15:17:06 -06:00
Spencer Gibb
f4211e9236 Update SNAPSHOT to 1.2.0.RELEASE 2016-10-13 14:34:25 -06:00
Dave Syer
0969e488ce Reduce default memory consumption (-Xmx128m) 2016-10-13 14:46:33 +01:00
Dave Syer
3ea5efa862 DeployerThread refactored to extract meat into a Deployer utility
The utility can then be added to the application context, and only one
lookup is needed. Also switchews on autoconfiguration in the deployer
app, since the deployer implementations support that now.
2016-10-07 17:21:35 +02:00
Dave Syer
b949e390f2 Add generic deployment properties to deployer apps
Instead of JAVA_OPTS (didn't like the name anyway), user can define
generic "properties" in each deployable that will be passed down
to the app request.

The current 1.0 snapshots of the local deployer look in there for
JAVA_OPTS (but that hopefully will change to something more
"property like") before 1.0.3 is released.
2016-10-06 11:34:10 +02:00
Dave Syer
2e0dda930d Make sure dataflow server uses h2 launched by spring cloud
If user runs `spring cloud dataflow h2` you'd expect the database to
be used by dataflow. It's tricky to achieve, and impossible with
an in-memory data store (because of the way dataflow is set up
currently). This was achieved by adding a feature: each deployable
can specify "enabled" (in addition to existing "disabled" feature)
properties: i.e. environemnt properties that are applied to all
other apps as long as this one is running.

Another change here is to pass the "PATH" env var from the deployer
down to deployed apps. This affects dataflow in particular because
it likes to launch other apps, and it will pick the wrong Java
version (for instance) if the path is not preserved.
2016-10-06 09:36:38 +02:00
Spencer Gibb
c9ffd381ea Validate items to run are valid.
fixes gh-40
2016-10-04 19:37:58 -06:00
Spencer Gibb
5c8c99af7e Revert "Update SNAPSHOT to 1.2.0.RC1"
This reverts commit 110fa69b975377a1c478faa10fb4f7266a24f8e4.
2016-09-26 16:06:21 -06:00
Spencer Gibb
c2c96700db Update SNAPSHOT to 1.2.0.RC1 2016-09-26 15:51:32 -06:00
Spencer Gibb
64dc1c0f85 add default maven remote-repositories 2016-09-20 09:44:31 -06:00
Spencer Gibb
618a713a60 add config props for maven 2016-09-19 15:03:56 -06:00
Spencer Gibb
045b88f7c3 Look for launched server config files in ~/.spring-cloud/
Also moved some debug to trace

fixes gh-31
2016-09-15 12:48:21 -06:00
Spencer Gibb
af4e68719f Add javaOptions to Deployable.
Example command:
```
spring cloud -d configserver -- --logging.level.org.springframework.cloud.launcher.deployer=DEBUG --spring.cloud.launcher.deployables.configserver.java-options=-Dmy.system.prop=myval,-Dmy.system.prop2=yourval
```

fixes gh-18
2016-09-12 15:20:48 -06:00
Spencer Gibb
621ee6e4b9 Ignoring LauncherCommandTests.
Similar tests exist in DeployerThreadTests.

See gh-27
2016-09-02 14:09:20 -06:00
Dave Syer
68c9614be5 Add 'disabled' properties to deployable 2016-08-16 14:21:39 +01:00
Dave Syer
f26bdea6d9 Use map for deployables, not array (key is the name) 2016-08-16 14:09:57 +01:00
Dave Syer
9c443a1c04 Add non-option arguments after "--" to deployer command line
This allows user to play nice tricks with the deployer configuration (e.g.
changing the spring profile).

Fixes gh-25
2016-08-16 13:46:42 +01:00
Dave Syer
15a2a83fb0 Determine deployable app version dynamically
The deployer now checks its own version and uses that to set
up the app versions via "launcher.version" on the command line.

Closes gh-16
2016-08-15 17:05:58 +01:00
Dave Syer
9d44ed2631 Document the new local config YAML features
Also remove --git-url command line flag (since you can
put it in configserver.yml now).
2016-08-15 16:46:46 +01:00
Dave Syer
072cb9de21 File path starts with ./ 2016-08-15 15:44:12 +01:00
Dave Syer
656a1bd75d Ensure config files have / prefixes 2016-08-15 15:42:54 +01:00
Dave Syer
1a28da5d83 Load application properties from <name>.yml
(also try config/<name>.yml). In this way user can easily launch config
server with custom uri, h2 with custom tcp endpoints, etc. The local
app deployer puts these properties in sys env vars (a bit yuck), but
that's not in our control here.
2016-08-15 15:34:52 +01:00
Spencer Gibb
cf7f060cd1 polish 2016-08-11 16:23:16 -06:00
Spencer Gibb
7f713e0d59 Add git.uri option.
spring cloud --git-uri=http://mygit/myrepo.git configserver

Above command option changes configserver to use the git profile with the configured git url.

fixes gh-24
2016-08-11 16:17:31 -06:00
Dave Syer
6aee631561 Add a bunch of new things
* support for zipkin server

* if eureka isn't running disable the client

* add --list option to list deployables
2016-07-08 09:44:08 +01:00
Spencer Gibb
6e19c35b98 Only start config server, eureka and hystrix dashboard by default. 2016-07-05 16:46:49 -06:00
Spencer Gibb
76749c4683 Create cloud cli command.
Downloads and launches eureka,kafka,configserver,h2 server & hystrix dashboard.
2016-07-05 12:34:18 -06:00