Skip to content

Commit bbebf34

Browse files
committed
implement changes to ensure mongo 7 compilation after latest official endpoint changes
1 parent 67a84f1 commit bbebf34

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/mongodb-linux-x86_64-*
22
/mongodb-src-r*
3+
/mongo-r*
34
/*.tgz
5+
/*.tar.gz

run-builder.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
#!/bin/bash
22
set -e
33

4-
MONGODB_VERSION='7.0.5'
5-
SRC="mongodb-src-r$MONGODB_VERSION"
6-
TARGET="mongodb-linux-x86_64-${MONGODB_VERSION}"
4+
MONGO_VERSION='7.0.16'
5+
SRC="r$MONGO_VERSION"
6+
TARGET="mongodb-linux-x86_64-${MONGO_VERSION}"
77
BIN="$TARGET/bin"
8+
mongoSrcUrl="https://github.com/mongodb/mongo/archive/refs/tags/$SRC.tar.gz"
9+
10+
mongoSrcFolder="mongo-$SRC"
11+
[ ! -f "${SRC}.tar.gz" ] && curl -L -C - -O "$mongoSrcUrl"
12+
[ ! -d $SRC ] && tar -xzf "${SRC}.tar.gz"
13+
echo "{\"version\": \"${MONGO_VERSION}\"}" > $mongoSrcFolder/version.json
14+
15+
docker run --memory=58g --rm -it -v $(pwd)/$mongoSrcFolder:/mongodb mongodb-builder -e MONGO_VERSION="${MONGO_VERSION}"
816

9-
[ ! -d $SRC ] && curl "https://fastdl.mongodb.org/src/$SRC.tar.gz" | tar -xz
10-
docker run --memory=58g --rm -it -v $(pwd)/$SRC:/mongodb mongodb-builder
1117
mkdir -p $BIN
12-
sudo mv "$SRC/build/install/bin/mongos" "$SRC/build/install/bin/mongod" $BIN
18+
sudo mv "$mongoSrcFolder/build/install/bin/mongos" "$mongoSrcFolder/build/install/bin/mongod" $BIN
1319
sudo tar -czf "$TARGET.tgz" $TARGET

0 commit comments

Comments
 (0)