Add Brixton.SR6
64
Brixton.SR6/configprops.groovy
Normal file
@@ -0,0 +1,64 @@
|
||||
/**
|
||||
* Run this file with groovy and collect the result as an asciidoctor source file:
|
||||
* <pre>
|
||||
* $ groovy configprops.groovy | egrep -v PathMatchingResourcePatternResolver | tee configprops.adoc
|
||||
* </pre>
|
||||
*/
|
||||
|
||||
@Grab('org.codehaus.groovy:groovy-json:2.4.3')
|
||||
@Grab('org.springframework.cloud:spring-cloud-starter-eureka:1.1.0.BUILD-SNAPSHOT')
|
||||
@Grab('org.springframework.cloud:spring-cloud-starter-sleuth:1.0.0.BUILD-SNAPSHOT')
|
||||
@Grab('org.springframework.cloud:spring-cloud-netflix-eureka-server:1.1.0.BUILD-SNAPSHOT')
|
||||
@Grab('org.springframework.cloud:spring-cloud-starter-config:1.1.0.BUILD-SNAPSHOT')
|
||||
@Grab('org.springframework.cloud:spring-cloud-starter-bus-amqp:1.1.0.BUILD-SNAPSHOT')
|
||||
@Grab('org.springframework.cloud:spring-cloud-starter-stream-rabbit:1.0.0.BUILD-SNAPSHOT')
|
||||
@Grab('org.springframework.cloud:spring-cloud-starter-consul-all:1.0.0.BUILD-SNAPSHOT')
|
||||
@Grab('org.springframework.cloud:spring-cloud-starter-zookeeper-all:1.0.0.BUILD-SNAPSHOT')
|
||||
@Grab('org.springframework.cloud:spring-cloud-starter-security:1.1.0.BUILD-SNAPSHOT')
|
||||
@Grab('org.springframework.cloud:spring-cloud-starter-cloudfoundry:1.0.0.BUILD-SNAPSHOT')
|
||||
@Grab('org.springframework.cloud:spring-cloud-cloudfoundry-discovery:1.0.0.BUILD-SNAPSHOT')
|
||||
@Grab('org.springframework.cloud:spring-cloud-cluster-autoconfigure:1.0.0.BUILD-SNAPSHOT')
|
||||
|
||||
import org.springframework.core.io.support.PathMatchingResourcePatternResolver
|
||||
import org.springframework.core.io.Resource
|
||||
import groovy.json.JsonSlurper
|
||||
|
||||
def resources = new PathMatchingResourcePatternResolver().getResources("classpath*:/META-INF/spring-configuration-metadata.json")
|
||||
|
||||
TreeSet names = new TreeSet()
|
||||
def descriptions = [:]
|
||||
resources.each { it ->
|
||||
if (it.url.toString().contains("cloud")) {
|
||||
def slurper = new JsonSlurper()
|
||||
slurper.parseText(it.inputStream.text).properties.each { val ->
|
||||
names.add val.name
|
||||
descriptions[val.name] = new ConfigValue(val.name, val.description, val.defaultValue)
|
||||
}
|
||||
}
|
||||
}
|
||||
println "|==="
|
||||
println "|Name | Default | Description"
|
||||
println ""
|
||||
names.each { it ->
|
||||
println descriptions[it]
|
||||
println ""
|
||||
}
|
||||
println "|==="
|
||||
|
||||
|
||||
class ConfigValue {
|
||||
String name
|
||||
String description
|
||||
Object defaultValue
|
||||
ConfigValue(){}
|
||||
ConfigValue(String name, String description, Object defaultValue) {
|
||||
this.name = name
|
||||
this.description = description
|
||||
this.defaultValue = defaultValue
|
||||
}
|
||||
String toString() {
|
||||
def value = defaultValue==null?'':"${defaultValue}"
|
||||
"|${name} | ${value} | ${description?:''}"
|
||||
}
|
||||
}
|
||||
|
||||
46
Brixton.SR6/ghpages.sh
Normal file
@@ -0,0 +1,46 @@
|
||||
#!/bin/bash -x
|
||||
|
||||
git remote | grep docs || git remote add docs https://github.com/spring-cloud/spring-cloud-static
|
||||
|
||||
if ! (git fetch docs && git checkout --track docs/gh-pages || git checkout gh-pages); then
|
||||
echo "No gh-pages, error"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! [ -d target/generated-docs ]; then
|
||||
echo "No gh-pages sources in target/generated-docs, so not syncing"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Stash any outstanding changes
|
||||
###################################################################
|
||||
git diff-index --quiet HEAD
|
||||
dirty=$?
|
||||
if [ "$dirty" != "0" ]; then git stash; fi
|
||||
|
||||
# Switch to gh-pages branch to sync it with master
|
||||
###################################################################
|
||||
git checkout gh-pages
|
||||
|
||||
for f in target/generated-docs/*; do
|
||||
file=${f#target/generated-docs/*}
|
||||
if ! git ls-files -i -o --exclude-standard --directory | grep -q ^$file$; then
|
||||
# Not ignored...
|
||||
cp -rf $f .
|
||||
git add -A $file
|
||||
fi
|
||||
done
|
||||
|
||||
git commit -a -m "Sync docs from master to gh-pages"
|
||||
|
||||
# Uncomment the following push if you want to auto push to
|
||||
# the gh-pages branch whenever you commit to master locally.
|
||||
# This is a little extreme. Use with care!
|
||||
###################################################################
|
||||
git push docs gh-pages || exit 1
|
||||
|
||||
# Finally, switch back to the master branch and exit block
|
||||
git checkout master
|
||||
if [ "$dirty" != "0" ]; then git stash pop; fi
|
||||
|
||||
exit 0
|
||||
0
Brixton.SR6/images/.gitkeep
Normal file
BIN
Brixton.SR6/images/Hystrix.png
Normal file
|
After Width: | Height: | Size: 225 KiB |
BIN
Brixton.SR6/images/HystrixFallback.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
Brixton.SR6/images/HystrixGraph.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
Brixton.SR6/images/RequestLatency.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
Brixton.SR6/images/SCSt-groups.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
Brixton.SR6/images/SCSt-partitioning.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
Brixton.SR6/images/SCSt-sensors.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
Brixton.SR6/images/SCSt-with-binder.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
Brixton.SR6/images/kafka-binder.png
Normal file
|
After Width: | Height: | Size: 9.2 KiB |
BIN
Brixton.SR6/images/producers-consumers.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
Brixton.SR6/images/rabbit-binder.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
Brixton.SR6/images/redis-binder.png
Normal file
|
After Width: | Height: | Size: 13 KiB |