Skip to content

Commit 7d56058

Browse files
committed
megre(mongodb)
1 parent fa2667e commit 7d56058

1 file changed

Lines changed: 1 addition & 23 deletions

File tree

stacks/mongodb/build.sh

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ function build() {
1010
mkdir -p "${BIN_DIR}"
1111
if [[ ${OS_ARCH} =~ "x86" || ${OS_ARCH} =~ "amd" ]]; then
1212
OS_ARCH="x86_64"
13-
<<<<<<< HEAD
1413
curl -sSL https://fastdl.mongodb.org/linux/mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}.tgz | tar -xz
1514
mv ./mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}/bin/* "${BIN_DIR}/"
1615
rm -rf ./mongodb-linux-${OS_ARCH}-debian12-${STACK_VERSION}
@@ -19,28 +18,7 @@ function build() {
1918
curl -sSl https://fastdl.mongodb.org/linux/mongodb-linux-${OS_ARCH}-ubuntu2204-${STACK_VERSION}.tgz | tar -xz
2019
mv ./mongodb-linux-${OS_ARCH}-ubuntu2204-${STACK_VERSION}/bin/* "${BIN_DIR}/"
2120
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
4321
fi
4422
}
4523
# call build stack
46-
build-stack "${1}"
24+
build-stack "${1}"

0 commit comments

Comments
 (0)