Skip to content

Commit fa2667e

Browse files
committed
megre(mongodb)
2 parents 6115e76 + 9f541ac commit fa2667e

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

stacks/mongodb/build.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function build() {
1010
mkdir -p "${BIN_DIR}"
1111
if [[ ${OS_ARCH} =~ "x86" || ${OS_ARCH} =~ "amd" ]]; then
1212
OS_ARCH="x86_64"
13+
<<<<<<< HEAD
1314
curl -sSL https://fastdl.mongodb.org/linux/mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}.tgz | tar -xz
1415
mv ./mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}/bin/* "${BIN_DIR}/"
1516
rm -rf ./mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}
@@ -18,6 +19,27 @@ function build() {
1819
curl -sSl https://fastdl.mongodb.org/linux/mongodb-linux-${OS_ARCH}-ubuntu2204-${STACK_VERSION}.tgz | tar -xz
1920
mv ./mongodb-linux-${OS_ARCH}-ubuntu2204-${STACK_VERSION}/bin/* "${BIN_DIR}/"
2021
rm -rf ./mongodb-linux-${OS_ARCH}-ubuntu2204-${STACK_VERSION}
22+
=======
23+
curl -sSL https://fastdl.mongodb.org/linux/mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}.tgz | tar -xvz
24+
mv ./mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}/bin/* "${BIN_DIR}/"
25+
rm -rf ./mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}
26+
elif [[ ${OS_ARCH} =~ "arm" ]]; then
27+
install-packages python3-pip python-dev-is-python3 python3-dev python3-venv \
28+
build-essential git llvm libcurl4-openssl-dev libssl-dev libldap-dev libsasl2-dev liblzma-dev libkrb5-dev
29+
python3 -m venv /usr/local/venv
30+
source /usr/local/venv/bin/activate
31+
curl -sSL https://fastdl.mongodb.org/src/mongodb-src-r${STACK_VERSION}.tar.gz | tar -xz
32+
cd mongodb-src-r${STACK_VERSION}
33+
python3 -m pip install -r etc/pip/compile-requirements.txt
34+
python3 -m pip install requirements_parser jsonschema memory_profiler puremagic networkx cxxfilt
35+
export GIT_PYTHON_REFRESH=quiet
36+
./buildscripts/scons.py -j 2 --linker=gold --disable-warnings-as-errors install-core
37+
cd build/install/bin
38+
strip mongos mongod
39+
mv * "${BIN_DIR}/"
40+
cd - && cd ../
41+
rm -rf mongodb-src-r${STACK_VERSION}
42+
>>>>>>> 9f541ac348427b130a83d04347278c424a3821a6
2143
fi
2244
}
2345
# call build stack

0 commit comments

Comments
 (0)