Skip to content

Commit 612410f

Browse files
lucian-tosamircea-cosbuc
authored andcommitted
Temporarily remove merged dockerfiles
1 parent 7adab2e commit 612410f

File tree

3 files changed

+28
-21
lines changed

3 files changed

+28
-21
lines changed

docker/mongodb-agent/Dockerfile

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
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

184
FROM registry.access.redhat.com/ubi9/ubi-minimal
195

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
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

418
FROM 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+
4459
COPY --from=base /data/mongodb-agent.tar.gz /agent
4560
COPY --from=base /data/mongodb-tools.tgz /agent
4661
COPY --from=base /data/LICENSE /licenses/LICENSE

inventories/agent.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)