-
Notifications
You must be signed in to change notification settings - Fork 123
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.20.1 (#254)
* Updated * Added missing dockerfiles and github workflow files * Removed invalid dockerfiles * Added 1.20.1 dockerfile --------- Co-authored-by: Łukasz Sierant <[email protected]>
- Loading branch information
1 parent
2f12615
commit 47fa091
Showing
36 changed files
with
4,065 additions
and
82 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
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,2 @@ | ||
.idea | ||
*.iml |
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
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,45 @@ | ||
ARG imagebase | ||
FROM ${imagebase} as base | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
ARG agent_version | ||
|
||
LABEL name="MongoDB Agent" \ | ||
version="${agent_version}" \ | ||
summary="MongoDB Agent" \ | ||
description="MongoDB Agent" \ | ||
vendor="MongoDB" \ | ||
release="1" \ | ||
maintainer="[email protected]" | ||
|
||
RUN microdnf install -y --disableplugin=subscription-manager curl \ | ||
hostname nss_wrapper tar gzip procps\ | ||
&& 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"] |
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,45 @@ | ||
ARG imagebase | ||
FROM ${imagebase} as base | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
ARG agent_version | ||
|
||
LABEL name="MongoDB Agent" \ | ||
version="${agent_version}" \ | ||
summary="MongoDB Agent" \ | ||
description="MongoDB Agent" \ | ||
vendor="MongoDB" \ | ||
release="1" \ | ||
maintainer="[email protected]" | ||
|
||
RUN microdnf install -y --disableplugin=subscription-manager curl \ | ||
hostname nss_wrapper tar gzip procps\ | ||
&& 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"] |
35 changes: 35 additions & 0 deletions
35
dockerfiles/mongodb-enterprise-init-appdb/1.0.16/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="[email protected]" | ||
|
||
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/" ] | ||
|
||
|
35 changes: 35 additions & 0 deletions
35
dockerfiles/mongodb-enterprise-init-appdb/1.0.17/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="[email protected]" | ||
|
||
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.16/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="[email protected]" | ||
|
||
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/" ] | ||
|
||
|
34 changes: 34 additions & 0 deletions
34
dockerfiles/mongodb-enterprise-init-database/1.0.17/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="[email protected]" | ||
|
||
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.11/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="[email protected]" \ | ||
vendor="MongoDB" \ | ||
version="mongodb-enterprise-init-ops-manager-1.0.11" \ | ||
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/" ] | ||
|
||
|
Oops, something went wrong.