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
ci: Only distribute the tool as a container image (#56)
* Only distribute the tool as a container image
We can not build static binaries with Chroma.
* fix: Docker build with CC
Signed-off-by: Anush008 <anushshetty90@gmail.com>
* Fix trivy scan
* Fix tests
* Fix tests
---------
Signed-off-by: Anush008 <anushshetty90@gmail.com>
Co-authored-by: Anush008 <anushshetty90@gmail.com>
Copy file name to clipboardExpand all lines: README.md
+8-60Lines changed: 8 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,9 @@ CLI tool for migrating data to [Qdrant](http://qdrant.tech) with support for res
18
18
19
19
You can run this tool on any machine with connectivity to both the source and the Qdrant database. For best performance, use a machine with a fast network and minimal latency to both endpoints.
20
20
21
-
#### Binaries
21
+
The tool is distributed as a container image, which can be run on any system with Docker, Podman or similar container runtimes. The following examples use Docker.
22
22
23
-
Each release includes **precompiled binaries** for all major OS and CPU architectures. Download the latest one from the [Releases Page](https://github.com/qdrant/migration/releases).
24
-
25
-
#### Docker
26
-
27
-
To get the latest Docker image run the following command.
23
+
To get the latest container image run the following command:
docker run --net=host --rm -it registry.cloud.qdrant.io/library/qdrant-migration qdrant \
343
-
--source.url 'http://localhost:6334' \
344
-
...
345
-
```
346
-
347
295
NOTE: If the target collection already exists, its vector size and dimensions must match the source. Other settings like replication, shards can differ.
Copy file name to clipboardExpand all lines: integration_tests/qdrant_to_qdrant.bats
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@
47
47
48
48
echo$source_result
49
49
50
-
run go run main.go qdrant --source.url http://localhost:7334 --source.collection source_collection --target.url http://localhost:8334 --target.collection target_collection --migration.batch-size 1
50
+
run docker run --net=host --rm registry.cloud.qdrant.io/library/qdrant-migration:dev qdrant --source.url http://localhost:7334 --source.collection source_collection --target.url http://localhost:8334 --target.collection target_collection --migration.batch-size 1
51
51
[ $status-eq 0 ]
52
52
53
53
run curl -s -X POST http://localhost:8333/collections/target_collection/points/scroll \
@@ -74,13 +74,13 @@
74
74
[ $status-eq 0 ]
75
75
76
76
77
-
run go run main.go qdrant --source.url http://localhost:7334 --source.collection source_collection --target.url http://localhost:7334 --target.collection source_collection --migration.batch-size 1
77
+
run docker run --net=host --rm registry.cloud.qdrant.io/library/qdrant-migration:dev qdrant --source.url http://localhost:7334 --source.collection source_collection --target.url http://localhost:7334 --target.collection source_collection --migration.batch-size 1
78
78
[ $status-ne 0 ]
79
79
[[ "$output"=~"source and target collections must be different" ]]
80
80
}
81
81
82
82
@test "Migrating with invalid port should fail" {
83
-
run go run main.go qdrant --source.url http://localhost:invalid --source.collection source_collection --target.url http://localhost:8334 --target.collection source_collection --migration.batch-size 1
83
+
run docker run --net=host --rm registry.cloud.qdrant.io/library/qdrant-migration:dev qdrant --source.url http://localhost:invalid --source.collection source_collection --target.url http://localhost:8334 --target.collection source_collection --migration.batch-size 1
84
84
[ $status-ne 0 ]
85
85
[[ "$output"=~"invalid port \":invalid\" after host" ]]
0 commit comments