Commit 05753f39 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Updated mongodb to 4.2.4 to support builds with Python 3

parent 464706ec
......@@ -27,17 +27,17 @@ all: mongodb-service
mkswap swap
swapon swap
tar xf mongodb-src-r4.0.10.tar.gz
cd mongodb-src-r4.0.10 && pip3 install -r buildscripts/requirements.txt
cd mongodb-src-r4.0.10 && scons all --release --opt=on --disable-warnings-as-errors MONGO_VERSION=4.0.10 -j 1
cd mongodb-src-r4.0.10 && scons --prefix=/usr install --disable-warnings-as-errors MONGO_VERSION=4.0.10
cd mongodb-src-r4.0.10 && pip3 uninstall -y -r buildscripts/requirements.txt
tar xf mongo-r4.2.4.tar.gz
cd mongo-r4.2.4 && pip3 install -r buildscripts/requirements.txt
cd mongo-r4.2.4 && scons all --release --opt=on --disable-warnings-as-errors MONGO_VERSION=4.2.4 -j 1
cd mongo-r4.2.4 && scons --prefix=/usr install --disable-warnings-as-errors MONGO_VERSION=4.2.4
cd mongo-r4.2.4 && pip3 uninstall -y -r buildscripts/requirements.txt
@echo "$$MONGODB_SERVICE" > /lib/systemd/system/mongodb.service
systemctl enable mongodb.service
install -v -Dm755 mongod.conf /etc
install -v -m755 -o mongodb -g mongodb -d /var/lib/mongodb
@echo "d /run/mongodb 755 mongodb mongodb -" > /usr/lib/tmpfiles.d/mongodb.conf
rm -rf mongodb-src-r4.0.10
rm -rf mongo-r4.2.4
swapoff swap
rm -rf swap
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment