Skip to content

Commit 7d19aa1

Browse files
committedJul 15, 2021
a531f07895d22291c44e8bbdcc58c6f0521b2fae: update public repo contents
1 parent 157d9a5 commit 7d19aa1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1323
-57
lines changed
 

‎crds.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -1475,6 +1475,11 @@ spec:
14751475
items:
14761476
type: string
14771477
type: array
1478+
members:
1479+
description: Members indicate the number of backup daemon pods
1480+
to create.
1481+
minimum: 1
1482+
type: integer
14781483
opLogStores:
14791484
description: OplogStoreConfigs describes the list of oplog store
14801485
configs used for backup
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
7+
8+
LABEL name="MongoDB Enterprise Database" \
9+
version="2.0.1" \
10+
summary="MongoDB Enterprise Database Image" \
11+
description="MongoDB Enterprise Database Image" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="support@mongodb.com"
15+
16+
17+
18+
19+
20+
ENV MMS_HOME /mongodb-automation
21+
ENV MMS_LOG_DIR /var/log/mongodb-mms-automation
22+
23+
24+
25+
RUN microdnf update -y && rm -rf /var/cache/yum
26+
27+
# these are the packages needed for the agent
28+
RUN microdnf install -y --disableplugin=subscription-manager \
29+
hostname \
30+
nss_wrapper \
31+
procps
32+
33+
34+
# these are the packages needed for MongoDB
35+
# (https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ "RHEL/CentOS 8" tab)
36+
RUN microdnf install -y --disableplugin=subscription-manager \
37+
cyrus-sasl \
38+
cyrus-sasl-gssapi \
39+
cyrus-sasl-plain \
40+
krb5-libs \
41+
libcurl \
42+
lm_sensors-libs \
43+
net-snmp \
44+
net-snmp-agent-libs \
45+
openldap \
46+
openssl \
47+
jq \
48+
tar \
49+
findutils
50+
51+
52+
RUN microdnf remove perl-IO-Socket-SSL
53+
54+
RUN ln -s /usr/lib64/libsasl2.so.3 /usr/lib64/libsasl2.so.2
55+
56+
57+
# Set the required perms
58+
RUN mkdir -p "${MMS_LOG_DIR}" \
59+
&& chmod 0775 "${MMS_LOG_DIR}" \
60+
&& mkdir -p /var/lib/mongodb-mms-automation \
61+
&& chmod 0775 /var/lib/mongodb-mms-automation \
62+
&& mkdir -p /data \
63+
&& chmod 0775 /data \
64+
&& mkdir -p /journal \
65+
&& chmod 0775 /journal \
66+
&& mkdir -p "${MMS_HOME}" \
67+
&& chmod -R 0775 "${MMS_HOME}"
68+
69+
70+
71+
72+
# USER needs to be set for this image to pass RedHat verification. Some customers have these requirements as well
73+
# It does not matter what number it is, as long as it is set to something.
74+
# However, OpenShift will run the container as a random user,
75+
# and the number in this configuration is not relevant.
76+
USER 2000
77+
78+
79+
# The docker image doesn't have any scripts so by default does nothing
80+
# The script will be copied in runtime from init containers and the operator is expected
81+
# to override the COMMAND
82+
ENTRYPOINT ["sleep infinity"]
83+
84+
85+
COPY --from=base /data/licenses/mongodb-enterprise-database /licenses/mongodb-enterprise-database
86+
87+

0 commit comments

Comments
 (0)