Skip to content

Commit d4768de

Browse files
Kubernetes Enterprise Operator Release 1.21.0 (#260)
* Updated * Additional files sync --------- Co-authored-by: Sebastian Łaskawiec <[email protected]>
1 parent 651b014 commit d4768de

File tree

25 files changed

+945
-125
lines changed

25 files changed

+945
-125
lines changed

.github/workflows/release-multicluster-cli.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
with:
1414
fetch-depth: 0
1515
- name: Set up Go
16-
uses: actions/setup-go@v3
16+
uses: actions/setup-go@v4
1717
with:
1818
go-version: '1.20'
1919
- name: Run GoReleaser

crds.yaml

Lines changed: 247 additions & 9 deletions
Large diffs are not rendered by default.
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="[email protected]"
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"]
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="[email protected]"
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"]
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="[email protected]"
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-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: 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="[email protected]" \
13+
vendor="MongoDB" \
14+
version="1.21.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="[email protected]" \
9+
vendor="MongoDB" \
10+
version="5.0.22" \
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-5.0.22.100.20230726T1548Z-1.x86_64.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+
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="[email protected]" \
9+
vendor="MongoDB" \
10+
version="6.0.15" \
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.15.100.20230614T1851Z.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+

0 commit comments

Comments
 (0)