Last updated:|... min read
Docker Installation
Refer here to install OLake.
Refer here to build mongodb replicaset.
Docker Commands & Flags
The two primary commands you’ll use are discover
and sync
, which both run inside the OLake Docker container. Below is a quick reference table:
Command | Description |
---|---|
discover | Scans the database (e.g., MongoDB) to generate catalog.json . |
sync | Runs initial snapshot and/or CDC-based replication. |
Common Flags
Flag | Example | Description |
---|---|---|
--config | --config /mnt/config/config.json | Path to the MongoDB (or other DB) connection config. |
--catalog | --catalog /mnt/config/catalog.json | Path to the catalog file (list of tables/collections to replicate). |
--destination | --destination /mnt/config/writer.json | Path to the writer configuration (local or S3). |
--state | --state /mnt/config/state.json | Path to a file with saved offsets or resume tokens. |
Remember: The
-v
(volume) flag is crucial for mounting your localolake_folder
into/mnt/config
within the container.