Skip to content

Commit 0d2de32

Browse files
Kubernetes Enterprise Operator Release 1.24.0 (#272)
* Updated * Updated * Remove references to rc images --------- Co-authored-by: Mircea Cosbuc <[email protected]>
1 parent 6621196 commit 0d2de32

File tree

25 files changed

+574
-96
lines changed

25 files changed

+574
-96
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG agent_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 curl \
17+
hostname nss_wrapper tar gzip procps\
18+
&& microdnf upgrade -y \
19+
&& rm -rf /var/lib/apt/lists/*
20+
21+
RUN mkdir -p /agent \
22+
&& mkdir -p /var/lib/mongodb-mms-automation \
23+
&& mkdir -p /var/log/mongodb-mms-automation/ \
24+
&& chmod -R +wr /var/log/mongodb-mms-automation/ \
25+
# ensure that the agent user can write the logs in OpenShift
26+
&& touch /var/log/mongodb-mms-automation/readiness.log \
27+
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log
28+
29+
30+
COPY --from=base /data/mongodb-agent.tar.gz /agent
31+
COPY --from=base /data/mongodb-tools.tgz /agent
32+
COPY --from=base /data/LICENSE /licenses/LICENSE
33+
34+
RUN tar xfz /agent/mongodb-agent.tar.gz \
35+
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \
36+
&& chmod +x /agent/mongodb-agent \
37+
&& mkdir -p /var/lib/automation/config \
38+
&& chmod -R +r /var/lib/automation/config \
39+
&& rm /agent/mongodb-agent.tar.gz \
40+
&& rm -r mongodb-mms-automation-agent-*
41+
42+
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz
43+
44+
USER 2000
45+
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"]

dockerfiles/mongodb-agent/11.0.11.7036-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \

dockerfiles/mongodb-agent/11.0.12.7051-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \

dockerfiles/mongodb-agent/11.0.13.7055-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \

dockerfiles/mongodb-agent/11.0.14.7064-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \

dockerfiles/mongodb-agent/11.0.15.7073-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \

dockerfiles/mongodb-agent/11.0.16.7080-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \

dockerfiles/mongodb-agent/11.12.0.7388-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
ARG imagebase
2+
FROM ${imagebase} as base
3+
4+
FROM registry.access.redhat.com/ubi8/ubi-minimal
5+
6+
ARG agent_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+
RUN microdnf install -y --disableplugin=subscription-manager curl \
18+
hostname tar gzip procps\
19+
&& microdnf upgrade -y \
20+
&& rm -rf /var/lib/apt/lists/*
21+
22+
RUN mkdir -p /agent \
23+
&& mkdir -p /var/lib/mongodb-mms-automation \
24+
&& mkdir -p /var/log/mongodb-mms-automation/ \
25+
&& chmod -R +wr /var/log/mongodb-mms-automation/ \
26+
# ensure that the agent user can write the logs in OpenShift
27+
&& touch /var/log/mongodb-mms-automation/readiness.log \
28+
&& chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log
29+
30+
31+
COPY --from=base /data/mongodb-agent.tar.gz /agent
32+
COPY --from=base /data/mongodb-tools.tgz /agent
33+
COPY --from=base /data/LICENSE /licenses/LICENSE
34+
35+
RUN tar xfz /agent/mongodb-agent.tar.gz \
36+
&& mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \
37+
&& chmod +x /agent/mongodb-agent \
38+
&& mkdir -p /var/lib/automation/config \
39+
&& chmod -R +r /var/lib/automation/config \
40+
&& rm /agent/mongodb-agent.tar.gz \
41+
&& rm -r mongodb-mms-automation-agent-*
42+
43+
RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz
44+
45+
USER 2000
46+
CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"]

dockerfiles/mongodb-agent/12.0.4.7554-1/ubi/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN microdnf install -y --disableplugin=subscription-manager curl \
1818
&& microdnf upgrade -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
RUN microdnf remove perl-IO-Socket-SSL
2221
RUN mkdir -p /agent \
2322
&& mkdir -p /var/lib/mongodb-mms-automation \
2423
&& mkdir -p /var/log/mongodb-mms-automation/ \

0 commit comments

Comments
 (0)