Skip to content

Commit 7048d5d

Browse files
Updated
1 parent 16e17da commit 7048d5d

File tree

24 files changed

+946
-51
lines changed

24 files changed

+946
-51
lines changed

Diff for: dockerfiles/mongodb-agent/107.0.1.8507-1/ubi/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM ${imagebase} as base
33

44
FROM registry.access.redhat.com/ubi8/ubi-minimal
55

6-
ARG agent_version
6+
ARG version
77

88
LABEL name="MongoDB Agent" \
99
version="${agent_version}" \
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${agent_version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="[email protected]"
15+
16+
COPY --from=base /data/probe.sh /opt/scripts/probe.sh
17+
COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe
18+
COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook
19+
COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh
20+
COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh
21+
COPY --from=base /data/LICENSE /LICENSE
22+
23+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
24+
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/
25+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
26+
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl openldap openssl xz-libs
27+
# Dependencies for the Agent
28+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
29+
net-snmp \
30+
net-snmp-agent-libs
31+
RUN microdnf install -y --disableplugin=subscription-manager curl \
32+
hostname tar gzip procps jq \
33+
&& microdnf upgrade -y \
34+
&& rm -rf /var/lib/apt/lists/*
35+
36+
37+
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
38+
COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz
39+
40+
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \
41+
&& rm /tools/mongodb_tools.tgz
42+
43+
44+
RUN tar xfz /agent/mongodb_agent.tgz
45+
RUN ls /agent
46+
RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent
47+
RUN ls /agent
48+
RUN chmod +x /agent/mongodb-agent
49+
RUN mkdir -p /var/lib/automation/config
50+
RUN ls /var/lib/automation/config
51+
RUN chmod -R +r /var/lib/automation/config
52+
RUN ls /var/lib/automation/config
53+
RUN rm /agent/mongodb_agent.tgz
54+
RUN rm -r mongodb-mms-automation-agent-*
55+
56+
USER 2000
57+
58+
HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1

Diff for: dockerfiles/mongodb-agent/107.0.2.8531-1/ubi/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM ${imagebase} as base
33

44
FROM registry.access.redhat.com/ubi8/ubi-minimal
55

6-
ARG agent_version
6+
ARG version
77

88
LABEL name="MongoDB Agent" \
99
version="${agent_version}" \
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${agent_version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="[email protected]"
15+
16+
COPY --from=base /data/probe.sh /opt/scripts/probe.sh
17+
COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe
18+
COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook
19+
COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh
20+
COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh
21+
COPY --from=base /data/LICENSE /LICENSE
22+
23+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
24+
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/
25+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
26+
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl openldap openssl xz-libs
27+
# Dependencies for the Agent
28+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
29+
net-snmp \
30+
net-snmp-agent-libs
31+
RUN microdnf install -y --disableplugin=subscription-manager curl \
32+
hostname tar gzip procps jq \
33+
&& microdnf upgrade -y \
34+
&& rm -rf /var/lib/apt/lists/*
35+
36+
37+
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
38+
COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz
39+
40+
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \
41+
&& rm /tools/mongodb_tools.tgz
42+
43+
44+
RUN tar xfz /agent/mongodb_agent.tgz
45+
RUN ls /agent
46+
RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent
47+
RUN ls /agent
48+
RUN chmod +x /agent/mongodb-agent
49+
RUN mkdir -p /var/lib/automation/config
50+
RUN ls /var/lib/automation/config
51+
RUN chmod -R +r /var/lib/automation/config
52+
RUN ls /var/lib/automation/config
53+
RUN rm /agent/mongodb_agent.tgz
54+
RUN rm -r mongodb-mms-automation-agent-*
55+
56+
USER 2000
57+
58+
HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1

Diff for: dockerfiles/mongodb-agent/107.0.3.8550-1/ubi/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM ${imagebase} as base
33

44
FROM registry.access.redhat.com/ubi8/ubi-minimal
55

6-
ARG agent_version
6+
ARG version
77

88
LABEL name="MongoDB Agent" \
99
version="${agent_version}" \

Diff for: dockerfiles/mongodb-agent/107.0.4.8567-1/ubi/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM ${imagebase} as base
33

44
FROM registry.access.redhat.com/ubi8/ubi-minimal
55

6-
ARG agent_version
6+
ARG version
77

88
LABEL name="MongoDB Agent" \
99
version="${agent_version}" \
+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${agent_version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="[email protected]"
15+
16+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
17+
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/
18+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
19+
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl openldap openssl xz-libs
20+
# Dependencies for the Agent
21+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
22+
net-snmp \
23+
net-snmp-agent-libs
24+
RUN microdnf install -y --disableplugin=subscription-manager curl \
25+
hostname tar gzip procps jq \
26+
&& microdnf upgrade -y \
27+
&& rm -rf /var/lib/apt/lists/*
28+
29+
RUN mkdir -p /agent \
30+
&& mkdir -p /var/lib/mongodb-mms-automation \
31+
&& mkdir -p /var/log/mongodb-mms-automation/ \
32+
&& chmod -R +wr /var/log/mongodb-mms-automation/ \
33+
# ensure that the agent user can write the logs in OpenShift
34+
&& touch /var/log/mongodb-mms-automation/readiness.log \
35+
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log
36+
37+
38+
COPY --from=base /data/mongodb-agent.tar.gz /agent
39+
COPY --from=base /data/mongodb-tools.tgz /agent
40+
COPY --from=base /data/LICENSE /licenses/LICENSE
41+
42+
RUN tar xfz /agent/mongodb-agent.tar.gz \
43+
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \
44+
&& chmod +x /agent/mongodb-agent \
45+
&& mkdir -p /var/lib/automation/config \
46+
&& chmod -R +r /var/lib/automation/config \
47+
&& rm /agent/mongodb-agent.tar.gz \
48+
&& rm -r mongodb-mms-automation-agent-*
49+
50+
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz
51+
52+
USER 2000
53+
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${agent_version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="[email protected]"
15+
16+
COPY --from=base /data/probe.sh /opt/scripts/probe.sh
17+
COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe
18+
COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook
19+
COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh
20+
COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh
21+
COPY --from=base /data/LICENSE /LICENSE
22+
23+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
24+
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/
25+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
26+
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl openldap openssl xz-libs
27+
# Dependencies for the Agent
28+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
29+
net-snmp \
30+
net-snmp-agent-libs
31+
RUN microdnf install -y --disableplugin=subscription-manager curl \
32+
hostname tar gzip procps jq \
33+
&& microdnf upgrade -y \
34+
&& rm -rf /var/lib/apt/lists/*
35+
36+
37+
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
38+
COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz
39+
40+
RUN tar xfz /tools/mongodb_tools.tgz
41+
RUN mv mongodb-database-tools-*/bin/* /tools
42+
RUN chmod +x /tools/*
43+
RUN rm /tools/mongodb_tools.tgz
44+
RUN rm -rf /mongodb-database-tools-*
45+
46+
RUN tar xfz /agent/mongodb_agent.tgz
47+
RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent
48+
RUN chmod +x /agent/mongodb-agent
49+
RUN rm /agent/mongodb_agent.tgz
50+
RUN rm -rf mongodb-mms-automation-agent-*
51+
52+
RUN mkdir -p /var/lib/automation/config
53+
RUN chmod -R +r /var/lib/automation/config
54+
55+
USER 2000
56+
57+
HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1
+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${agent_version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="[email protected]"
15+
16+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
17+
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/
18+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
19+
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl openldap openssl xz-libs
20+
# Dependencies for the Agent
21+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
22+
net-snmp \
23+
net-snmp-agent-libs
24+
RUN microdnf install -y --disableplugin=subscription-manager curl \
25+
hostname tar gzip procps jq \
26+
&& microdnf upgrade -y \
27+
&& rm -rf /var/lib/apt/lists/*
28+
29+
RUN mkdir -p /agent \
30+
&& mkdir -p /var/lib/mongodb-mms-automation \
31+
&& mkdir -p /var/log/mongodb-mms-automation/ \
32+
&& chmod -R +wr /var/log/mongodb-mms-automation/ \
33+
# ensure that the agent user can write the logs in OpenShift
34+
&& touch /var/log/mongodb-mms-automation/readiness.log \
35+
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log
36+
37+
38+
COPY --from=base /data/mongodb-agent.tar.gz /agent
39+
COPY --from=base /data/mongodb-tools.tgz /agent
40+
COPY --from=base /data/LICENSE /licenses/LICENSE
41+
42+
RUN tar xfz /agent/mongodb-agent.tar.gz \
43+
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \
44+
&& chmod +x /agent/mongodb-agent \
45+
&& mkdir -p /var/lib/automation/config \
46+
&& chmod -R +r /var/lib/automation/config \
47+
&& rm /agent/mongodb-agent.tar.gz \
48+
&& rm -r mongodb-mms-automation-agent-*
49+
50+
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz
51+
52+
USER 2000
53+
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG version
7+
8+
LABEL name="MongoDB Agent" \
9+
version="${agent_version}" \
10+
summary="MongoDB Agent" \
11+
description="MongoDB Agent" \
12+
vendor="MongoDB" \
13+
release="1" \
14+
maintainer="[email protected]"
15+
16+
COPY --from=base /data/probe.sh /opt/scripts/probe.sh
17+
COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe
18+
COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook
19+
COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh
20+
COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh
21+
COPY --from=base /data/LICENSE /LICENSE
22+
23+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
24+
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/
25+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
26+
cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl openldap openssl xz-libs
27+
# Dependencies for the Agent
28+
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \
29+
net-snmp \
30+
net-snmp-agent-libs
31+
RUN microdnf install -y --disableplugin=subscription-manager curl \
32+
hostname tar gzip procps jq \
33+
&& microdnf upgrade -y \
34+
&& rm -rf /var/lib/apt/lists/*
35+
36+
37+
COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz
38+
COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz
39+
40+
RUN tar xfz /tools/mongodb_tools.tgz
41+
RUN mv mongodb-database-tools-*/bin/* /tools
42+
RUN chmod +x /tools/*
43+
RUN rm /tools/mongodb_tools.tgz
44+
RUN rm -rf /mongodb-database-tools-*
45+
46+
RUN tar xfz /agent/mongodb_agent.tgz
47+
RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent
48+
RUN chmod +x /agent/mongodb-agent
49+
RUN rm /agent/mongodb_agent.tgz
50+
RUN rm -rf mongodb-mms-automation-agent-*
51+
52+
RUN mkdir -p /var/lib/automation/config
53+
RUN chmod -R +r /var/lib/automation/config
54+
55+
USER 2000
56+
57+
HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1

0 commit comments

Comments
 (0)