Skip to content

Commit 5a83c79

Browse files
committed
Move Docker service broker into separate repo
0 parents  commit 5a83c79

28 files changed

+6006
-0
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
target/
2+
build/

Diff for: application.properties

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
app.grails.version=2.4.2
2+
app.name=cf-service-broker
3+
app.version=0.1

Diff for: grails-app/assets/images/favicon.ico

9.9 KB
Binary file not shown.

Diff for: grails-app/assets/javascripts/application.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// This is a manifest file that'll be compiled into application.js.
2+
//
3+
// Any JavaScript file within this directory can be referenced here using a relative path.
4+
//
5+
// You're free to add application-wide JavaScript to this file, but it's generally better
6+
// to create separate JavaScript files as needed.
7+
//
8+
//= require jquery
9+
//= require_tree .
10+
//= require_self
11+
12+
if (typeof jQuery !== 'undefined') {
13+
(function($) {
14+
$('#spinner').ajaxStart(function() {
15+
$(this).fadeIn();
16+
}).ajaxStop(function() {
17+
$(this).fadeOut();
18+
});
19+
})(jQuery);
20+
}

Diff for: grails-app/assets/stylesheets/application.css

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* This is a manifest file that'll be compiled into application.css, which will include all the files
3+
* listed below.
4+
*
5+
* Any CSS file within this directory can be referenced here using a relative path.
6+
*
7+
* You're free to add application-wide styles to this file and they'll appear at the top of the
8+
* compiled file, but it's generally better to create a new file per style scope.
9+
*
10+
*= require main
11+
*= require mobile
12+
*= require_self
13+
*/

Diff for: grails-app/assets/stylesheets/errors.css

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
h1, h2 {
2+
margin: 10px 25px 5px;
3+
}
4+
5+
h2 {
6+
font-size: 1.1em;
7+
}
8+
9+
.filename {
10+
font-style: italic;
11+
}
12+
13+
.exceptionMessage {
14+
margin: 10px;
15+
border: 1px solid #000;
16+
padding: 5px;
17+
background-color: #E9E9E9;
18+
}
19+
20+
.stack,
21+
.snippet {
22+
margin: 0 25px 10px;
23+
}
24+
25+
.stack,
26+
.snippet {
27+
border: 1px solid #ccc;
28+
-mox-box-shadow: 0 0 2px rgba(0,0,0,0.2);
29+
-webkit-box-shadow: 0 0 2px rgba(0,0,0,0.2);
30+
box-shadow: 0 0 2px rgba(0,0,0,0.2);
31+
}
32+
33+
/* error details */
34+
.error-details {
35+
border-top: 1px solid #FFAAAA;
36+
-mox-box-shadow: 0 0 2px rgba(0,0,0,0.2);
37+
-webkit-box-shadow: 0 0 2px rgba(0,0,0,0.2);
38+
box-shadow: 0 0 2px rgba(0,0,0,0.2);
39+
border-bottom: 1px solid #FFAAAA;
40+
-mox-box-shadow: 0 0 2px rgba(0,0,0,0.2);
41+
-webkit-box-shadow: 0 0 2px rgba(0,0,0,0.2);
42+
box-shadow: 0 0 2px rgba(0,0,0,0.2);
43+
background-color:#FFF3F3;
44+
line-height: 1.5;
45+
overflow: hidden;
46+
padding: 5px;
47+
padding-left:25px;
48+
}
49+
50+
.error-details dt {
51+
clear: left;
52+
float: left;
53+
font-weight: bold;
54+
margin-right: 5px;
55+
}
56+
57+
.error-details dt:after {
58+
content: ":";
59+
}
60+
61+
.error-details dd {
62+
display: block;
63+
}
64+
65+
/* stack trace */
66+
.stack {
67+
padding: 5px;
68+
overflow: auto;
69+
height: 150px;
70+
}
71+
72+
/* code snippet */
73+
.snippet {
74+
background-color: #fff;
75+
font-family: monospace;
76+
}
77+
78+
.snippet .line {
79+
display: block;
80+
}
81+
82+
.snippet .lineNumber {
83+
background-color: #ddd;
84+
color: #999;
85+
display: inline-block;
86+
margin-right: 5px;
87+
padding: 0 3px;
88+
text-align: right;
89+
width: 3em;
90+
}
91+
92+
.snippet .error {
93+
background-color: #fff3f3;
94+
font-weight: bold;
95+
}
96+
97+
.snippet .error .lineNumber {
98+
background-color: #faa;
99+
color: #333;
100+
font-weight: bold;
101+
}
102+
103+
.snippet .line:first-child .lineNumber {
104+
padding-top: 5px;
105+
}
106+
107+
.snippet .line:last-child .lineNumber {
108+
padding-bottom: 5px;
109+
}

Diff for: grails-app/conf/BootStrap.groovy

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class BootStrap {
2+
3+
def init = { servletContext ->
4+
}
5+
def destroy = {
6+
}
7+
}

Diff for: grails-app/conf/BuildConfig.groovy

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
grails.servlet.version = "3.0" // Change depending on target container compliance (2.5 or 3.0)
2+
grails.project.class.dir = "target/classes"
3+
grails.project.test.class.dir = "target/test-classes"
4+
grails.project.test.reports.dir = "target/test-reports"
5+
grails.project.work.dir = "target/work"
6+
grails.project.target.level = 1.6
7+
grails.project.source.level = 1.6
8+
//grails.project.war.file = "target/${appName}-${appVersion}.war"
9+
10+
grails.project.fork = [
11+
// configure settings for compilation JVM, note that if you alter the Groovy version forked compilation is required
12+
// compile: [maxMemory: 256, minMemory: 64, debug: false, maxPerm: 256, daemon:true],
13+
14+
// configure settings for the test-app JVM, uses the daemon by default
15+
test: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, daemon:true],
16+
// configure settings for the run-app JVM
17+
// grails -reloading run-app, see https://jira.grails.org/browse/GRAILS-10850
18+
run: false, // [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],
19+
// configure settings for the run-war JVM
20+
war: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],
21+
// configure settings for the Console UI JVM
22+
console: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256]
23+
]
24+
25+
grails.project.dependency.resolver = "maven" // or ivy
26+
grails.project.dependency.resolution = {
27+
// inherit Grails' default dependencies
28+
inherits("global") {
29+
// specify dependency exclusions here; for example, uncomment this to disable ehcache:
30+
// excludes 'ehcache'
31+
}
32+
log "error" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
33+
checksums true // Whether to verify checksums on resolve
34+
legacyResolve false // whether to do a secondary resolve on plugin installation, not advised and here for backwards compatibility
35+
36+
repositories {
37+
inherits true // Whether to inherit repository definitions from plugins
38+
39+
grailsPlugins()
40+
grailsHome()
41+
mavenLocal()
42+
grailsCentral()
43+
mavenCentral()
44+
// uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories
45+
//mavenRepo "http://repository.codehaus.org"
46+
//mavenRepo "http://download.java.net/maven/2/"
47+
//mavenRepo "http://repository.jboss.com/maven2/"
48+
}
49+
50+
dependencies {
51+
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g.
52+
runtime 'mysql:mysql-connector-java:5.1.31'
53+
runtime 'org.postgresql:postgresql:9.3-1102-jdbc41'
54+
compile 'org.mongodb:mongo-java-driver:2.12.3'
55+
compile 'com.github.groovy-wslite:groovy-wslite:1.1.0'
56+
test "org.grails:grails-datastore-test-support:1.0-grails-2.4"
57+
}
58+
59+
plugins {
60+
// plugins for the build system only
61+
build ":tomcat:7.0.54"
62+
63+
// plugins for the compile step
64+
compile ":scaffolding:2.1.2"
65+
compile ':cache:1.1.7'
66+
compile ":asset-pipeline:1.8.11"
67+
68+
// plugins needed at runtime but not for compilation
69+
runtime ":hibernate4:4.3.5.4" // or ":hibernate:3.6.10.16"
70+
runtime ":database-migration:1.4.0"
71+
runtime ":jquery:1.11.1"
72+
73+
// Uncomment these to enable additional asset-pipeline capabilities
74+
//compile ":sass-asset-pipeline:1.7.4"
75+
//compile ":less-asset-pipeline:1.7.0"
76+
//compile ":coffee-asset-pipeline:1.7.0"
77+
//compile ":handlebars-asset-pipeline:1.3.0.3"
78+
}
79+
}

Diff for: grails-app/conf/Config.groovy

+122
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
grails.app.context = '/'
2+
3+
broker.v2.publicip = true
4+
broker.v2.secret = 'f779df95-2190-4a0d-ad5b-9f2ba4550ea9'
5+
6+
// locations to search for config files that get merged into the main config;
7+
// config files can be ConfigSlurper scripts, Java properties files, or classes
8+
// in the classpath in ConfigSlurper format
9+
10+
// grails.config.locations = [ "classpath:${appName}-config.properties",
11+
// "classpath:${appName}-config.groovy",
12+
// "file:${userHome}/.grails/${appName}-config.properties",
13+
// "file:${userHome}/.grails/${appName}-config.groovy"]
14+
15+
// if (System.properties["${appName}.config.location"]) {
16+
// grails.config.locations << "file:" + System.properties["${appName}.config.location"]
17+
// }
18+
19+
grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination
20+
21+
// The ACCEPT header will not be used for content negotiation for user agents containing the following strings (defaults to the 4 major rendering engines)
22+
grails.mime.disable.accept.header.userAgents = ['Gecko', 'WebKit', 'Presto', 'Trident']
23+
grails.mime.types = [ // the first one is the default format
24+
all: '*/*', // 'all' maps to '*' or the first available format in withFormat
25+
atom: 'application/atom+xml',
26+
css: 'text/css',
27+
csv: 'text/csv',
28+
form: 'application/x-www-form-urlencoded',
29+
html: ['text/html','application/xhtml+xml'],
30+
js: 'text/javascript',
31+
json: ['application/json', 'text/json'],
32+
multipartForm: 'multipart/form-data',
33+
rss: 'application/rss+xml',
34+
text: 'text/plain',
35+
hal: ['application/hal+json','application/hal+xml'],
36+
xml: ['text/xml', 'application/xml']
37+
]
38+
39+
// URL Mapping Cache Max Size, defaults to 5000
40+
//grails.urlmapping.cache.maxsize = 1000
41+
42+
// Legacy setting for codec used to encode data with ${}
43+
grails.views.default.codec = "html"
44+
45+
// The default scope for controllers. May be prototype, session or singleton.
46+
// If unspecified, controllers are prototype scoped.
47+
grails.controllers.defaultScope = 'singleton'
48+
49+
// GSP settings
50+
grails {
51+
views {
52+
gsp {
53+
encoding = 'UTF-8'
54+
htmlcodec = 'xml' // use xml escaping instead of HTML4 escaping
55+
codecs {
56+
expression = 'html' // escapes values inside ${}
57+
scriptlet = 'html' // escapes output from scriptlets in GSPs
58+
taglib = 'none' // escapes output from taglibs
59+
staticparts = 'none' // escapes output from static template parts
60+
}
61+
}
62+
// escapes all not-encoded output at final stage of outputting
63+
// filteringCodecForContentType.'text/html' = 'html'
64+
}
65+
}
66+
67+
68+
grails.converters.encoding = "UTF-8"
69+
// scaffolding templates configuration
70+
grails.scaffolding.templates.domainSuffix = 'Instance'
71+
72+
// Set to false to use the new Grails 1.2 JSONBuilder in the render method
73+
grails.json.legacy.builder = false
74+
// enabled native2ascii conversion of i18n properties files
75+
grails.enable.native2ascii = true
76+
// packages to include in Spring bean scanning
77+
grails.spring.bean.packages = []
78+
// whether to disable processing of multi part requests
79+
grails.web.disable.multipart=false
80+
81+
// request parameters to mask when logging exceptions
82+
grails.exceptionresolver.params.exclude = ['password']
83+
84+
// configure auto-caching of queries by default (if false you can cache individual queries with 'cache: true')
85+
grails.hibernate.cache.queries = false
86+
87+
// configure passing transaction's read-only attribute to Hibernate session, queries and criterias
88+
// set "singleSession = false" OSIV mode in hibernate configuration after enabling
89+
grails.hibernate.pass.readonly = false
90+
// configure passing read-only to OSIV session by default, requires "singleSession = false" OSIV mode
91+
grails.hibernate.osiv.readonly = false
92+
93+
environments {
94+
development {
95+
grails.logging.jul.usebridge = true
96+
}
97+
production {
98+
grails.logging.jul.usebridge = false
99+
// TODO: grails.serverURL = "http://www.changeme.com"
100+
}
101+
}
102+
103+
// log4j configuration
104+
log4j.main = {
105+
// Example of changing the log pattern for the default console appender:
106+
//
107+
//appenders {
108+
// console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
109+
//}
110+
111+
error 'org.codehaus.groovy.grails.web.servlet', // controllers
112+
'org.codehaus.groovy.grails.web.pages', // GSP
113+
'org.codehaus.groovy.grails.web.sitemesh', // layouts
114+
'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
115+
'org.codehaus.groovy.grails.web.mapping', // URL mapping
116+
'org.codehaus.groovy.grails.commons', // core / classloading
117+
'org.codehaus.groovy.grails.plugins', // plugins
118+
'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
119+
'org.springframework',
120+
'org.hibernate',
121+
'net.sf.ehcache.hibernate'
122+
}

0 commit comments

Comments
 (0)