-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* M7l5 gremlin (#32) * m7l5 Gremlin/ArcadeDB * m7l5 ArcadeDB tiny fix (cherry picked from commit cdc05c32e1017ad016151030076da3722c7230a5) * M7l5 gremlin (cherry picked from commit a1a43821f043f79b90b7c9d0625692bc79a78be8)
- Loading branch information
Showing
33 changed files
with
732 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: "3.3" | ||
services: | ||
arcadedb: | ||
image: "arcadedata/arcadedb:24.4.1" | ||
ports: | ||
- "2480:2480" | ||
- "2424:2424" | ||
- "8182:8182" | ||
# volumes: | ||
# - ./volumes/arcadedb:/home/arcadedb/databases | ||
# Здесь можно добавить доступные через gremlin графы и псевдонимы | ||
# - ./volumes/arcadedb:/home/arcadedb/config/gremlin-server.groovy | ||
environment: | ||
JAVA_OPTS: > | ||
-Darcadedb.server.rootPassword=root_root | ||
-Darcadedb.server.plugins=GremlinServer:com.arcadedb.server.gremlin.GremlinServerPlugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
ok-marketplace-be/ok-marketplace-app-ktor/src/jvmMain/kotlin/configs/GremlinConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package ru.otus.otuskotlin.marketplace.app.ktor.configs | ||
|
||
import io.ktor.server.config.* | ||
|
||
data class GremlinConfig( | ||
val host: String = "localhost", | ||
val port: Int = 8182, | ||
val user: String = "root", | ||
val pass: String, | ||
val enableSsl: Boolean = false, | ||
) { | ||
constructor(config: ApplicationConfig): this( | ||
host = config.property("$PATH.host").getString(), | ||
user = config.property("$PATH.user").getString(), | ||
pass = config.property("$PATH.password").getString(), | ||
enableSsl = config.property("$PATH.enableSsl").getString().toBoolean(), | ||
) | ||
|
||
companion object { | ||
const val PATH = "${ConfigPaths.repository}.gremlin" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
ok-marketplace-be/ok-marketplace-app-tmp/src/main/kotlin/Main.kt
This file was deleted.
Oops, something went wrong.
122 changes: 0 additions & 122 deletions
122
ok-marketplace-be/ok-marketplace-app-tmp/src/main/resources/logback.xml_
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...lace-be/ok-marketplace-common/src/commonMain/kotlin/repo/exceptions/UnknownDbException.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package ru.otus.otuskotlin.marketplace.common.repo.exceptions | ||
|
||
class UnknownDbException(mes: String): RepoException(mes) |
Oops, something went wrong.