-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test coverage for H2, H2-in-file and Postgres added, rudimentary doc …
…page
- Loading branch information
1 parent
c003f78
commit 8523b0d
Showing
5 changed files
with
45 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Building Native Images | ||
|
||
Building native images with Akka HTTP is supported out of the box for the event sourced journal, snapshot store and | ||
durable state store and databases: | ||
|
||
* H2 (inmem and file) | ||
* Postgres | ||
|
||
Other databases can likely be used but will require figuring out and adding additional native-image metadata. | ||
|
||
For details about building native images with Akka in general, see the @extref[Akka Documentation](akka:additional/native-image.html). |
9 changes: 9 additions & 0 deletions
9
native-image-tests/src/main/resources/application-h2-file.conf
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,9 @@ | ||
akka.persistence.journal.plugin = "akka.persistence.r2dbc.journal" | ||
akka.persistence.snapshot-store.plugin = "akka.persistence.r2dbc.snapshot" | ||
akka.persistence.state.plugin = "akka.persistence.r2dbc.state" | ||
|
||
akka.persistence.r2dbc.connection-factory = ${akka.persistence.r2dbc.h2} | ||
akka.persistence.r2dbc.connection-factory = { | ||
protocol = "file" | ||
database = "/tmp/test-h2-database" | ||
} |
5 changes: 5 additions & 0 deletions
5
native-image-tests/src/main/resources/application-postgres.conf
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,5 @@ | ||
akka.persistence.journal.plugin = "akka.persistence.r2dbc.journal" | ||
akka.persistence.snapshot-store.plugin = "akka.persistence.r2dbc.snapshot" | ||
akka.persistence.state.plugin = "akka.persistence.r2dbc.state" | ||
|
||
akka.persistence.r2dbc.connection-factory = ${akka.persistence.r2dbc.postgres} |