@@ -17,9 +17,9 @@ case $(uname -s) in
1717 Darwin)
1818 if [[ " $( uname -m) " == " arm64" ]]; then
1919 export GOARCH=arm64
20- STITCH_SUPPORT_LIB_URL=" https://s3.amazonaws.com/static.realm.io/ stitch-support/stitch-support- macos-arm64- 6.1.0-rc3-8-gb6e0525 .tgz"
21- STITCH_ASSISTED_AGG_URL=" https://stitch-artifacts.s3.amazonaws.com/stitch-mongo-libs/stitch_mongo_libs_osx_patch_75b3f1896aaa2e344817795c8bfc5cb6b2f2c310_632211a5d1fe0757f8c416fa_22_09_14_17_38_46 /assisted_agg"
22- GO_URL=" https://s3.amazonaws.com/static.realm.io/evergreen-assets/go1.19.3 .darwin-arm64.tar.gz"
20+ STITCH_SUPPORT_LIB_URL=" https://stitch-artifacts. s3.amazonaws.com/stitch-support/macos-arm64/stitch-support- 6.1.0-alpha-527-g796351f .tgz"
21+ STITCH_ASSISTED_AGG_URL=" https://stitch-artifacts.s3.amazonaws.com/stitch-mongo-libs/stitch_mongo_libs_osx_patch_1e7861d9b7462f01ea220fad334f10e00f0f3cca_6513254ad6d80abfffa5fbdc_23_09_26_18_39_06 /assisted_agg"
22+ GO_URL=" https://s3.amazonaws.com/static.realm.io/evergreen-assets/go1.21.1 .darwin-arm64.tar.gz"
2323 MONGODB_DOWNLOAD_URL=" https://downloads.mongodb.com/osx/mongodb-macos-arm64-enterprise-6.0.0-rc13.tgz"
2424 MONGOSH_DOWNLOAD_URL=" https://downloads.mongodb.com/compass/mongosh-1.5.0-darwin-arm64.zip"
2525
@@ -34,21 +34,28 @@ case $(uname -s) in
3434 export GOMAXPROCS
3535 else
3636 export GOARCH=amd64
37- STITCH_SUPPORT_LIB_URL=" https://s3.amazonaws.com/static.realm.io/ stitch-support/stitch-support-macos -4.4.17-rc1-2-g85de0cc.tgz"
38- STITCH_ASSISTED_AGG_URL=" https://stitch-artifacts.s3.amazonaws.com/stitch-mongo-libs/stitch_mongo_libs_osx_patch_75b3f1896aaa2e344817795c8bfc5cb6b2f2c310_632211a5d1fe0757f8c416fa_22_09_14_17_38_46 /assisted_agg"
39- GO_URL=" https://s3.amazonaws.com/static.realm.io/evergreen-assets/go1.19 .1.darwin-amd64.tar.gz"
37+ STITCH_SUPPORT_LIB_URL=" https://stitch-artifacts. s3.amazonaws.com/stitch-support/macos-arm64/ stitch-support-4.4.17-rc1-2-g85de0cc.tgz"
38+ STITCH_ASSISTED_AGG_URL=" https://stitch-artifacts.s3.amazonaws.com/stitch-mongo-libs/stitch_mongo_libs_osx_patch_1e7861d9b7462f01ea220fad334f10e00f0f3cca_6513254ad6d80abfffa5fbdc_23_09_26_18_39_06 /assisted_agg"
39+ GO_URL=" https://s3.amazonaws.com/static.realm.io/evergreen-assets/go1.21 .1.darwin-amd64.tar.gz"
4040 MONGODB_DOWNLOAD_URL=" https://downloads.mongodb.com/osx/mongodb-macos-x86_64-enterprise-5.0.3.tgz"
4141 fi
4242
4343 NODE_URL=" https://s3.amazonaws.com/static.realm.io/evergreen-assets/node-v14.17.0-darwin-x64.tar.gz"
4444 JQ_DOWNLOAD_URL=" https://s3.amazonaws.com/static.realm.io/evergreen-assets/jq-1.6-darwin-amd64"
4545 ;;
4646 Linux)
47- GO_URL=" https://s3.amazonaws.com/static.realm.io/evergreen-assets/go1.19 .1.linux-amd64.tar.gz"
47+ GO_URL=" https://s3.amazonaws.com/static.realm.io/evergreen-assets/go1.21 .1.linux-amd64.tar.gz"
4848 JQ_DOWNLOAD_URL=" https://s3.amazonaws.com/static.realm.io/evergreen-assets/jq-1.6-linux-amd64"
4949 NODE_URL=" https://s3.amazonaws.com/static.realm.io/evergreen-assets/node-v14.17.0-linux-x64.tar.gz"
5050
51- # Detect what distro/versionf of Linux we are running on to download the right version of MongoDB to download
51+ # Only x86_64 Linux machines are supported
52+ linux_arch=" $( uname -m) "
53+ if [[ " ${linux_arch} " != " x86_64" ]]; then
54+ echo " Error: only x86_64 Linux machines are supported: ${linux_arch} "
55+ exit 1
56+ fi
57+
58+ # Detect what distro/version of Linux we are running on to determine the right version of MongoDB to download
5259 # /etc/os-release covers debian/ubuntu/suse
5360 if [[ -e /etc/os-release ]]; then
5461 # Amazon Linux 2 comes back as 'amzn'
@@ -64,49 +71,49 @@ case $(uname -s) in
6471 case $DISTRO_NAME in
6572 ubuntu | linuxmint)
6673 MONGODB_DOWNLOAD_URL=" http://downloads.10gen.com/linux/mongodb-linux-$( uname -m) -enterprise-ubuntu${DISTRO_VERSION_MAJOR} 04-5.0.3.tgz"
67- STITCH_ASSISTED_AGG_LIB_URL=" https://stitch-artifacts.s3.amazonaws.com/stitch-mongo-libs/stitch_mongo_libs_ubuntu2004_x86_64_86b48e3cb2a8d5bbf3d18281c9f42c1835bbb83b_22_11_08_03_08_06 /libmongo-ubuntu2004-x86_64.so"
74+ STITCH_ASSISTED_AGG_LIB_URL=" https://stitch-artifacts.s3.amazonaws.com/stitch-mongo-libs/stitch_mongo_libs_ubuntu2004_x86_64_patch_1e7861d9b7462f01ea220fad334f10e00f0f3cca_65135b432fbabe741bd24429_23_09_26_22_29_24 /libmongo-ubuntu2004-x86_64.so"
6875 STITCH_SUPPORT_LIB_URL=" https://s3.amazonaws.com/static.realm.io/stitch-support/stitch-support-ubuntu2004-4.4.17-rc1-2-g85de0cc.tgz"
6976 ;;
7077 rhel)
7178 case ${DISTRO_VERSION_MAJOR} in
7279 7)
7380 MONGODB_DOWNLOAD_URL=" https://downloads.mongodb.com/linux/mongodb-linux-x86_64-enterprise-rhel70-5.0.3.tgz"
74- STITCH_ASSISTED_AGG_LIB_URL=" https://stitch-artifacts.s3.amazonaws.com/stitch-mongo-libs/stitch_mongo_libs_linux_64_86b48e3cb2a8d5bbf3d18281c9f42c1835bbb83b_22_11_08_03_08_06 /libmongo.so"
75- STITCH_SUPPORT_LIB_URL=" https://s3.amazonaws.com/static.realm.io/ stitch-support/stitch-support-rhel70 -4.4.17-rc1-2-g85de0cc.tgz"
81+ STITCH_ASSISTED_AGG_LIB_URL=" https://stitch-artifacts.s3.amazonaws.com/stitch-mongo-libs/stitch_mongo_libs_linux_64_patch_1e7861d9b7462f01ea220fad334f10e00f0f3cca_65135b432fbabe741bd24429_23_09_26_22_29_24 /libmongo.so"
82+ STITCH_SUPPORT_LIB_URL=" https://stitch-artifacts. s3.amazonaws.com/stitch-support/linux-x64/ stitch-support-4.4.17-rc1-2-g85de0cc.tgz"
7683 ;;
7784 * )
78- echo " Unsupported version of RHEL ${DISTRO_VERSION} "
85+ echo " Error: unsupported version of RHEL ${DISTRO_VERSION} "
7986 exit 1
8087 ;;
8188 esac
8289 ;;
8390 * )
8491 if [[ -z " ${MONGODB_DOWNLOAD_URL} " ]]; then
85- echo " Missing MONGODB_DOWNLOAD_URL env variable to download mongodb from."
92+ echo " Error: missing MONGODB_DOWNLOAD_URL env variable to download mongodb from."
8693 exit 1
8794 fi
8895 if [[ -z " ${STITCH_ASSISTED_AGG_LIB_PATH} " ]]; then
89- echo " Missing STITCH_ASSISTED_AGG_LIB_PATH env variable to find assisted agg libmongo.so"
96+ echo " Error: missing STITCH_ASSISTED_AGG_LIB_PATH env variable to find assisted agg libmongo.so"
9097 exit 1
9198 fi
9299 if [[ -z " ${STITCH_SUPPORT_LIB_PATH} " ]]; then
93- echo " Missing STITCH_SUPPORT_LIB_PATH env variable to find the mongo stitch support library"
100+ echo " Error: missing STITCH_SUPPORT_LIB_PATH env variable to find the mongo stitch support library"
94101 exit 1
95102 fi
96103 ;;
97104 esac
98105 ;;
99106 * )
100107 if [[ -z " ${MONGODB_DOWNLOAD_URL} " ]]; then
101- echo " Missing MONGODB_DOWNLOAD_URL env variable to download mongodb from."
108+ echo " Error: missing MONGODB_DOWNLOAD_URL env variable to download mongodb from."
102109 exit 1
103110 fi
104111 if [[ -z " ${STITCH_ASSISTED_AGG_LIB_PATH} " ]]; then
105- echo " Missing STITCH_ASSISTED_AGG_LIB_PATH env variable to find assisted agg libmongo.so"
112+ echo " Error: missing STITCH_ASSISTED_AGG_LIB_PATH env variable to find assisted agg libmongo.so"
106113 exit 1
107114 fi
108115 if [[ -z " ${STITCH_SUPPORT_LIB_PATH} " ]]; then
109- echo " Missing STITCH_SUPPORT_LIB_PATH env variable to find the mongo stitch support library"
116+ echo " Error: missing STITCH_SUPPORT_LIB_PATH env variable to find the mongo stitch support library"
110117 exit 1
111118 fi
112119 exit 1
@@ -453,8 +460,9 @@ echo "Adding fake appid to skip baas server drop optimization"
453460# Start the baas server on port *:9090 with the provided config JSON files
454461echo " Starting baas app server"
455462
463+ # see config overrides at https://github.com/10gen/baas/blob/master/etc/configs/test_rcore_config.json
456464" ${WORK_PATH} /baas_server" \
457- --configFile=etc/configs/test_config.json --configFile=" ${BASE_PATH} /config_overrides .json" > " ${BAAS_SERVER_LOG} " 2>&1 &
465+ --configFile=etc/configs/test_config.json --configFile=etc/configs/test_rcore_config .json > " ${BAAS_SERVER_LOG} " 2>&1 &
458466echo $! > " ${BAAS_PID_FILE} "
459467
460468WAIT_BAAS_OPTS=()
@@ -472,7 +480,7 @@ ${CURL} 'http://localhost:9090/api/admin/v3.0/auth/providers/local-userpass/logi
472480 --silent \
473481 --fail \
474482 --output /dev/null \
475- --data-raw ' {"username":"unique_user@domain.com","password":"password"}'
483+ --data ' {"username":"unique_user@domain.com","password":"password"}'
476484
477485" ${MONGO_BINARIES_DIR} /bin/${MONGOSH} " --quiet mongodb://localhost:26000/auth " ${BASE_PATH} /add_admin_roles.js"
478486
@@ -483,4 +491,4 @@ echo "---------------------------------------------"
483491echo " Baas server ready"
484492echo " ---------------------------------------------"
485493wait
486- popd > /dev/null # baas
494+ popd > /dev/null # baas
0 commit comments