-
Notifications
You must be signed in to change notification settings - Fork 17
CLOUDP-338090 - remove operator images from update_supported_dockerfiles.py
+ fix recurrency
#347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
60 changes: 60 additions & 0 deletions
60
public/dockerfiles/mongodb-agent/107.0.17.8771-1/ubi/Dockerfile
This file contains hidden or 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,60 @@ | ||
ARG imagebase | ||
FROM ${imagebase} as base | ||
|
||
FROM registry.access.redhat.com/ubi9/ubi-minimal | ||
|
||
ARG version | ||
|
||
LABEL name="MongoDB Agent" \ | ||
version="${version}" \ | ||
summary="MongoDB Agent" \ | ||
description="MongoDB Agent" \ | ||
vendor="MongoDB" \ | ||
release="1" \ | ||
maintainer="[email protected]" | ||
|
||
# Replace libcurl-minimal and curl-minimal with the full versions | ||
# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 | ||
RUN microdnf install -y libssh libpsl libbrotli \ | ||
&& microdnf download curl libcurl \ | ||
&& rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ | ||
&& microdnf remove -y libcurl-minimal curl-minimal | ||
|
||
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper | ||
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ | ||
RUN microdnf install -y --disableplugin=subscription-manager \ | ||
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs | ||
# Dependencies for the Agent | ||
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ | ||
net-snmp \ | ||
net-snmp-agent-libs | ||
RUN microdnf install -y --disableplugin=subscription-manager \ | ||
hostname tar gzip procps jq \ | ||
&& microdnf upgrade -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /agent \ | ||
&& mkdir -p /var/lib/mongodb-mms-automation \ | ||
&& mkdir -p /var/log/mongodb-mms-automation/ \ | ||
&& chmod -R +wr /var/log/mongodb-mms-automation/ \ | ||
# ensure that the agent user can write the logs in OpenShift | ||
&& touch /var/log/mongodb-mms-automation/readiness.log \ | ||
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log | ||
|
||
|
||
COPY --from=base /data/mongodb-agent.tar.gz /agent | ||
COPY --from=base /data/mongodb-tools.tgz /agent | ||
COPY --from=base /data/LICENSE /licenses/LICENSE | ||
|
||
RUN tar xfz /agent/mongodb-agent.tar.gz \ | ||
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \ | ||
&& chmod +x /agent/mongodb-agent \ | ||
&& mkdir -p /var/lib/automation/config \ | ||
&& chmod -R +r /var/lib/automation/config \ | ||
&& rm /agent/mongodb-agent.tar.gz \ | ||
&& rm -r mongodb-mms-automation-agent-* | ||
|
||
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz | ||
|
||
USER 2000 | ||
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"] |
60 changes: 60 additions & 0 deletions
60
public/dockerfiles/mongodb-agent/108.0.11.8830-1/ubi/Dockerfile
This file contains hidden or 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,60 @@ | ||
ARG imagebase | ||
FROM ${imagebase} as base | ||
|
||
FROM registry.access.redhat.com/ubi9/ubi-minimal | ||
|
||
ARG version | ||
|
||
LABEL name="MongoDB Agent" \ | ||
version="${version}" \ | ||
summary="MongoDB Agent" \ | ||
description="MongoDB Agent" \ | ||
vendor="MongoDB" \ | ||
release="1" \ | ||
maintainer="[email protected]" | ||
|
||
# Replace libcurl-minimal and curl-minimal with the full versions | ||
# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 | ||
RUN microdnf install -y libssh libpsl libbrotli \ | ||
&& microdnf download curl libcurl \ | ||
&& rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ | ||
&& microdnf remove -y libcurl-minimal curl-minimal | ||
|
||
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper | ||
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ | ||
RUN microdnf install -y --disableplugin=subscription-manager \ | ||
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs | ||
# Dependencies for the Agent | ||
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ | ||
net-snmp \ | ||
net-snmp-agent-libs | ||
RUN microdnf install -y --disableplugin=subscription-manager \ | ||
hostname tar gzip procps jq \ | ||
&& microdnf upgrade -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /agent \ | ||
&& mkdir -p /var/lib/mongodb-mms-automation \ | ||
&& mkdir -p /var/log/mongodb-mms-automation/ \ | ||
&& chmod -R +wr /var/log/mongodb-mms-automation/ \ | ||
# ensure that the agent user can write the logs in OpenShift | ||
&& touch /var/log/mongodb-mms-automation/readiness.log \ | ||
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log | ||
|
||
|
||
COPY --from=base /data/mongodb-agent.tar.gz /agent | ||
COPY --from=base /data/mongodb-tools.tgz /agent | ||
COPY --from=base /data/LICENSE /licenses/LICENSE | ||
|
||
RUN tar xfz /agent/mongodb-agent.tar.gz \ | ||
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \ | ||
&& chmod +x /agent/mongodb-agent \ | ||
&& mkdir -p /var/lib/automation/config \ | ||
&& chmod -R +r /var/lib/automation/config \ | ||
&& rm /agent/mongodb-agent.tar.gz \ | ||
&& rm -r mongodb-mms-automation-agent-* | ||
|
||
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz | ||
|
||
USER 2000 | ||
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"] |
65 changes: 65 additions & 0 deletions
65
public/dockerfiles/mongodb-agent/108.0.12.8846-1/ubi/Dockerfile
This file contains hidden or 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,65 @@ | ||
ARG imagebase | ||
FROM ${imagebase} as base | ||
|
||
FROM registry.access.redhat.com/ubi9/ubi-minimal | ||
|
||
ARG version | ||
|
||
LABEL name="MongoDB Agent" \ | ||
version="${version}" \ | ||
summary="MongoDB Agent" \ | ||
description="MongoDB Agent" \ | ||
vendor="MongoDB" \ | ||
release="1" \ | ||
maintainer="[email protected]" | ||
|
||
# Replace libcurl-minimal and curl-minimal with the full versions | ||
# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 | ||
RUN microdnf install -y libssh libpsl libbrotli \ | ||
&& microdnf download curl libcurl \ | ||
&& rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ | ||
&& microdnf remove -y libcurl-minimal curl-minimal | ||
|
||
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper | ||
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ | ||
RUN microdnf install -y --disableplugin=subscription-manager \ | ||
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs | ||
# Dependencies for the Agent | ||
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ | ||
net-snmp \ | ||
net-snmp-agent-libs | ||
RUN microdnf install -y --disableplugin=subscription-manager \ | ||
hostname tar gzip procps jq \ | ||
&& microdnf upgrade -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /agent \ | ||
&& mkdir -p /var/lib/mongodb-mms-automation \ | ||
&& mkdir -p /var/log/mongodb-mms-automation/ \ | ||
&& chmod -R +wr /var/log/mongodb-mms-automation/ \ | ||
# ensure that the agent user can write the logs in OpenShift | ||
&& touch /var/log/mongodb-mms-automation/readiness.log \ | ||
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log | ||
|
||
COPY --from=base /data/mongodb-agent.tar.gz /agent | ||
COPY --from=base /data/mongodb-tools.tgz /agent | ||
COPY --from=base /data/LICENSE /licenses/LICENSE | ||
|
||
# Copy scripts to a safe location that won't be overwritten by volume mount | ||
COPY --from=base /opt/scripts/agent-launcher-shim.sh /usr/local/bin/agent-launcher-shim.sh | ||
COPY --from=base /opt/scripts/setup-agent-files.sh /usr/local/bin/setup-agent-files.sh | ||
COPY --from=base /opt/scripts/dummy-probe.sh /usr/local/bin/dummy-probe.sh | ||
COPY --from=base /opt/scripts/dummy-readinessprobe.sh /usr/local/bin/dummy-readinessprobe | ||
|
||
RUN tar xfz /agent/mongodb-agent.tar.gz \ | ||
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \ | ||
&& chmod +x /agent/mongodb-agent \ | ||
&& mkdir -p /var/lib/automation/config \ | ||
&& chmod -R +r /var/lib/automation/config \ | ||
&& rm /agent/mongodb-agent.tar.gz \ | ||
&& rm -r mongodb-mms-automation-agent-* | ||
|
||
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz | ||
|
||
USER 2000 | ||
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"] |
This file contains hidden or 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
65 changes: 65 additions & 0 deletions
65
public/dockerfiles/mongodb-agent/13.37.0.9590-1/ubi/Dockerfile
This file contains hidden or 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,65 @@ | ||
ARG imagebase | ||
FROM ${imagebase} as base | ||
|
||
FROM registry.access.redhat.com/ubi9/ubi-minimal | ||
|
||
ARG version | ||
|
||
LABEL name="MongoDB Agent" \ | ||
version="${version}" \ | ||
summary="MongoDB Agent" \ | ||
description="MongoDB Agent" \ | ||
vendor="MongoDB" \ | ||
release="1" \ | ||
maintainer="[email protected]" | ||
|
||
# Replace libcurl-minimal and curl-minimal with the full versions | ||
# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 | ||
RUN microdnf install -y libssh libpsl libbrotli \ | ||
&& microdnf download curl libcurl \ | ||
&& rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ | ||
&& microdnf remove -y libcurl-minimal curl-minimal | ||
|
||
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper | ||
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ | ||
RUN microdnf install -y --disableplugin=subscription-manager \ | ||
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs | ||
# Dependencies for the Agent | ||
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ | ||
net-snmp \ | ||
net-snmp-agent-libs | ||
RUN microdnf install -y --disableplugin=subscription-manager \ | ||
hostname tar gzip procps jq \ | ||
&& microdnf upgrade -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /agent \ | ||
&& mkdir -p /var/lib/mongodb-mms-automation \ | ||
&& mkdir -p /var/log/mongodb-mms-automation/ \ | ||
&& chmod -R +wr /var/log/mongodb-mms-automation/ \ | ||
# ensure that the agent user can write the logs in OpenShift | ||
&& touch /var/log/mongodb-mms-automation/readiness.log \ | ||
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log | ||
|
||
COPY --from=base /data/mongodb-agent.tar.gz /agent | ||
COPY --from=base /data/mongodb-tools.tgz /agent | ||
COPY --from=base /data/LICENSE /licenses/LICENSE | ||
|
||
# Copy scripts to a safe location that won't be overwritten by volume mount | ||
COPY --from=base /opt/scripts/agent-launcher-shim.sh /usr/local/bin/agent-launcher-shim.sh | ||
COPY --from=base /opt/scripts/setup-agent-files.sh /usr/local/bin/setup-agent-files.sh | ||
COPY --from=base /opt/scripts/dummy-probe.sh /usr/local/bin/dummy-probe.sh | ||
COPY --from=base /opt/scripts/dummy-readinessprobe.sh /usr/local/bin/dummy-readinessprobe | ||
|
||
RUN tar xfz /agent/mongodb-agent.tar.gz \ | ||
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \ | ||
&& chmod +x /agent/mongodb-agent \ | ||
&& mkdir -p /var/lib/automation/config \ | ||
&& chmod -R +r /var/lib/automation/config \ | ||
&& rm /agent/mongodb-agent.tar.gz \ | ||
&& rm -r mongodb-mms-automation-agent-* | ||
|
||
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz | ||
|
||
USER 2000 | ||
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"] |
84 changes: 84 additions & 0 deletions
84
public/dockerfiles/mongodb-enterprise-ops-manager/7.0.17/ubi/Dockerfile
This file contains hidden or 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,84 @@ | ||
ARG imagebase | ||
FROM ${imagebase} as base | ||
|
||
FROM registry.access.redhat.com/ubi9/ubi-minimal | ||
|
||
|
||
LABEL name="MongoDB Enterprise Ops Manager" \ | ||
maintainer="[email protected]" \ | ||
vendor="MongoDB" \ | ||
version="7.0.17" \ | ||
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 | ||
|
||
|
||
# Replace libcurl-minimal and curl-minimal with the full versions | ||
# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 | ||
RUN microdnf install -y libssh libpsl libbrotli \ | ||
&& microdnf download curl libcurl \ | ||
&& rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ | ||
&& microdnf remove -y libcurl-minimal curl-minimal | ||
|
||
RUN microdnf install --disableplugin=subscription-manager -y \ | ||
cyrus-sasl \ | ||
cyrus-sasl-gssapi \ | ||
cyrus-sasl-plain \ | ||
krb5-libs \ | ||
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/ | ||
|
||
COPY --from=base /data/scripts /opt/scripts | ||
|
||
|
||
|
||
RUN curl --fail -L -o ops_manager.tar.gz https://downloads.mongodb.com/on-prem-mms/tar/mongodb-mms-7.0.17.500.20250806T1728Z.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" ] | ||
|
||
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you take a look at existing Dockerfiles in that folder, all of them have unnecessary empty lines. This due to how Sonar combines the Dockerfiles. I would like to keep it that way and not reformat them. New Dockerfiles that we will use instead of generated ones by Sonar don't have this issue.