Skip to content

Commit

Permalink
reference slick docs in our db config (#3121)
Browse files Browse the repository at this point in the history
  • Loading branch information
danbills committed Jan 9, 2018
1 parent fdd70eb commit c9e556a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ services {
database {
# hsql default
profile = "slick.jdbc.HsqldbProfile$"

# see all possible parameters and default values here:
# http://slick.lightbend.com/doc/3.2.0/api/index.html#slick.jdbc.JdbcBackend$DatabaseFactoryDef@forConfig(String,Config,Driver):Database
db {
driver = "org.hsqldb.jdbcDriver"
url = "jdbc:hsqldb:mem:${uniqueSchema};shutdown=false;hsqldb.tx=mvcc"
Expand Down
3 changes: 3 additions & 0 deletions cromwell.examples.conf
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,9 @@ services {
database {
# mysql example
#driver = "slick.driver.MySQLDriver$"

# see all possible parameters and default values here:
# http://slick.lightbend.com/doc/3.2.0/api/index.html#slick.jdbc.JdbcBackend$DatabaseFactoryDef@forConfig(String,Config,Driver):Database
#db {
# driver = "com.mysql.jdbc.Driver"
# url = "jdbc:mysql://host/cromwell?rewriteBatchedStatements=true"
Expand Down
2 changes: 2 additions & 0 deletions docs/Configuring.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ database {
}
```

To see the full list of possible parameters and values for the `db` stanza see [the slick documentation](http://slick.lightbend.com/doc/3.2.0/api/index.html#slick.jdbc.JdbcBackend$DatabaseFactoryDef@forConfig(String,Config,Driver):Database).

**Cromwell server on MySQL Database**

You can use [docker-compose](https://github.com/broadinstitute/cromwell/tree/develop/scripts) to link together a Cromwell docker image (built locally with `sbt docker` or available on [Dockerhub](https://hub.docker.com/r/broadinstitute/cromwell/)) with a MySQL docker image.
Expand Down

0 comments on commit c9e556a

Please sign in to comment.