You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+50-1Lines changed: 50 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,56 @@ The Azure Cosmos DB Desktop Data Migration Tool is an open-source project contai
26
26
27
27
## Quick Installation
28
28
29
-
To use the tool, download the latest archive file for your platform (win-x64, win-arm64, mac-x64, mac-arm64, linux-x64, linux-arm64) from [Releases](https://github.com/AzureCosmosDB/data-migration-desktop-tool/releases) and extract all files to your desired install location. To begin a data transfer operation, first populate the `migrationsettings.json` file with appropriate settings for your data source and sink (see [detailed instructions](#using-the-command-line) below or [review examples](ExampleConfigs.md)), and then run the application from a command line: `dmt.exe` on Windows or `dmt` on other platforms.
29
+
To use the tool, download the latest archive file for your platform (win-x64, win-arm64, mac-x64, mac-arm64, linux-x64, linux-arm64) from [Releases](https://github.com/AzureCosmosDB/data-migration-desktop-tool/releases) and extract all files to your desired install location. To begin a data transfer operation, first populate the `migrationsettings.json` file with appropriate settings for your data source and sink (see [detailed instructions](#using-the-command-line) below or [review examples](ExampleConfigs.md)), and then run the application from a command line: `dmt.exe` on Windows or `dmt` on other platforms.
30
+
31
+
## Docker Container
32
+
33
+
You can also run the Data Migration Tool as a Docker container, which is useful for CI/CD pipelines or environments where installing the tool directly isn't preferred.
34
+
35
+
### Using Pre-built Docker Image
36
+
37
+
The easiest way to use the container is to pull the pre-built image from GitHub Container Registry:
docker run -v $(pwd)/config:/config -v $(pwd)/data:/data ghcr.io/azurecosmosdb/data-migration-desktop-tool:latest run --settings /config/migrationsettings.json
42
+
```
43
+
44
+
### Building the Docker Image Locally
45
+
46
+
To build the Docker image locally:
47
+
48
+
```bash
49
+
docker build -t data-migration-tool .
50
+
```
51
+
52
+
### Running the Container
53
+
54
+
Run the container with your configuration files mounted:
55
+
56
+
```bash
57
+
docker run -v $(pwd)/config:/config -v $(pwd)/data:/data data-migration-tool run --settings /config/migrationsettings.json
58
+
```
59
+
60
+
Where:
61
+
-`/config` contains your configuration files including `migrationsettings.json`
62
+
-`/data` is the directory for your data files
63
+
64
+
You can also mount custom extensions:
65
+
66
+
```bash
67
+
docker run -v $(pwd)/config:/config -v $(pwd)/data:/data -v $(pwd)/extensions:/extensions data-migration-tool run --source customsource --sink customsink --settings /config/migrationsettings.json
68
+
```
69
+
70
+
### Docker Compose Example
71
+
72
+
A `docker-compose.yml` file is provided as an example:
73
+
74
+
```bash
75
+
docker-compose up
76
+
```
77
+
78
+
This will build the image and run the container with the mounted volumes. You can modify the `docker-compose.yml` file to customize the command and volumes.
0 commit comments