diff --git a/4.0/Dockerfile b/4.0/Dockerfile index 037c0e187..c380a2e9a 100644 --- a/4.0/Dockerfile +++ b/4.0/Dockerfile @@ -99,15 +99,12 @@ RUN set -x \ # installing "mongodb-enterprise" pulls in "tzdata" which prompts for input && export DEBIAN_FRONTEND=noninteractive \ && apt-get update \ -# starting with MongoDB 4.3 (and backported to 4.0 and 4.2 *and* 3.6??), the postinst for server includes an unconditional "systemctl daemon-reload" (and we don't have anything for "systemctl" to talk to leading to dbus errors and failed package installs) - && ln -s /bin/true /usr/local/bin/systemctl \ && apt-get install -y \ ${MONGO_PACKAGE}=$MONGO_VERSION \ ${MONGO_PACKAGE}-server=$MONGO_VERSION \ ${MONGO_PACKAGE}-shell=$MONGO_VERSION \ ${MONGO_PACKAGE}-mongos=$MONGO_VERSION \ ${MONGO_PACKAGE}-tools=$MONGO_VERSION \ - && rm -f /usr/local/bin/systemctl \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/mongodb \ && mv /etc/mongod.conf /etc/mongod.conf.orig diff --git a/4.2/Dockerfile b/4.2/Dockerfile index 1216674a3..bf50a8a82 100644 --- a/4.2/Dockerfile +++ b/4.2/Dockerfile @@ -99,15 +99,12 @@ RUN set -x \ # installing "mongodb-enterprise" pulls in "tzdata" which prompts for input && export DEBIAN_FRONTEND=noninteractive \ && apt-get update \ -# starting with MongoDB 4.3 (and backported to 4.0 and 4.2 *and* 3.6??), the postinst for server includes an unconditional "systemctl daemon-reload" (and we don't have anything for "systemctl" to talk to leading to dbus errors and failed package installs) - && ln -s /bin/true /usr/local/bin/systemctl \ && apt-get install -y \ ${MONGO_PACKAGE}=$MONGO_VERSION \ ${MONGO_PACKAGE}-server=$MONGO_VERSION \ ${MONGO_PACKAGE}-shell=$MONGO_VERSION \ ${MONGO_PACKAGE}-mongos=$MONGO_VERSION \ ${MONGO_PACKAGE}-tools=$MONGO_VERSION \ - && rm -f /usr/local/bin/systemctl \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/mongodb \ && mv /etc/mongod.conf /etc/mongod.conf.orig diff --git a/4.4/Dockerfile b/4.4/Dockerfile index 873f2cfbe..c425b8af5 100644 --- a/4.4/Dockerfile +++ b/4.4/Dockerfile @@ -99,15 +99,12 @@ RUN set -x \ # installing "mongodb-enterprise" pulls in "tzdata" which prompts for input && export DEBIAN_FRONTEND=noninteractive \ && apt-get update \ -# starting with MongoDB 4.3 (and backported to 4.0 and 4.2 *and* 3.6??), the postinst for server includes an unconditional "systemctl daemon-reload" (and we don't have anything for "systemctl" to talk to leading to dbus errors and failed package installs) - && ln -s /bin/true /usr/local/bin/systemctl \ && apt-get install -y \ ${MONGO_PACKAGE}=$MONGO_VERSION \ ${MONGO_PACKAGE}-server=$MONGO_VERSION \ ${MONGO_PACKAGE}-shell=$MONGO_VERSION \ ${MONGO_PACKAGE}-mongos=$MONGO_VERSION \ ${MONGO_PACKAGE}-tools=$MONGO_VERSION \ - && rm -f /usr/local/bin/systemctl \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/mongodb \ && mv /etc/mongod.conf /etc/mongod.conf.orig diff --git a/5.0/Dockerfile b/5.0/Dockerfile index 776196912..67caf927a 100644 --- a/5.0/Dockerfile +++ b/5.0/Dockerfile @@ -99,15 +99,12 @@ RUN set -x \ # installing "mongodb-enterprise" pulls in "tzdata" which prompts for input && export DEBIAN_FRONTEND=noninteractive \ && apt-get update \ -# starting with MongoDB 4.3 (and backported to 4.0 and 4.2 *and* 3.6??), the postinst for server includes an unconditional "systemctl daemon-reload" (and we don't have anything for "systemctl" to talk to leading to dbus errors and failed package installs) - && ln -s /bin/true /usr/local/bin/systemctl \ && apt-get install -y \ ${MONGO_PACKAGE}=$MONGO_VERSION \ ${MONGO_PACKAGE}-server=$MONGO_VERSION \ ${MONGO_PACKAGE}-shell=$MONGO_VERSION \ ${MONGO_PACKAGE}-mongos=$MONGO_VERSION \ ${MONGO_PACKAGE}-tools=$MONGO_VERSION \ - && rm -f /usr/local/bin/systemctl \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/mongodb \ && mv /etc/mongod.conf /etc/mongod.conf.orig diff --git a/Dockerfile-linux.template b/Dockerfile-linux.template index 74a490a9c..3575d9ad4 100644 --- a/Dockerfile-linux.template +++ b/Dockerfile-linux.template @@ -98,15 +98,12 @@ RUN set -x \ # installing "mongodb-enterprise" pulls in "tzdata" which prompts for input && export DEBIAN_FRONTEND=noninteractive \ && apt-get update \ -# starting with MongoDB 4.3 (and backported to 4.0 and 4.2 *and* 3.6??), the postinst for server includes an unconditional "systemctl daemon-reload" (and we don't have anything for "systemctl" to talk to leading to dbus errors and failed package installs) - && ln -s /bin/true /usr/local/bin/systemctl \ && apt-get install -y \ ${MONGO_PACKAGE}=$MONGO_VERSION \ ${MONGO_PACKAGE}-server=$MONGO_VERSION \ ${MONGO_PACKAGE}-shell=$MONGO_VERSION \ ${MONGO_PACKAGE}-mongos=$MONGO_VERSION \ ${MONGO_PACKAGE}-tools=$MONGO_VERSION \ - && rm -f /usr/local/bin/systemctl \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/mongodb \ && mv /etc/mongod.conf /etc/mongod.conf.orig