-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kubernetes Enterprise Operator Release 1.22.0 (#263)
Co-authored-by: nam <nam.nguyen@mongodb.com>
- Loading branch information
1 parent
76b4155
commit 042bf91
Showing
10 changed files
with
310 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.idea | ||
*.iml | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
dockerfiles/mongodb-enterprise-init-appdb/1.0.18/ubi/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
ARG imagebase | ||
FROM ${imagebase} as base | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
ARG version | ||
LABEL name="MongoDB Enterprise Init AppDB" \ | ||
version="mongodb-enterprise-init-appdb-${version}" \ | ||
summary="MongoDB Enterprise AppDB Init Image" \ | ||
description="Startup Scripts for MongoDB Enterprise Application Database for Ops Manager" \ | ||
release="1" \ | ||
vendor="MongoDB" \ | ||
maintainer="support@mongodb.com" | ||
|
||
COPY --from=base /data/readinessprobe /probes/readinessprobe | ||
COPY --from=base /data/probe.sh /probes/probe.sh | ||
COPY --from=base /data/scripts/ /scripts/ | ||
COPY --from=base /data/licenses /licenses/ | ||
COPY --from=base /data/version-upgrade-hook /probes/version-upgrade-hook | ||
|
||
|
||
RUN microdnf update --nodocs \ | ||
&& microdnf -y install --nodocs tar gzip \ | ||
&& microdnf clean all | ||
|
||
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz | ||
|
||
|
||
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \ | ||
&& rm /tools/mongodb_tools.tgz | ||
|
||
USER 2000 | ||
ENTRYPOINT [ "/bin/cp", "-f", "-r", "/scripts/agent-launcher.sh", "/scripts/agent-launcher-lib.sh", "/probes/readinessprobe", "/probes/probe.sh", "/tools", "/opt/scripts/" ] | ||
|
||
|
34 changes: 34 additions & 0 deletions
34
dockerfiles/mongodb-enterprise-init-database/1.0.18/ubi/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
ARG imagebase | ||
FROM ${imagebase} as base | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
ARG version | ||
LABEL name="MongoDB Enterprise Init Database" \ | ||
version="mongodb-enterprise-init-database-${version}" \ | ||
summary="MongoDB Enterprise Database Init Image" \ | ||
description="Startup Scripts for MongoDB Enterprise Database" \ | ||
release="1" \ | ||
vendor="MongoDB" \ | ||
maintainer="support@mongodb.com" | ||
|
||
COPY --from=base /data/readinessprobe /probes/readinessprobe | ||
COPY --from=base /data/probe.sh /probes/probe.sh | ||
COPY --from=base /data/scripts/ /scripts/ | ||
COPY --from=base /data/licenses /licenses/ | ||
|
||
|
||
RUN microdnf update --nodocs \ | ||
&& microdnf -y install --nodocs tar gzip \ | ||
&& microdnf clean all | ||
|
||
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz | ||
|
||
|
||
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \ | ||
&& rm /tools/mongodb_tools.tgz | ||
|
||
USER 2000 | ||
ENTRYPOINT [ "/bin/cp", "-f", "-r", "/scripts/agent-launcher.sh", "/scripts/agent-launcher-lib.sh", "/probes/readinessprobe", "/probes/probe.sh", "/tools", "/opt/scripts/" ] | ||
|
||
|
26 changes: 26 additions & 0 deletions
26
dockerfiles/mongodb-enterprise-init-ops-manager/1.0.12/ubi/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
ARG imagebase | ||
FROM ${imagebase} as base | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
LABEL name="MongoDB Enterprise Ops Manager Init" \ | ||
maintainer="support@mongodb.com" \ | ||
vendor="MongoDB" \ | ||
version="mongodb-enterprise-init-ops-manager-1.0.12" \ | ||
release="1" \ | ||
summary="MongoDB Enterprise Ops Manager Init Image" \ | ||
description="Startup Scripts for MongoDB Enterprise Ops Manager" | ||
|
||
|
||
COPY --from=base /data/scripts /scripts | ||
COPY --from=base /data/licenses /licenses | ||
|
||
|
||
RUN microdnf update --nodocs \ | ||
&& microdnf clean all | ||
|
||
|
||
USER 2000 | ||
ENTRYPOINT [ "/bin/cp", "-f", "/scripts/docker-entry-point.sh", "/scripts/backup-daemon-liveness-probe.sh", "/scripts/mmsconfiguration", "/scripts/backup-daemon-readiness-probe", "/opt/scripts/" ] | ||
|
||
|
39 changes: 39 additions & 0 deletions
39
dockerfiles/mongodb-enterprise-operator/1.22.0/ubi/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# | ||
# Base Template Dockerfile for Operator Image. | ||
# | ||
|
||
ARG imagebase | ||
FROM ${imagebase} as base | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
|
||
LABEL name="MongoDB Enterprise Operator" \ | ||
maintainer="support@mongodb.com" \ | ||
vendor="MongoDB" \ | ||
version="1.22.0" \ | ||
release="1" \ | ||
summary="MongoDB Enterprise Operator Image" \ | ||
description="MongoDB Enterprise Operator Image" | ||
|
||
|
||
# Building an UBI-based image: https://red.ht/3n6b9y0 | ||
RUN microdnf update \ | ||
--disableplugin=subscription-manager \ | ||
--disablerepo=* --enablerepo=ubi-8-appstream-rpms --enablerepo=ubi-8-baseos-rpms -y \ | ||
&& rm -rf /var/cache/yum | ||
|
||
|
||
|
||
|
||
COPY --from=base /data/mongodb-enterprise-operator /usr/local/bin/mongodb-enterprise-operator | ||
COPY --from=base /data/om_version_mapping.json /usr/local/om_version_mapping.json | ||
COPY --from=base /data/licenses /licenses/ | ||
|
||
USER 2000 | ||
|
||
|
||
|
||
ENTRYPOINT exec /usr/local/bin/mongodb-enterprise-operator | ||
|
||
|
75 changes: 75 additions & 0 deletions
75
dockerfiles/mongodb-enterprise-ops-manager/6.0.18/ubi/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
ARG imagebase | ||
FROM ${imagebase} as base | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
|
||
LABEL name="MongoDB Enterprise Ops Manager" \ | ||
maintainer="support@mongodb.com" \ | ||
vendor="MongoDB" \ | ||
version="6.0.18" \ | ||
release="1" \ | ||
summary="MongoDB Enterprise Ops Manager Image" \ | ||
description="MongoDB Enterprise Ops Manager" | ||
|
||
|
||
ENV MMS_HOME /mongodb-ops-manager | ||
ENV MMS_PROP_FILE ${MMS_HOME}/conf/conf-mms.properties | ||
ENV MMS_CONF_FILE ${MMS_HOME}/conf/mms.conf | ||
ENV MMS_LOG_DIR ${MMS_HOME}/logs | ||
ENV MMS_TMP_DIR ${MMS_HOME}/tmp | ||
|
||
EXPOSE 8080 | ||
|
||
# OpsManager docker image needs to have the MongoDB dependencies because the | ||
# backup daemon is running its database locally | ||
|
||
RUN microdnf install --disableplugin=subscription-manager -y \ | ||
cyrus-sasl \ | ||
cyrus-sasl-gssapi \ | ||
cyrus-sasl-plain \ | ||
krb5-libs \ | ||
libcurl \ | ||
libpcap \ | ||
lm_sensors-libs \ | ||
net-snmp \ | ||
net-snmp-agent-libs \ | ||
openldap \ | ||
openssl \ | ||
tar \ | ||
rpm-libs \ | ||
net-tools \ | ||
procps-ng \ | ||
ncurses | ||
|
||
|
||
COPY --from=base /data/licenses /licenses/ | ||
|
||
|
||
|
||
RUN curl --fail -L -o ops_manager.tar.gz https://downloads.mongodb.com/on-prem-mms/tar/mongodb-mms-6.0.18.100.20230905T1424Z.tar.gz \ | ||
&& tar -xzf ops_manager.tar.gz \ | ||
&& rm ops_manager.tar.gz \ | ||
&& mv mongodb-mms* "${MMS_HOME}" | ||
|
||
|
||
# permissions | ||
RUN chmod -R 0777 "${MMS_LOG_DIR}" \ | ||
&& chmod -R 0777 "${MMS_TMP_DIR}" \ | ||
&& chmod -R 0775 "${MMS_HOME}/conf" \ | ||
&& chmod -R 0775 "${MMS_HOME}/jdk" \ | ||
&& mkdir "${MMS_HOME}/mongodb-releases/" \ | ||
&& chmod -R 0775 "${MMS_HOME}/mongodb-releases" \ | ||
&& chmod -R 0777 "${MMS_CONF_FILE}" \ | ||
&& chmod -R 0777 "${MMS_PROP_FILE}" | ||
|
||
# The "${MMS_HOME}/conf" will be populated by the docker-entry-point.sh. | ||
# For now we need to move into the templates directory. | ||
RUN cp -r "${MMS_HOME}/conf" "${MMS_HOME}/conf-template" | ||
|
||
USER 2000 | ||
|
||
# operator to change the entrypoint to: /mongodb-ops-manager/bin/mongodb-mms start_mms (or a wrapper around this) | ||
ENTRYPOINT [ "sleep infinity" ] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.