未验证 提交 69d5e1ee 编写于 作者: S Sercan Özdemir 提交者: GitHub

Merge pull request #520 from stephanGarland/master

Modified bundled mongo to support connecting to mongo:latest
......@@ -8,6 +8,10 @@ apt-get update -y
apt-get install -y --no-install-recommends curl ca-certificates bzip2 build-essential numactl python git wget bsdtar
curl -O -L http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.0k-1~deb9u1_amd64.deb
dpkg -i libssl1.1_1.1.0k-1~deb9u1_amd64.deb
rm libssl1.1_1.1.0k-1~deb9u1_amd64.deb
dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"
wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"
......
#!/bin/bash
set -e
if [ "$INSTALL_MONGO" = true ]; then
printf "\n[-] Installing MongoDB 3.4.2...\n\n"
printf "\n[-] Installing MongoDB 4.2...\n\n"
cd /tmp
curl -O -L https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian81-3.4.2.tgz
tar xvzf mongodb-linux-x86_64-debian81-3.4.2.tgz
rm mongodb-linux-x86_64-debian81-3.4.2.tgz
curl -O -L https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian92-v4.2-latest.tgz
mkdir mongodb-linux-x86_64-debian92-v4.2
tar xvzf mongodb-linux-x86_64-debian92-v4.2-latest.tgz --strip 1 -C mongodb-linux-x86_64-debian92-v4.2
rm mongodb-linux-x86_64-debian92-v4.2-latest.tgz
rm -rf /opt/mongodb
mv mongodb-linux-x86_64-debian81-3.4.2 /opt/mongodb
mv mongodb-linux-x86_64-debian92-v4.2 /opt/mongodb
ln -sf /opt/mongodb/bin/mongo /usr/bin/mongo
ln -sf /opt/mongodb/bin/mongod /usr/bin/mongod
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册