Skip to content

Commit 0d2de32

Browse files
mms-build-accountmircea-cosbuc
andauthoredDec 21, 2023
Kubernetes Enterprise Operator Release 1.24.0 (#272)
* Updated * Updated * Remove references to rc images --------- Co-authored-by: Mircea Cosbuc <mircea.cosbuc@mongodb.com>
1 parent 6621196 commit 0d2de32

File tree

25 files changed

+574
-96
lines changed

25 files changed

+574
-96
lines changed
 
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG agent_version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${agent_version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="support@mongodb.com"
15+
16+
RUN microdnf install -y --disableplugin=subscription-manager curl \
17+
hostname nss_wrapper tar gzip procps\
18+
&& microdnf upgrade -y \
19+
&& rm -rf /var/lib/apt/lists/*
20+
21+
RUN mkdir -p /agent \
22+
&& mkdir -p /var/lib/mongodb-mms-automation \
23+
&& mkdir -p /var/log/mongodb-mms-automation/ \
24+
&& chmod -R +wr /var/log/mongodb-mms-automation/ \
25+
# ensure that the agent user can write the logs in OpenShift
26+
&& touch /var/log/mongodb-mms-automation/readiness.log \
27+
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log
28+
29+
30+
COPY --from=base /data/mongodb-agent.tar.gz /agent
31+
COPY --from=base /data/mongodb-tools.tgz /agent
32+
COPY --from=base /data/LICENSE /licenses/LICENSE
33+
34+
RUN tar xfz /agent/mongodb-agent.tar.gz \
35+
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \
36+
&& chmod +x /agent/mongodb-agent \
37+
&& mkdir -p /var/lib/automation/config \
38+
&& chmod -R +r /var/lib/automation/config \
39+
&& rm /agent/mongodb-agent.tar.gz \
40+
&& rm -r mongodb-mms-automation-agent-*
41+
42+
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz
43+
44+
USER 2000
45+
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"]

‎dockerfiles/mongodb-agent/11.0.11.7036-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \

‎dockerfiles/mongodb-agent/11.0.12.7051-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \

‎dockerfiles/mongodb-agent/11.0.13.7055-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \

‎dockerfiles/mongodb-agent/11.0.14.7064-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \

‎dockerfiles/mongodb-agent/11.0.15.7073-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \

‎dockerfiles/mongodb-agent/11.0.16.7080-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \

‎dockerfiles/mongodb-agent/11.12.0.7388-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG agent_version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${agent_version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="support@mongodb.com"
15+
16+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
17+
RUN microdnf install -y --disableplugin=subscription-manager curl \
18+
hostname tar gzip procps\
19+
&& microdnf upgrade -y \
20+
&& rm -rf /var/lib/apt/lists/*
21+
22+
RUN mkdir -p /agent \
23+
&& mkdir -p /var/lib/mongodb-mms-automation \
24+
&& mkdir -p /var/log/mongodb-mms-automation/ \
25+
&& chmod -R +wr /var/log/mongodb-mms-automation/ \
26+
# ensure that the agent user can write the logs in OpenShift
27+
&& touch /var/log/mongodb-mms-automation/readiness.log \
28+
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log
29+
30+
31+
COPY --from=base /data/mongodb-agent.tar.gz /agent
32+
COPY --from=base /data/mongodb-tools.tgz /agent
33+
COPY --from=base /data/LICENSE /licenses/LICENSE
34+
35+
RUN tar xfz /agent/mongodb-agent.tar.gz \
36+
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \
37+
&& chmod +x /agent/mongodb-agent \
38+
&& mkdir -p /var/lib/automation/config \
39+
&& chmod -R +r /var/lib/automation/config \
40+
&& rm /agent/mongodb-agent.tar.gz \
41+
&& rm -r mongodb-mms-automation-agent-*
42+
43+
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz
44+
45+
USER 2000
46+
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"]

‎dockerfiles/mongodb-agent/12.0.4.7554-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \

‎dockerfiles/mongodb-agent/12.0.8.7575-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
7+
8+
LABEL name="MongoDB Enterprise Database" \
9+
version="1.23.0" \
10+
summary="MongoDB Enterprise Database Image" \
11+
description="MongoDB Enterprise Database Image" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="support@mongodb.com"
15+
16+
17+
18+
19+
20+
ENV MMS_HOME /mongodb-automation
21+
ENV MMS_LOG_DIR /var/log/mongodb-mms-automation
22+
23+
24+
25+
RUN microdnf update -y && rm -rf /var/cache/yum
26+
27+
# these are the packages needed for the agent
28+
RUN microdnf install -y --disableplugin=subscription-manager \
29+
hostname \
30+
nss_wrapper \
31+
procps
32+
33+
34+
# these are the packages needed for MongoDB
35+
# (https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ "RHEL/CentOS 8" tab)
36+
RUN microdnf install -y --disableplugin=subscription-manager \
37+
cyrus-sasl \
38+
cyrus-sasl-gssapi \
39+
cyrus-sasl-plain \
40+
krb5-libs \
41+
libcurl \
42+
lm_sensors-libs \
43+
net-snmp \
44+
net-snmp-agent-libs \
45+
openldap \
46+
openssl \
47+
jq \
48+
tar \
49+
findutils
50+
51+
52+
53+
RUN ln -s /usr/lib64/libsasl2.so.3 /usr/lib64/libsasl2.so.2
54+
55+
56+
# Set the required perms
57+
RUN mkdir -p "${MMS_LOG_DIR}" \
58+
&& chmod 0775 "${MMS_LOG_DIR}" \
59+
&& mkdir -p /var/lib/mongodb-mms-automation \
60+
&& chmod 0775 /var/lib/mongodb-mms-automation \
61+
&& mkdir -p /data \
62+
&& chmod 0775 /data \
63+
&& mkdir -p /journal \
64+
&& chmod 0775 /journal \
65+
&& mkdir -p "${MMS_HOME}" \
66+
&& chmod -R 0775 "${MMS_HOME}"
67+
68+
69+
70+
71+
# USER needs to be set for this image to pass RedHat verification. Some customers have these requirements as well
72+
# It does not matter what number it is, as long as it is set to something.
73+
# However, OpenShift will run the container as a random user,
74+
# and the number in this configuration is not relevant.
75+
USER 2000
76+
77+
78+
# The docker image doesn't have any scripts so by default does nothing
79+
# The script will be copied in runtime from init containers and the operator is expected
80+
# to override the COMMAND
81+
ENTRYPOINT ["sleep infinity"]
82+
83+
84+
COPY --from=base /data/licenses/mongodb-enterprise-database /licenses/mongodb-enterprise-database
85+
86+
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
7+
8+
LABEL name="MongoDB Enterprise Database" \
9+
version="1.24.0" \
10+
summary="MongoDB Enterprise Database Image" \
11+
description="MongoDB Enterprise Database Image" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="support@mongodb.com"
15+
16+
17+
18+
19+
20+
ENV MMS_HOME /mongodb-automation
21+
ENV MMS_LOG_DIR /var/log/mongodb-mms-automation
22+
23+
24+
25+
RUN microdnf update -y && rm -rf /var/cache/yum
26+
27+
# these are the packages needed for the agent
28+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
29+
RUN microdnf install -y --disableplugin=subscription-manager \
30+
hostname \
31+
procps
32+
33+
34+
# these are the packages needed for MongoDB
35+
# (https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ "RHEL/CentOS 8" tab)
36+
RUN microdnf install -y --disableplugin=subscription-manager \
37+
cyrus-sasl \
38+
cyrus-sasl-gssapi \
39+
cyrus-sasl-plain \
40+
krb5-libs \
41+
libcurl \
42+
lm_sensors-libs \
43+
net-snmp \
44+
net-snmp-agent-libs \
45+
openldap \
46+
openssl \
47+
jq \
48+
tar \
49+
findutils
50+
51+
52+
53+
RUN ln -s /usr/lib64/libsasl2.so.3 /usr/lib64/libsasl2.so.2
54+
55+
56+
# Set the required perms
57+
RUN mkdir -p "${MMS_LOG_DIR}" \
58+
&& chmod 0775 "${MMS_LOG_DIR}" \
59+
&& mkdir -p /var/lib/mongodb-mms-automation \
60+
&& chmod 0775 /var/lib/mongodb-mms-automation \
61+
&& mkdir -p /data \
62+
&& chmod 0775 /data \
63+
&& mkdir -p /journal \
64+
&& chmod 0775 /journal \
65+
&& mkdir -p "${MMS_HOME}" \
66+
&& chmod -R 0775 "${MMS_HOME}"
67+
68+
69+
70+
71+
# USER needs to be set for this image to pass RedHat verification. Some customers have these requirements as well
72+
# It does not matter what number it is, as long as it is set to something.
73+
# However, OpenShift will run the container as a random user,
74+
# and the number in this configuration is not relevant.
75+
USER 2000
76+
77+
78+
# The docker image doesn't have any scripts so by default does nothing
79+
# The script will be copied in runtime from init containers and the operator is expected
80+
# to override the COMMAND
81+
ENTRYPOINT ["sleep infinity"]
82+
83+
84+
COPY --from=base /data/licenses/mongodb-enterprise-database /licenses/mongodb-enterprise-database
85+
86+

‎dockerfiles/mongodb-enterprise-database/2.0.1/ubi/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ RUN microdnf install -y --disableplugin=subscription-manager \
4949
findutils
5050

5151

52-
RUN microdnf remove perl-IO-Socket-SSL
53-
5452
RUN ln -s /usr/lib64/libsasl2.so.3 /usr/lib64/libsasl2.so.2
5553

5654

‎dockerfiles/mongodb-enterprise-database/2.0.2/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ RUN microdnf install -y --disableplugin=subscription-manager \
4949
findutils
5050

5151

52-
RUN microdnf remove perl-IO-Socket-SSL
5352

5453
RUN ln -s /usr/lib64/libsasl2.so.3 /usr/lib64/libsasl2.so.2
5554

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
LABEL name="MongoDB Enterprise Init AppDB" \
8+
version="mongodb-enterprise-init-appdb-${version}" \
9+
summary="MongoDB Enterprise AppDB Init Image" \
10+
description="Startup Scripts for MongoDB Enterprise Application Database for Ops Manager" \
11+
release="1" \
12+
vendor="MongoDB" \
13+
maintainer="support@mongodb.com"
14+
15+
COPY --from=base /data/readinessprobe /probes/readinessprobe
16+
COPY --from=base /data/probe.sh /probes/probe.sh
17+
COPY --from=base /data/scripts/ /scripts/
18+
COPY --from=base /data/licenses /licenses/
19+
COPY --from=base /data/version-upgrade-hook /probes/version-upgrade-hook
20+
21+
22+
RUN microdnf update --nodocs \
23+
&& microdnf -y install --nodocs tar gzip \
24+
&& microdnf clean all
25+
26+
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
27+
28+
29+
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \
30+
&& rm /tools/mongodb_tools.tgz
31+
32+
USER 2000
33+
ENTRYPOINT [ "/bin/cp", "-f", "-r", "/scripts/agent-launcher.sh", "/scripts/agent-launcher-lib.sh", "/probes/readinessprobe", "/probes/probe.sh", "/tools", "/opt/scripts/" ]
34+
35+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
LABEL name="MongoDB Enterprise Init Database" \
8+
version="mongodb-enterprise-init-database-${version}" \
9+
summary="MongoDB Enterprise Database Init Image" \
10+
description="Startup Scripts for MongoDB Enterprise Database" \
11+
release="1" \
12+
vendor="MongoDB" \
13+
maintainer="support@mongodb.com"
14+
15+
COPY --from=base /data/readinessprobe /probes/readinessprobe
16+
COPY --from=base /data/probe.sh /probes/probe.sh
17+
COPY --from=base /data/scripts/ /scripts/
18+
COPY --from=base /data/licenses /licenses/
19+
20+
21+
RUN microdnf update --nodocs \
22+
&& microdnf -y install --nodocs tar gzip \
23+
&& microdnf clean all
24+
25+
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
26+
27+
28+
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \
29+
&& rm /tools/mongodb_tools.tgz
30+
31+
USER 2000
32+
ENTRYPOINT [ "/bin/cp", "-f", "-r", "/scripts/agent-launcher.sh", "/scripts/agent-launcher-lib.sh", "/probes/readinessprobe", "/probes/probe.sh", "/tools", "/opt/scripts/" ]
33+
34+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
LABEL name="MongoDB Enterprise Init Database" \
8+
version="mongodb-enterprise-init-database-${version}" \
9+
summary="MongoDB Enterprise Database Init Image" \
10+
description="Startup Scripts for MongoDB Enterprise Database" \
11+
release="1" \
12+
vendor="MongoDB" \
13+
maintainer="support@mongodb.com"
14+
15+
COPY --from=base /data/readinessprobe /probes/readinessprobe
16+
COPY --from=base /data/probe.sh /probes/probe.sh
17+
COPY --from=base /data/scripts/ /scripts/
18+
COPY --from=base /data/licenses /licenses/
19+
20+
21+
RUN microdnf update --nodocs \
22+
&& microdnf -y install --nodocs tar gzip \
23+
&& microdnf clean all
24+
25+
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
26+
27+
28+
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \
29+
&& rm /tools/mongodb_tools.tgz
30+
31+
USER 2000
32+
ENTRYPOINT [ "/bin/cp", "-f", "-r", "/scripts/agent-launcher.sh", "/scripts/agent-launcher-lib.sh", "/probes/readinessprobe", "/probes/probe.sh", "/tools", "/opt/scripts/" ]
33+
34+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
LABEL name="MongoDB Enterprise Ops Manager Init" \
7+
maintainer="support@mongodb.com" \
8+
vendor="MongoDB" \
9+
version="mongodb-enterprise-init-ops-manager-1.23.0" \
10+
release="1" \
11+
summary="MongoDB Enterprise Ops Manager Init Image" \
12+
description="Startup Scripts for MongoDB Enterprise Ops Manager"
13+
14+
15+
COPY --from=base /data/scripts /scripts
16+
COPY --from=base /data/licenses /licenses
17+
18+
19+
RUN microdnf update --nodocs \
20+
&& microdnf clean all
21+
22+
23+
USER 2000
24+
ENTRYPOINT [ "/bin/cp", "-f", "/scripts/docker-entry-point.sh", "/scripts/backup-daemon-liveness-probe.sh", "/scripts/mmsconfiguration", "/scripts/backup-daemon-readiness-probe", "/opt/scripts/" ]
25+
26+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
LABEL name="MongoDB Enterprise Ops Manager Init" \
7+
maintainer="support@mongodb.com" \
8+
vendor="MongoDB" \
9+
version="mongodb-enterprise-init-ops-manager-1.24.0" \
10+
release="1" \
11+
summary="MongoDB Enterprise Ops Manager Init Image" \
12+
description="Startup Scripts for MongoDB Enterprise Ops Manager"
13+
14+
15+
COPY --from=base /data/scripts /scripts
16+
COPY --from=base /data/licenses /licenses
17+
18+
19+
RUN microdnf update --nodocs \
20+
&& microdnf clean all
21+
22+
23+
USER 2000
24+
ENTRYPOINT [ "/bin/cp", "-f", "/scripts/docker-entry-point.sh", "/scripts/backup-daemon-liveness-probe.sh", "/scripts/mmsconfiguration", "/scripts/backup-daemon-readiness-probe", "/opt/scripts/" ]
25+
26+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#
2+
# Base Template Dockerfile for Operator Image.
3+
#
4+
5+
ARG imagebase
6+
FROM ${imagebase} as base
7+
8+
FROM registry.access.redhat.com/ubi8/ubi-minimal
9+
10+
11+
LABEL name="MongoDB Enterprise Operator" \
12+
maintainer="support@mongodb.com" \
13+
vendor="MongoDB" \
14+
version="1.24.0" \
15+
release="1" \
16+
summary="MongoDB Enterprise Operator Image" \
17+
description="MongoDB Enterprise Operator Image"
18+
19+
20+
# Building an UBI-based image: https://red.ht/3n6b9y0
21+
RUN microdnf update \
22+
--disableplugin=subscription-manager \
23+
--disablerepo=* --enablerepo=ubi-8-appstream-rpms --enablerepo=ubi-8-baseos-rpms -y \
24+
&& rm -rf /var/cache/yum
25+
26+
27+
28+
29+
COPY --from=base /data/mongodb-enterprise-operator /usr/local/bin/mongodb-enterprise-operator
30+
COPY --from=base /data/om_version_mapping.json /usr/local/om_version_mapping.json
31+
COPY --from=base /data/licenses /licenses/
32+
33+
USER 2000
34+
35+
36+
37+
ENTRYPOINT exec /usr/local/bin/mongodb-enterprise-operator
38+
39+
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
7+
LABEL name="MongoDB Enterprise Ops Manager" \
8+
maintainer="support@mongodb.com" \
9+
vendor="MongoDB" \
10+
version="6.0.21" \
11+
release="1" \
12+
summary="MongoDB Enterprise Ops Manager Image" \
13+
description="MongoDB Enterprise Ops Manager"
14+
15+
16+
ENV MMS_HOME /mongodb-ops-manager
17+
ENV MMS_PROP_FILE ${MMS_HOME}/conf/conf-mms.properties
18+
ENV MMS_CONF_FILE ${MMS_HOME}/conf/mms.conf
19+
ENV MMS_LOG_DIR ${MMS_HOME}/logs
20+
ENV MMS_TMP_DIR ${MMS_HOME}/tmp
21+
22+
EXPOSE 8080
23+
24+
# OpsManager docker image needs to have the MongoDB dependencies because the
25+
# backup daemon is running its database locally
26+
27+
RUN microdnf install --disableplugin=subscription-manager -y \
28+
cyrus-sasl \
29+
cyrus-sasl-gssapi \
30+
cyrus-sasl-plain \
31+
krb5-libs \
32+
libcurl \
33+
libpcap \
34+
lm_sensors-libs \
35+
net-snmp \
36+
net-snmp-agent-libs \
37+
openldap \
38+
openssl \
39+
tar \
40+
rpm-libs \
41+
net-tools \
42+
procps-ng \
43+
ncurses
44+
45+
46+
COPY --from=base /data/licenses /licenses/
47+
48+
49+
50+
RUN curl --fail -L -o ops_manager.tar.gz https://downloads.mongodb.com/on-prem-mms/tar/mongodb-mms-6.0.21.100.20231213T1202Z.tar.gz \
51+
&& tar -xzf ops_manager.tar.gz \
52+
&& rm ops_manager.tar.gz \
53+
&& mv mongodb-mms* "${MMS_HOME}"
54+
55+
56+
# permissions
57+
RUN chmod -R 0777 "${MMS_LOG_DIR}" \
58+
&& chmod -R 0777 "${MMS_TMP_DIR}" \
59+
&& chmod -R 0775 "${MMS_HOME}/conf" \
60+
&& chmod -R 0775 "${MMS_HOME}/jdk" \
61+
&& mkdir "${MMS_HOME}/mongodb-releases/" \
62+
&& chmod -R 0775 "${MMS_HOME}/mongodb-releases" \
63+
&& chmod -R 0777 "${MMS_CONF_FILE}" \
64+
&& chmod -R 0777 "${MMS_PROP_FILE}"
65+
66+
# The "${MMS_HOME}/conf" will be populated by the docker-entry-point.sh.
67+
# For now we need to move into the templates directory.
68+
RUN cp -r "${MMS_HOME}/conf" "${MMS_HOME}/conf-template"
69+
70+
USER 2000
71+
72+
# operator to change the entrypoint to: /mongodb-ops-manager/bin/mongodb-mms start_mms (or a wrapper around this)
73+
ENTRYPOINT [ "sleep infinity" ]
74+
75+

‎mongodb-enterprise-multi-cluster.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ spec:
137137
runAsUser: 2000
138138
containers:
139139
- name: mongodb-enterprise-operator-multi-cluster
140-
image: "quay.io/mongodb/mongodb-enterprise-operator-ubi:1.22.0"
140+
image: "quay.io/mongodb/mongodb-enterprise-operator-ubi:1.24.0"
141141
imagePullPolicy: Always
142142
args:
143143
- -watch-resource=mongodb
@@ -177,25 +177,25 @@ spec:
177177
- name: INIT_DATABASE_IMAGE_REPOSITORY
178178
value: quay.io/mongodb/mongodb-enterprise-init-database-ubi
179179
- name: INIT_DATABASE_VERSION
180-
value: 1.23.0
180+
value: 1.24.0
181181
- name: DATABASE_VERSION
182-
value: 1.23.0
182+
value: 1.24.0
183183
# Ops Manager
184184
- name: OPS_MANAGER_IMAGE_REPOSITORY
185185
value: quay.io/mongodb/mongodb-enterprise-ops-manager-ubi
186186
- name: INIT_OPS_MANAGER_IMAGE_REPOSITORY
187187
value: quay.io/mongodb/mongodb-enterprise-init-ops-manager-ubi
188188
- name: INIT_OPS_MANAGER_VERSION
189-
value: 1.23.0
189+
value: 1.24.0
190190
# AppDB
191191
- name: INIT_APPDB_IMAGE_REPOSITORY
192192
value: quay.io/mongodb/mongodb-enterprise-init-appdb-ubi
193193
- name: INIT_APPDB_VERSION
194-
value: 1.23.0
194+
value: 1.24.0
195195
- name: OPS_MANAGER_IMAGE_PULL_POLICY
196196
value: Always
197197
- name: AGENT_IMAGE
198-
value: "quay.io/mongodb/mongodb-agent-ubi:12.0.28.7763-1"
198+
value: "quay.io/mongodb/mongodb-agent-ubi:12.0.29.7785-1"
199199
- name: MONGODB_IMAGE
200200
value: mongodb-enterprise-appdb-database-ubi
201201
- name: MONGODB_REPO_URL

‎mongodb-enterprise-openshift.yaml

Lines changed: 30 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ metadata:
5555
namespace: mongodb
5656
rules:
5757
- apiGroups:
58-
- ''
58+
- ""
5959
resources:
6060
- services
6161
verbs:
@@ -66,7 +66,7 @@ rules:
6666
- update
6767
- delete
6868
- apiGroups:
69-
- ''
69+
- ""
7070
resources:
7171
- secrets
7272
- configmaps
@@ -89,7 +89,7 @@ rules:
8989
- delete
9090
- update
9191
- apiGroups:
92-
- ''
92+
- ""
9393
resources:
9494
- pods
9595
verbs:
@@ -101,7 +101,7 @@ rules:
101101
- apiGroups:
102102
- mongodb.com
103103
verbs:
104-
- '*'
104+
- "*"
105105
resources:
106106
- mongodb
107107
- mongodb/finalizers
@@ -164,13 +164,13 @@ metadata:
164164
namespace: mongodb
165165
rules:
166166
- apiGroups:
167-
- ''
167+
- ""
168168
resources:
169169
- secrets
170170
verbs:
171171
- get
172172
- apiGroups:
173-
- ''
173+
- ""
174174
resources:
175175
- pods
176176
verbs:
@@ -216,7 +216,7 @@ spec:
216216
serviceAccountName: mongodb-enterprise-operator
217217
containers:
218218
- name: mongodb-enterprise-operator
219-
image: "quay.io/mongodb/mongodb-enterprise-operator-ubi:1.23.0"
219+
image: "quay.io/mongodb/mongodb-enterprise-operator-ubi:1.24.0"
220220
imagePullPolicy: Always
221221
args:
222222
- -watch-resource=mongodb
@@ -243,7 +243,7 @@ spec:
243243
fieldRef:
244244
fieldPath: metadata.namespace
245245
- name: MANAGED_SECURITY_CONTEXT
246-
value: 'true'
246+
value: "true"
247247
- name: CLUSTER_CLIENT_TIMEOUT
248248
value: "10"
249249
- name: IMAGE_PULL_POLICY
@@ -254,43 +254,41 @@ spec:
254254
- name: INIT_DATABASE_IMAGE_REPOSITORY
255255
value: quay.io/mongodb/mongodb-enterprise-init-database-ubi
256256
- name: INIT_DATABASE_VERSION
257-
value: 1.23.0
257+
value: 1.24.0
258258
- name: DATABASE_VERSION
259-
value: 1.23.0
259+
value: 1.24.0
260260
# Ops Manager
261261
- name: OPS_MANAGER_IMAGE_REPOSITORY
262262
value: quay.io/mongodb/mongodb-enterprise-ops-manager-ubi
263263
- name: INIT_OPS_MANAGER_IMAGE_REPOSITORY
264264
value: quay.io/mongodb/mongodb-enterprise-init-ops-manager-ubi
265265
- name: INIT_OPS_MANAGER_VERSION
266-
value: 1.23.0
266+
value: 1.24.0
267267
# AppDB
268268
- name: INIT_APPDB_IMAGE_REPOSITORY
269269
value: quay.io/mongodb/mongodb-enterprise-init-appdb-ubi
270270
- name: INIT_APPDB_VERSION
271-
value: 1.23.0
271+
value: 1.24.0
272272
- name: OPS_MANAGER_IMAGE_PULL_POLICY
273273
value: Always
274274
- name: AGENT_IMAGE
275-
value: "quay.io/mongodb/mongodb-agent-ubi:12.0.28.7763-1"
275+
value: "quay.io/mongodb/mongodb-agent-ubi:12.0.29.7785-1"
276276
- name: MONGODB_IMAGE
277277
value: mongodb-enterprise-server
278278
- name: MONGODB_REPO_URL
279279
value: quay.io/mongodb
280280
- name: MDB_IMAGE_TYPE
281281
value: ubi8
282282
- name: PERFORM_FAILOVER
283-
value: 'true'
284-
- name: RELATED_IMAGE_MONGODB_ENTERPRISE_DATABASE_IMAGE_1_23_0
285-
value: "quay.io/mongodb/mongodb-enterprise-database-ubi:1.23.0"
286-
- name: RELATED_IMAGE_INIT_DATABASE_IMAGE_REPOSITORY_1_23_0
287-
value: "quay.io/mongodb/mongodb-enterprise-init-database-ubi:1.23.0"
288-
- name: RELATED_IMAGE_INIT_OPS_MANAGER_IMAGE_REPOSITORY_1_23_0
289-
value: "quay.io/mongodb/mongodb-enterprise-init-ops-manager-ubi:1.23.0"
290-
- name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_23_0
291-
value: "quay.io/mongodb/mongodb-enterprise-init-appdb-ubi:1.23.0"
292-
- name: RELATED_IMAGE_AGENT_IMAGE_11_0_5_6963_1
293-
value: "quay.io/mongodb/mongodb-agent-ubi:11.0.5.6963-1"
283+
value: "true"
284+
- name: RELATED_IMAGE_MONGODB_ENTERPRISE_DATABASE_IMAGE_1_24_0
285+
value: "quay.io/mongodb/mongodb-enterprise-database-ubi:1.24.0"
286+
- name: RELATED_IMAGE_INIT_DATABASE_IMAGE_REPOSITORY_1_24_0
287+
value: "quay.io/mongodb/mongodb-enterprise-init-database-ubi:1.24.0"
288+
- name: RELATED_IMAGE_INIT_OPS_MANAGER_IMAGE_REPOSITORY_1_24_0
289+
value: "quay.io/mongodb/mongodb-enterprise-init-ops-manager-ubi:1.24.0"
290+
- name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_24_0
291+
value: "quay.io/mongodb/mongodb-enterprise-init-appdb-ubi:1.24.0"
294292
- name: RELATED_IMAGE_AGENT_IMAGE_11_12_0_7388_1
295293
value: "quay.io/mongodb/mongodb-agent-ubi:11.12.0.7388-1"
296294
- name: RELATED_IMAGE_AGENT_IMAGE_12_0_4_7554_1
@@ -305,52 +303,10 @@ spec:
305303
value: "quay.io/mongodb/mongodb-agent-ubi:12.0.25.7724-1"
306304
- name: RELATED_IMAGE_AGENT_IMAGE_12_0_28_7763_1
307305
value: "quay.io/mongodb/mongodb-agent-ubi:12.0.28.7763-1"
308-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_0
309-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.0"
310-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_1
311-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.1"
312-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_2
313-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.2"
314-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_3
315-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.3"
316-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_4
317-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.4"
318-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_5
319-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.5"
320-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_6
321-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.6"
322-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_7
323-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.7"
324-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_8
325-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.8"
326-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_9
327-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.9"
328-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_10
329-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.10"
330-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_11
331-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.11"
332-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_12
333-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.12"
334-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_13
335-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.13"
336-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_14
337-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.14"
338-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_15
339-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.15"
340-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_16
341-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.16"
342-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_17
343-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.17"
344-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_18
345-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.18"
346-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_19
347-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.19"
348-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_20
349-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.20"
350-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_21
351-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.21"
352-
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_5_0_22
353-
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:5.0.22"
306+
- name: RELATED_IMAGE_AGENT_IMAGE_12_0_29_7785_1
307+
value: "quay.io/mongodb/mongodb-agent-ubi:12.0.29.7785-1"
308+
- name: RELATED_IMAGE_AGENT_IMAGE_107_0_0_8465_1
309+
value: "quay.io/mongodb/mongodb-agent-ubi:107.0.0.8465-1"
354310
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_6_0_0
355311
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:6.0.0"
356312
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_6_0_1
@@ -393,7 +349,9 @@ spec:
393349
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:6.0.19"
394350
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_6_0_20
395351
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:6.0.20"
396-
# since the official server images end with a different suffix we can re-use the same $mongodbImageEnv
352+
- name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_6_0_21
353+
value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:6.0.21"
354+
# since the official server images end with a different suffix we can re-use the same $mongodbImageEnv
397355
- name: RELATED_IMAGE_MONGODB_IMAGE_4_4_0_ubi8
398356
value: "quay.io/mongodb/mongodb-enterprise-server:4.4.0-ubi8"
399357
- name: RELATED_IMAGE_MONGODB_IMAGE_4_4_1_ubi8
@@ -488,7 +446,7 @@ spec:
488446
value: "quay.io/mongodb/mongodb-enterprise-server:6.0.4-ubi8"
489447
- name: RELATED_IMAGE_MONGODB_IMAGE_6_0_5_ubi8
490448
value: "quay.io/mongodb/mongodb-enterprise-server:6.0.5-ubi8"
491-
# mongodbLegacyAppDb will be deleted in 1.23 release
449+
# mongodbLegacyAppDb will be deleted in 1.23 release
492450
- name: RELATED_IMAGE_MONGODB_IMAGE_4_2_11_ent
493451
value: "quay.io/mongodb/mongodb-enterprise-appdb-database-ubi:4.2.11-ent"
494452
- name: RELATED_IMAGE_MONGODB_IMAGE_4_2_2_ent

‎mongodb-enterprise.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ spec:
219219
runAsUser: 2000
220220
containers:
221221
- name: mongodb-enterprise-operator
222-
image: "quay.io/mongodb/mongodb-enterprise-operator-ubi:1.23.0"
222+
image: "quay.io/mongodb/mongodb-enterprise-operator-ubi:1.24.0"
223223
imagePullPolicy: Always
224224
args:
225225
- -watch-resource=mongodb
@@ -255,25 +255,25 @@ spec:
255255
- name: INIT_DATABASE_IMAGE_REPOSITORY
256256
value: quay.io/mongodb/mongodb-enterprise-init-database-ubi
257257
- name: INIT_DATABASE_VERSION
258-
value: 1.23.0
258+
value: 1.24.0
259259
- name: DATABASE_VERSION
260-
value: 1.23.0
260+
value: 1.24.0
261261
# Ops Manager
262262
- name: OPS_MANAGER_IMAGE_REPOSITORY
263263
value: quay.io/mongodb/mongodb-enterprise-ops-manager-ubi
264264
- name: INIT_OPS_MANAGER_IMAGE_REPOSITORY
265265
value: quay.io/mongodb/mongodb-enterprise-init-ops-manager-ubi
266266
- name: INIT_OPS_MANAGER_VERSION
267-
value: 1.23.0
267+
value: 1.24.0
268268
# AppDB
269269
- name: INIT_APPDB_IMAGE_REPOSITORY
270270
value: quay.io/mongodb/mongodb-enterprise-init-appdb-ubi
271271
- name: INIT_APPDB_VERSION
272-
value: 1.23.0
272+
value: 1.24.0
273273
- name: OPS_MANAGER_IMAGE_PULL_POLICY
274274
value: Always
275275
- name: AGENT_IMAGE
276-
value: "quay.io/mongodb/mongodb-agent-ubi:12.0.28.7763-1"
276+
value: "quay.io/mongodb/mongodb-agent-ubi:12.0.29.7785-1"
277277
- name: MONGODB_IMAGE
278278
value: mongodb-enterprise-server
279279
- name: MONGODB_REPO_URL

0 commit comments

Comments
 (0)
Please sign in to comment.