File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,22 @@ is_python_310() {
52
52
}
53
53
54
54
55
+ retry () {
56
+ for i in 1 2 4 8 16; do
57
+ { " $@ " && return 0; } || sleep $i
58
+ done
59
+ return 1
60
+ }
61
+
62
+
55
63
# start mongodb-atlas-local container, because of a bug in podman we have to define the healtcheck ourselves (is the same as in the image)
56
64
# stores the connection string in .local_atlas_uri file
57
65
setup_local_atlas () {
58
66
echo " Starting the container"
67
+
68
+ IMAGE=artifactory.corp.mongodb.com/dockerhub/mongodb/mongodb-atlas-local:latest
69
+ retry podman pull $IMAGE
70
+
59
71
CONTAINER_ID=$( podman run --rm -d -e DO_NOT_TRACK=1 -P --health-cmd " /usr/local/bin/runner healthcheck" mongodb/mongodb-atlas-local:latest)
60
72
61
73
echo " waiting for container to become healthy..."
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ $PYTHON_BINARY -m poetry install --with dev
29
29
OPENAI_API_KEY=$openai_api_key \
30
30
DATASTORE=" mongodb" \
31
31
BEARER_TOKEN=" staylowandkeepmoving" \
32
- MONGODB_URI=$chatgpt_retrieval_plugin_mongodb_uri \
32
+ MONGODB_URI=$( fetch_local_atlas_uri ) \
33
33
MONGODB_DATABASE=" chatgpt_retrieval_plugin_test_db" \
34
34
MONGODB_COLLECTION=" chatgpt_retrieval_plugin_test_vectorstore" \
35
35
MONGODB_INDEX=" vector_index" \
You can’t perform that action at this time.
0 commit comments