Skip to content

Commit 9fe3cb0

Browse files
committed
Fix db tools
1 parent b90c986 commit 9fe3cb0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docker/mongodb-agent/Dockerfile.atomic

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ RUN case ${TARGETPLATFORM} in \
2020
&& mkdir -p /tools \
2121
&& curl -o /tools/mongodb_tools.tgz "${mongodb_tools_url}/${MONGODB_TOOLS_VERSION}"
2222

23-
RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \
24-
&& rm /tools/mongodb_tools.tgz
23+
RUN tar xfz /tools/mongodb_tools.tgz \
24+
&& mv mongodb-database-tools-*/bin/* /tools \
25+
&& chmod +x /tools/* \
26+
&& rm /tools/mongodb_tools.tgz \
27+
&& rm -r mongodb-database-tools-*
2528

2629
FROM --platform=${BUILDPLATFORM} registry.access.redhat.com/ubi9/ubi-minimal AS agent_downloader
2730

0 commit comments

Comments
 (0)