Skip to content

Commit 6115e76

Browse files
committed
chore(mongodb): modify the compilation method in arm environment
1 parent 971e276 commit 6115e76

1 file changed

Lines changed: 5 additions & 16 deletions

File tree

stacks/mongodb/build.sh

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,14 @@ function build() {
1010
mkdir -p "${BIN_DIR}"
1111
if [[ ${OS_ARCH} =~ "x86" || ${OS_ARCH} =~ "amd" ]]; then
1212
OS_ARCH="x86_64"
13-
curl -sSL https://fastdl.mongodb.org/linux/mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}.tgz | tar -xvz
13+
curl -sSL https://fastdl.mongodb.org/linux/mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}.tgz | tar -xz
1414
mv ./mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}/bin/* "${BIN_DIR}/"
1515
rm -rf ./mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}
1616
elif [[ ${OS_ARCH} =~ "arm" ]]; then
17-
install-packages python3-pip python-dev-is-python3 python3-dev python3-venv \
18-
build-essential git llvm libcurl4-openssl-dev libssl-dev libldap-dev libsasl2-dev liblzma-dev libkrb5-dev
19-
python3 -m venv /usr/local/venv
20-
source /usr/local/venv/bin/activate
21-
curl -sSL https://fastdl.mongodb.org/src/mongodb-src-r${STACK_VERSION}.tar.gz | tar -xz
22-
cd mongodb-src-r${STACK_VERSION}
23-
python3 -m pip install -r etc/pip/compile-requirements.txt
24-
python3 -m pip install requirements_parser jsonschema memory_profiler puremagic networkx cxxfilt
25-
export GIT_PYTHON_REFRESH=quiet
26-
./buildscripts/scons.py -j 2 --linker=gold --disable-warnings-as-errors install-core
27-
cd build/install/bin
28-
strip mongos mongod
29-
mv * "${BIN_DIR}/"
30-
cd - && cd ../
31-
rm -rf mongodb-src-r${STACK_VERSION}
17+
OS_ARCH="aarch64"
18+
curl -sSl https://fastdl.mongodb.org/linux/mongodb-linux-${OS_ARCH}-ubuntu2204-${STACK_VERSION}.tgz | tar -xz
19+
mv ./mongodb-linux-${OS_ARCH}-ubuntu2204-${STACK_VERSION}/bin/* "${BIN_DIR}/"
20+
rm -rf ./mongodb-linux-${OS_ARCH}-ubuntu2204-${STACK_VERSION}
3221
fi
3322
}
3423
# call build stack

0 commit comments

Comments
 (0)