-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement changes to ensure mongo 7 compilation after latest official…
… endpoint changes
- Loading branch information
1 parent
67a84f1
commit bbebf34
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/mongodb-linux-x86_64-* | ||
/mongodb-src-r* | ||
/mongo-r* | ||
/*.tgz | ||
/*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
MONGODB_VERSION='7.0.5' | ||
SRC="mongodb-src-r$MONGODB_VERSION" | ||
TARGET="mongodb-linux-x86_64-${MONGODB_VERSION}" | ||
MONGO_VERSION='7.0.16' | ||
SRC="r$MONGO_VERSION" | ||
TARGET="mongodb-linux-x86_64-${MONGO_VERSION}" | ||
BIN="$TARGET/bin" | ||
mongoSrcUrl="https://github.com/mongodb/mongo/archive/refs/tags/$SRC.tar.gz" | ||
|
||
mongoSrcFolder="mongo-$SRC" | ||
[ ! -f "${SRC}.tar.gz" ] && curl -L -C - -O "$mongoSrcUrl" | ||
[ ! -d $SRC ] && tar -xzf "${SRC}.tar.gz" | ||
echo "{\"version\": \"${MONGO_VERSION}\"}" > $mongoSrcFolder/version.json | ||
|
||
docker run --memory=58g --rm -it -v $(pwd)/$mongoSrcFolder:/mongodb mongodb-builder -e MONGO_VERSION="${MONGO_VERSION}" | ||
|
||
[ ! -d $SRC ] && curl "https://fastdl.mongodb.org/src/$SRC.tar.gz" | tar -xz | ||
docker run --memory=58g --rm -it -v $(pwd)/$SRC:/mongodb mongodb-builder | ||
mkdir -p $BIN | ||
sudo mv "$SRC/build/install/bin/mongos" "$SRC/build/install/bin/mongod" $BIN | ||
sudo mv "$mongoSrcFolder/build/install/bin/mongos" "$mongoSrcFolder/build/install/bin/mongod" $BIN | ||
sudo tar -czf "$TARGET.tgz" $TARGET |