File tree Expand file tree Collapse file tree 3 files changed +28
-21
lines changed
Expand file tree Collapse file tree 3 files changed +28
-21
lines changed Original file line number Diff line number Diff line change 1- FROM scratch AS base
2-
3- ARG agent_version
4- ARG agent_distro
5- ARG tools_version
6- ARG tools_distro
7-
8- ADD https://mciuploads.s3.amazonaws.com/mms-automation/mongodb-mms-build-agent/builds/automation-agent/prod/mongodb-mms-automation-agent-${agent_version}.${agent_distro}.tar.gz /data/mongodb-agent.tar.gz
9- ADD https://downloads.mongodb.org/tools/db/mongodb-database-tools-${tools_distro}-${tools_version}.tgz /data/mongodb-tools.tgz
10-
11- COPY ./docker/mongodb-kubernetes-init-database/content/LICENSE /data/LICENSE
12- COPY ./docker/mongodb-kubernetes-init-database/content/LICENSE /data/LICENSE
13- COPY ./docker/mongodb-agent/agent-launcher-shim.sh /opt/scripts/agent-launcher-shim.sh
14- COPY ./docker/mongodb-agent/setup-agent-files.sh /opt/scripts/setup-agent-files.sh
15- COPY ./docker/mongodb-agent/dummy-probe.sh /opt/scripts/dummy-probe.sh
16- COPY ./docker/mongodb-agent/dummy-readinessprobe.sh /opt/scripts/dummy-readinessprobe.sh
1+ ARG imagebase
2+ FROM ${imagebase} as base
173
184FROM registry.access.redhat.com/ubi9/ubi-minimal
195
Original file line number Diff line number Diff line change 1- ARG imagebase
2- FROM ${imagebase} as base
1+ FROM scratch AS base
2+
3+ ARG agent_version
4+ ARG agent_distro
5+ ARG tools_version
6+ ARG tools_distro
7+
8+ ADD https://mciuploads.s3.amazonaws.com/mms-automation/mongodb-mms-build-agent/builds/automation-agent/prod/mongodb-mms-automation-agent-${agent_version}.${agent_distro}.tar.gz /data/mongodb-agent.tar.gz
9+ ADD https://downloads.mongodb.org/tools/db/mongodb-database-tools-${tools_distro}-${tools_version}.tgz /data/mongodb-tools.tgz
10+
11+ COPY ./docker/mongodb-kubernetes-init-database/content/LICENSE /data/LICENSE
12+ COPY ./docker/mongodb-kubernetes-init-database/content/LICENSE /data/LICENSE
13+ COPY ./docker/mongodb-agent/agent-launcher-shim.sh /opt/scripts/agent-launcher-shim.sh
14+ COPY ./docker/mongodb-agent/setup-agent-files.sh /opt/scripts/setup-agent-files.sh
15+ COPY ./docker/mongodb-agent/dummy-probe.sh /opt/scripts/dummy-probe.sh
16+ COPY ./docker/mongodb-agent/dummy-readinessprobe.sh /opt/scripts/dummy-readinessprobe.sh
317
418FROM registry.access.redhat.com/ubi9/ubi-minimal
519
@@ -41,6 +55,7 @@ RUN mkdir -p /agent \
4155 && touch /var/log/mongodb-mms-automation/readiness.log \
4256 && chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log
4357
58+
4459COPY --from=base /data/mongodb-agent.tar.gz /agent
4560COPY --from=base /data/mongodb-tools.tgz /agent
4661COPY --from=base /data/LICENSE /licenses/LICENSE
Original file line number Diff line number Diff line change @@ -23,9 +23,15 @@ images:
2323 labels :
2424 quay.expires-after : 48h
2525
26- output :
27- - registry : $(inputs.params.registry)/mongodb-agent-ubi
28- tag : $(inputs.params.version)-context-$(inputs.params.architecture)
26+ - name : mongodb-agent-build-ubi
27+ task_type : docker_build
28+ buildargs :
29+ imagebase : $(inputs.params.registry)/mongodb-agent-ubi:$(inputs.params.version)-context
30+ version : $(inputs.params.version)
31+ dockerfile : docker/mongodb-agent/Dockerfile
32+ output :
33+ - registry : $(inputs.params.registry)/mongodb-agent-ubi
34+ tag : $(inputs.params.version)
2935
3036 - name : mongodb-agent-build-context-release
3137 task_type : docker_build
You can’t perform that action at this time.
0 commit comments