We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6102651 commit 9b81bd1Copy full SHA for 9b81bd1
.evergreen/utils.sh
@@ -52,10 +52,22 @@ is_python_310() {
52
}
53
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
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)
64
# stores the connection string in .local_atlas_uri file
65
setup_local_atlas() {
66
echo "Starting the container"
67
68
+ IMAGE=mongodb/mongodb-atlas-local:latest
69
+ retry podman pull $IMAGE
70
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)
72
73
echo "waiting for container to become healthy..."
0 commit comments