-
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.
Merge pull request #110 from scalar-labs/add-3.11-docs
Add docs for ScalarDB 3.11
- Loading branch information
Showing
1,967 changed files
with
584,959 additions
and
9,174 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
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
28 changes: 28 additions & 0 deletions
28
docs/3.10/scalardb-cluster/standalone-mode/docker-compose.yaml
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,28 @@ | ||
version: "3.5" | ||
services: | ||
|
||
postgresql: | ||
container_name: "postgresql" | ||
image: "postgres:15" | ||
ports: | ||
- 5432:5432 | ||
environment: | ||
- POSTGRES_PASSWORD=postgres | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready || exit 1"] | ||
interval: 1s | ||
timeout: 10s | ||
retries: 60 | ||
start_period: 30s | ||
|
||
scalardb-cluster-standalone: | ||
container_name: "scalardb-cluser-node" | ||
image: "ghcr.io/scalar-labs/scalardb-cluster-node:4.0.0-SNAPSHOT" | ||
ports: | ||
- 60053:60053 | ||
- 8080:8080 | ||
volumes: | ||
- ./scalardb-cluster-node.properties:/scalardb-cluster/node/scalardb-cluster-node.properties | ||
depends_on: | ||
postgresql: | ||
condition: service_healthy |
5 changes: 5 additions & 0 deletions
5
docs/3.10/scalardb-cluster/standalone-mode/scalardb-cluster-node.properties
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 @@ | ||
scalar.db.storage=jdbc | ||
scalar.db.contact_points=jdbc:postgresql://postgresql:5432/postgres | ||
scalar.db.username=postgres | ||
scalar.db.password=postgres | ||
scalar.db.cluster.node.standalone_mode.enabled=true |
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,37 @@ | ||
# Add ScalarDB to Your Build | ||
|
||
The ScalarDB library is available on the [Maven Central Repository](https://mvnrepository.com/artifact/com.scalar-labs/scalardb). You can add the library as a build dependency to your application by using Gradle or Maven. | ||
|
||
## Configure your application based on your build tool | ||
|
||
Select your build tool, and follow the instructions to add the build dependency for ScalarDB to your application. | ||
|
||
<div id="tabset-1"> | ||
<div class="tab"> | ||
<button class="tablinks" onclick="openTab(event, 'Gradle', 'tabset-1')" id="defaultOpen-1">Gradle</button> | ||
<button class="tablinks" onclick="openTab(event, 'Maven', 'tabset-1')">Maven</button> | ||
</div> | ||
|
||
<div id="Gradle" class="tabcontent" markdown="1"> | ||
|
||
To add the build dependency for ScalarDB by using Gradle, add the following to `build.gradle` in your application, replacing `<VERSION>` with the version of ScalarDB that you want to use: | ||
|
||
```gradle | ||
dependencies { | ||
implementation 'com.scalar-labs:scalardb:<VERSION>' | ||
} | ||
``` | ||
</div> | ||
<div id="Maven" class="tabcontent" markdown="1"> | ||
|
||
To add the build dependency for ScalarDB by using Maven, add the following to `pom.xml` in your application, replacing `<VERSION>` with the version of ScalarDB that you want to use: | ||
|
||
```xml | ||
<dependency> | ||
<groupId>com.scalar-labs</groupId> | ||
<artifactId>scalardb</artifactId> | ||
<version><VERSION></version> | ||
</dependency> | ||
``` | ||
</div> | ||
</div> |
Oops, something went wrong.