Skip to main content
Version: 3.12

ScalarDL Schema Loader

A Docker image that loads the database schemas of ScalarDL using Schema Tool for ScalarDB.

How to Run​

For Cosmos DB​

Run the following command, replacing <X.Y.Z> with the version of ScalarDL Schema Loader that you want to use and the contents in the other angle brackets as described:

docker run --rm [--env SCHEMA_TYPE=auditor] ghcr.io/scalar-labs/scalardl-schema-loader:<X.Y.Z> \
--cosmos -h <YOUR_ACCOUNT_URI> -p <YOUR_ACCOUNT_PASSWORD> [-r BASE_RESOURCE_UNIT]

For DynamoDB​

Run the following command, replacing <X.Y.Z> with the version of ScalarDL Schema Loader that you want to use and the contents in the other angle brackets as described:

docker run --rm [--env SCHEMA_TYPE=auditor] ghcr.io/scalar-labs/scalardl-schema-loader:<X.Y.Z> \
--dynamo --region <REGION> -u <ACCESS_KEY_ID> -p <SECRET_ACCESS_KEY> [-r BASE_RESOURCE_UNIT]

For Cassandra​

Run the following command, replacing <X.Y.Z> with the version of ScalarDL Schema Loader that you want to use and the contents in the other angle brackets as described:

docker run --rm [--env SCHEMA_TYPE=auditor] ghcr.io/scalar-labs/scalardl-schema-loader:<X.Y.Z> \
--cassandra -h <CASSANDRA_IP> -u <CASSNDRA_USER> -p <CASSANDRA_PASSWORD> [-n <NETWORK_STRATEGY> -R <REPLICATION_FACTOR>]

For using a config file​

  • For Ledger

    Run the following command, replacing <X.Y.Z> with the version of ScalarDL Schema Loader that you want to use and the contents in the other angle brackets as described:

    docker run --rm \
    -v <PROPERTIES_FILE_PATH>:/scalardl-schema-loader/database.properties \
    ghcr.io/scalar-labs/scalardl-schema-loader:<X.Y.Z> \
    --config database.properties --coordinator [<SOME_OPTIONS> [, ...]]
  • For Auditor

    Run the following command, replacing <X.Y.Z> with the version of ScalarDL Schema Loader that you want to use and the contents in the other angle brackets as described:

    docker run --rm --env SCHEMA_TYPE=auditor \
    -v <PROPERTIES_FILE_PATH>:/scalardl-schema-loader/database.properties \
    ghcr.io/scalar-labs/scalardl-schema-loader:<X.Y.Z> \
    --config database.properties [<SOME_OPTIONS> [, ...]]