diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..71fcf1688f7ca934688219ed99522d42c963b32a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,60 @@ +# Dockerfile for AppDB Database Image. + +ARG BASE_REGISTRY=registry1.dsop.io +ARG BASE_IMAGE=redhat/ubi/ubi7 +ARG BASE_TAG=7.8 +ARG VERSION=10.2.15.5958-1 + +FROM quay.io/mongodb/mongodb-enterprise-appdb:${VERSION} as official + +FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} + +ENV MMS_HOME /mongodb-automation +ENV MMS_LOG_DIR /var/log/mongodb-mms-automation +ENV MDB_DIR /var/lib/mongodb-mms-automation/downloads + + +LABEL name="MongoDB Enterprise AppDB" \ + version="${VERSION}" \ + summary="MongoDB Enterprise AppDB" \ + description="MongoDB Enterprise AppDB" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +RUN yum update -y && yum install \ + libpcap \ + lm_sensors-libs \ + net-snmp \ + net-snmp-agent-libs \ + rpm-libs \ + tcp_wrappers-libs \ + nss_wrapper; \ + yum clean all; \ + ln -s /usr/lib64/libsasl2.so.3 /usr/lib64/libsasl2.so.2 + +COPY --from=official ${MDB_DIR} ${MDB_DIR}/ +COPY --from=official ${MMS_HOME} ${MMS_HOME}/ +COPY --from=official /licenses/* /licenses/ + +# Set the required perms +RUN mkdir -p "${MMS_LOG_DIR}" \ + && chmod 0775 "${MMS_LOG_DIR}" \ + && mkdir -p /var/lib/mongodb-mms-automation \ + && chmod 0775 /var/lib/mongodb-mms-automation \ + && mkdir -p /data \ + && chmod 0775 /data \ + && mkdir -p /journal \ + && chmod 0775 /journal \ + && chmod -R 0775 "${MMS_HOME}" + +# USER needs to be set for this image to pass RedHat verification. Some customers have these requirements as well +# It does not matter what number it is, as long as it is set to something. +# However, OpenShift will run the container as a random user, +# and the number in this configuration is not relevant. +USER 2000 + +ENTRYPOINT ["/mongodb-automation/files/agent-launcher.sh"] + +HEALTHCHECK --timeout=30s CMD ls /mongodb-automation/files/agent-launcher.sh || exit 1 + diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000000000000000000000000000000000..1c5cc31f20b903e531adbe6b3d8d5159f1332bb9 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,3 @@ +@Library('DCCSCR@master') _ +dccscrPipeline(version: "10.2.15.5958-1") + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..b5ca95091b9482a06511c1a712f13f9ed74453db --- /dev/null +++ b/LICENSE @@ -0,0 +1,4 @@ +Usage of the MongoDB Enterprise Operator for Kubernetes indicates +agreement with the MongoDB Development, Test, and Evaluation Agreement + +* https://www.mongodb.com/legal/evaluation-agreement diff --git a/README.md b/README.md index bc1f099204e7014fe508488fee6cfd9dbe433063..97caa1ef7e1a9fbf4239b3b0f9aa097ba67c4476 100644 --- a/README.md +++ b/README.md @@ -1 +1,14 @@ -MongoDB Ops Manager AppDB \ No newline at end of file +# MongoDB Enterprise Ops Manager - AppDB # + +Backing database for MongoDB Ops Manager. This container image is used exclusively by the MongoDB Enterprise Kubernetes Operator to deploy MongoDB Ops Manager to Kubernetes or OpenShift clusters. + +For more information about MongoDB Ops Manager, please visit . + +Information about MongoDB can be found at . + +## Documentation ## + +Documentation for MongoDB Ops Manager is available at . + +Documentation for the MongoDB Enterprise Kubernetes Operator is available at . + diff --git a/download.json b/download.json new file mode 100644 index 0000000000000000000000000000000000000000..05019bf83c91c67de6442feccc902e97600b062f --- /dev/null +++ b/download.json @@ -0,0 +1,9 @@ +{ + "resources": [ + { + "url": "docker://quay.io/mongodb/mongodb-enterprise-appdb@sha256:6650dbd4cac6e08bd064407c178c73cf306e8f58bebe370f36aca33ff1c3e406", + "tag": "quay.io/mongodb/mongodb-enterprise-appdb:10.2.15.5958-1" + } + ] +} +