Skip to content

Commit 16def38

Browse files
author
Rodrigo Valin
committed
7d70e9c6f9f8f0f252237f48f31153e2835ff843: update public repo contents
1 parent 1a9ddb2 commit 16def38

File tree

19 files changed

+957
-67
lines changed

19 files changed

+957
-67
lines changed

README.md

Lines changed: 42 additions & 67 deletions
Large diffs are not rendered by default.
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi
5+
6+
7+
8+
9+
LABEL name="MongoDB Enterprise AppDB" \
10+
version="10.2.15.5958-1_4.2.11-ent" \
11+
summary="MongoDB Enterprise AppDB" \
12+
description="MongoDB Enterprise AppDB" \
13+
vendor="MongoDB" \
14+
release="1" \
15+
maintainer="[email protected]"
16+
17+
18+
19+
20+
21+
22+
ENV MMS_HOME /mongodb-automation
23+
ENV MMS_LOG_DIR /var/log/mongodb-mms-automation
24+
25+
26+
27+
28+
29+
30+
31+
# Download and extract the MongoDB archive and put it where the automation agent
32+
# expects to find it. The Mongodb agent will download MongoDB from the Internet
33+
# only if the version does not match the version we have put inside the image.
34+
35+
COPY --from=base /data/mongodb_server_ubi.tgz /tmp
36+
RUN mkdir -p /var/lib/mongodb-mms-automation/downloads \
37+
&& tar -xzf "/tmp/mongodb_server_ubi.tgz" --directory "/var/lib/mongodb-mms-automation/downloads" \
38+
&& rm "/tmp/mongodb_server_ubi.tgz" \
39+
&& chmod -R 0775 "/var/lib/mongodb-mms-automation/downloads"
40+
41+
COPY --from=base /data/mongodb_agent_linux.tgz /tmp
42+
RUN mkdir -p ${MMS_HOME}/files/ \
43+
&& tar -xzf /tmp/mongodb_agent_linux.tgz --directory / \
44+
&& mv /mongodb-mms-automation-agent-*/mongodb-mms-automation-agent "${MMS_HOME}/files/" \
45+
&& chmod +x "${MMS_HOME}/files/mongodb-mms-automation-agent" \
46+
&& rm -rf /tmp/mongodb_agent_linux.tgz "/mongodb-mms-automation-agent-*/"
47+
48+
RUN echo "10.2.15.5958-1" > ${MMS_HOME}/files/agent-version
49+
50+
51+
52+
53+
54+
RUN yum update -y && rm -rf /var/cache/yum
55+
56+
# these are the packages needed for the agent
57+
RUN yum install -y --disableplugin=subscription-manager \
58+
hostname \
59+
nss_wrapper --exclude perl-IO-Socket-SSL \
60+
procps
61+
62+
63+
# these are the packages needed for MongoDB
64+
# (https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ "RHEL/CentOS 8" tab)
65+
RUN yum install -y --disableplugin=subscription-manager \
66+
cyrus-sasl \
67+
cyrus-sasl-gssapi \
68+
cyrus-sasl-plain \
69+
krb5-libs \
70+
libcurl \
71+
lm_sensors-libs \
72+
net-snmp \
73+
net-snmp-agent-libs \
74+
openldap \
75+
openssl \
76+
jq
77+
78+
79+
RUN ln -s /usr/lib64/libsasl2.so.3 /usr/lib64/libsasl2.so.2
80+
81+
82+
# Set the required perms
83+
RUN mkdir -p "${MMS_LOG_DIR}" \
84+
&& chmod 0775 "${MMS_LOG_DIR}" \
85+
&& mkdir -p /var/lib/mongodb-mms-automation \
86+
&& chmod 0775 /var/lib/mongodb-mms-automation \
87+
&& mkdir -p /data \
88+
&& chmod 0775 /data \
89+
&& mkdir -p /journal \
90+
&& chmod 0775 /journal \
91+
&& mkdir -p "${MMS_HOME}" \
92+
&& chmod -R 0775 "${MMS_HOME}"
93+
94+
95+
96+
97+
# USER needs to be set for this image to pass RedHat verification. Some customers have these requirements as well
98+
# It does not matter what number it is, as long as it is set to something.
99+
# However, OpenShift will run the container as a random user,
100+
# and the number in this configuration is not relevant.
101+
USER 2000
102+
103+
104+
# The docker image doesn't have any scripts so by default does nothing
105+
# The script will be copied in runtime from init containers and the operator is expected
106+
# to override the COMMAND
107+
ENTRYPOINT ["sleep infinity"]
108+
109+
110+
COPY --from=base /data/licenses/mongodb-enterprise-database /licenses/mongodb-enterprise-database
111+
112+
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM ubuntu:16.04
5+
6+
7+
8+
9+
LABEL name="MongoDB Enterprise AppDB" \
10+
version="10.2.15.5958-1_4.2.11-ent" \
11+
summary="MongoDB Enterprise AppDB" \
12+
description="MongoDB Enterprise AppDB" \
13+
vendor="MongoDB" \
14+
release="1" \
15+
maintainer="[email protected]"
16+
17+
18+
19+
20+
21+
22+
ENV MMS_HOME /mongodb-automation
23+
ENV MMS_LOG_DIR /var/log/mongodb-mms-automation
24+
25+
26+
27+
28+
29+
30+
31+
# Download and extract the MongoDB archive and put it where the automation agent
32+
# expects to find it. The Mongodb agent will download MongoDB from the Internet
33+
# only if the version does not match the version we have put inside the image.
34+
35+
COPY --from=base /data/mongodb_server_ubuntu.tgz /tmp
36+
RUN mkdir -p /var/lib/mongodb-mms-automation/downloads \
37+
&& tar -xzf "/tmp/mongodb_server_ubuntu.tgz" --directory "/var/lib/mongodb-mms-automation/downloads" \
38+
&& rm "/tmp/mongodb_server_ubuntu.tgz" \
39+
&& chmod -R 0775 "/var/lib/mongodb-mms-automation/downloads"
40+
41+
COPY --from=base /data/mongodb_agent_linux.tgz /tmp
42+
RUN mkdir -p ${MMS_HOME}/files/ \
43+
&& tar -xzf /tmp/mongodb_agent_linux.tgz --directory / \
44+
&& mv /mongodb-mms-automation-agent-*/mongodb-mms-automation-agent "${MMS_HOME}/files/" \
45+
&& chmod +x "${MMS_HOME}/files/mongodb-mms-automation-agent" \
46+
&& rm -rf /tmp/mongodb_agent_linux.tgz "/mongodb-mms-automation-agent-*/"
47+
48+
RUN echo "10.2.15.5958-1" > ${MMS_HOME}/files/agent-version
49+
50+
51+
52+
53+
54+
RUN apt-get -qq update \
55+
&& apt-get -y -qq install \
56+
curl \
57+
jq \
58+
libcurl3 \
59+
libgssapi-krb5-2 \
60+
libkrb5-dbg \
61+
libldap-2.4-2 \
62+
libpcap0.8 \
63+
libsasl2-2 \
64+
lsb-release \
65+
openssl \
66+
snmp \
67+
libnss-wrapper \
68+
&& apt-get upgrade -y -qq \
69+
&& apt-get dist-upgrade -y -qq \
70+
&& rm -rf /var/lib/apt/lists/*
71+
72+
73+
# Set the required perms
74+
RUN mkdir -p "${MMS_LOG_DIR}" \
75+
&& chmod 0775 "${MMS_LOG_DIR}" \
76+
&& mkdir -p /var/lib/mongodb-mms-automation \
77+
&& chmod 0775 /var/lib/mongodb-mms-automation \
78+
&& mkdir -p /data \
79+
&& chmod 0775 /data \
80+
&& mkdir -p /journal \
81+
&& chmod 0775 /journal \
82+
&& mkdir -p "${MMS_HOME}" \
83+
&& chmod -R 0775 "${MMS_HOME}"
84+
85+
86+
87+
88+
# USER needs to be set for this image to pass RedHat verification. Some customers have these requirements as well
89+
# It does not matter what number it is, as long as it is set to something.
90+
# However, OpenShift will run the container as a random user,
91+
# and the number in this configuration is not relevant.
92+
USER 2000
93+
94+
95+
# The docker image doesn't have any scripts so by default does nothing
96+
# The script will be copied in runtime from init containers and the operator is expected
97+
# to override the COMMAND
98+
ENTRYPOINT ["sleep infinity"]
99+
100+
101+
COPY --from=base /data/licenses/mongodb-enterprise-database /licenses/mongodb-enterprise-database
102+
103+
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi
5+
6+
7+
8+
9+
LABEL name="MongoDB Enterprise Database" \
10+
version="2.0.0" \
11+
summary="MongoDB Enterprise Database Image" \
12+
description="MongoDB Enterprise Database Image" \
13+
vendor="MongoDB" \
14+
release="1" \
15+
maintainer="[email protected]"
16+
17+
18+
19+
20+
21+
22+
ENV MMS_HOME /mongodb-automation
23+
ENV MMS_LOG_DIR /var/log/mongodb-mms-automation
24+
25+
26+
27+
28+
29+
30+
31+
RUN yum update -y && rm -rf /var/cache/yum
32+
33+
# these are the packages needed for the agent
34+
RUN yum install -y --disableplugin=subscription-manager \
35+
hostname \
36+
nss_wrapper --exclude perl-IO-Socket-SSL \
37+
procps
38+
39+
40+
# these are the packages needed for MongoDB
41+
# (https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ "RHEL/CentOS 8" tab)
42+
RUN yum install -y --disableplugin=subscription-manager \
43+
cyrus-sasl \
44+
cyrus-sasl-gssapi \
45+
cyrus-sasl-plain \
46+
krb5-libs \
47+
libcurl \
48+
lm_sensors-libs \
49+
net-snmp \
50+
net-snmp-agent-libs \
51+
openldap \
52+
openssl \
53+
jq
54+
55+
56+
RUN ln -s /usr/lib64/libsasl2.so.3 /usr/lib64/libsasl2.so.2
57+
58+
59+
# Set the required perms
60+
RUN mkdir -p "${MMS_LOG_DIR}" \
61+
&& chmod 0775 "${MMS_LOG_DIR}" \
62+
&& mkdir -p /var/lib/mongodb-mms-automation \
63+
&& chmod 0775 /var/lib/mongodb-mms-automation \
64+
&& mkdir -p /data \
65+
&& chmod 0775 /data \
66+
&& mkdir -p /journal \
67+
&& chmod 0775 /journal \
68+
&& mkdir -p "${MMS_HOME}" \
69+
&& chmod -R 0775 "${MMS_HOME}"
70+
71+
72+
73+
74+
# USER needs to be set for this image to pass RedHat verification. Some customers have these requirements as well
75+
# It does not matter what number it is, as long as it is set to something.
76+
# However, OpenShift will run the container as a random user,
77+
# and the number in this configuration is not relevant.
78+
USER 2000
79+
80+
81+
# The docker image doesn't have any scripts so by default does nothing
82+
# The script will be copied in runtime from init containers and the operator is expected
83+
# to override the COMMAND
84+
ENTRYPOINT ["sleep infinity"]
85+
86+
87+
COPY --from=base /data/licenses/mongodb-enterprise-database /licenses/mongodb-enterprise-database
88+
89+
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM ubuntu:16.04
5+
6+
7+
8+
9+
LABEL name="MongoDB Enterprise Database" \
10+
version="2.0.0" \
11+
summary="MongoDB Enterprise Database Image" \
12+
description="MongoDB Enterprise Database Image" \
13+
vendor="MongoDB" \
14+
release="1" \
15+
maintainer="[email protected]"
16+
17+
18+
19+
20+
21+
22+
ENV MMS_HOME /mongodb-automation
23+
ENV MMS_LOG_DIR /var/log/mongodb-mms-automation
24+
25+
26+
27+
28+
29+
30+
31+
RUN apt-get -qq update \
32+
&& apt-get -y -qq install \
33+
curl \
34+
jq \
35+
libcurl3 \
36+
libgssapi-krb5-2 \
37+
libkrb5-dbg \
38+
libldap-2.4-2 \
39+
libpcap0.8 \
40+
libsasl2-2 \
41+
lsb-release \
42+
openssl \
43+
snmp \
44+
libnss-wrapper \
45+
&& apt-get upgrade -y -qq \
46+
&& apt-get dist-upgrade -y -qq \
47+
&& rm -rf /var/lib/apt/lists/*
48+
49+
50+
# Set the required perms
51+
RUN mkdir -p "${MMS_LOG_DIR}" \
52+
&& chmod 0775 "${MMS_LOG_DIR}" \
53+
&& mkdir -p /var/lib/mongodb-mms-automation \
54+
&& chmod 0775 /var/lib/mongodb-mms-automation \
55+
&& mkdir -p /data \
56+
&& chmod 0775 /data \
57+
&& mkdir -p /journal \
58+
&& chmod 0775 /journal \
59+
&& mkdir -p "${MMS_HOME}" \
60+
&& chmod -R 0775 "${MMS_HOME}"
61+
62+
63+
64+
65+
# USER needs to be set for this image to pass RedHat verification. Some customers have these requirements as well
66+
# It does not matter what number it is, as long as it is set to something.
67+
# However, OpenShift will run the container as a random user,
68+
# and the number in this configuration is not relevant.
69+
USER 2000
70+
71+
72+
# The docker image doesn't have any scripts so by default does nothing
73+
# The script will be copied in runtime from init containers and the operator is expected
74+
# to override the COMMAND
75+
ENTRYPOINT ["sleep infinity"]
76+
77+
78+
COPY --from=base /data/licenses/mongodb-enterprise-database /licenses/mongodb-enterprise-database
79+
80+

0 commit comments

Comments
 (0)