1

Replace in-memory ledger with MongoDB

This commit is contained in:
2018-06-09 20:45:18 +03:00
parent 0e21b7eee2
commit 0f24c37ac5
17 changed files with 209 additions and 174 deletions

View File

@@ -11,7 +11,6 @@ dependencies {
run {
environment('RATPACK_DBT__LEDGER__REMOTE_URL', findProperty('ledgerURL').toString() ?: "http://localhost:5050/ledger")
environment('RATPACK_DBT__LEDGER__ENABLED', false)
}
distDocker {

View File

@@ -1,4 +1,4 @@
import com.devsoap.dbt.DBTModule
import com.devsoap.dbt.modules.DBTExecutorModule
import org.h2.jdbcx.JdbcDataSource
import org.slf4j.LoggerFactory
@@ -16,7 +16,7 @@ ratpack {
bindings {
bindInstance(DataSource, new JdbcDataSource(url: 'jdbc:h2:mem:dbtdb;DB_CLOSE_DELAY=-1', user: ''))
module (DBTModule) { config ->
module (DBTExecutorModule) { config ->
log.info "Executor available at $config.executor.remoteUrl"
log.info "Ledger available at $config.ledger.remoteUrl"
}