Skip to content

Commit 786291e

Browse files
authored
Merge pull request #45 from bashbang/main
Added MongoSH
2 parents 835a36e + d370f98 commit 786291e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

utility-pod/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ FROM public.ecr.aws/ubuntu/ubuntu:24.04_stable
22

33
SHELL ["/bin/bash", "-c"]
44

5-
RUN curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmor \
6-
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-8.0.list
7-
85
RUN apt-get -y update && \
96
apt-get -y upgrade
107

@@ -19,7 +16,6 @@ RUN apt-get -y install \
1916
iputils-ping \
2017
jq \
2118
lynx \
22-
mongodb-mongosh \
2319
mysql-client \
2420
nmap \
2521
postgresql \
@@ -32,9 +28,13 @@ RUN apt-get -y install \
3228
unzip \
3329
vim \
3430
wget \
35-
yq \
36-
&& \
37-
rm -rf /var/lib/apt/lists/*
31+
yq
32+
33+
RUN curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmor \
34+
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-8.0.list \
35+
apt-get -y install mongodb-mongosh
36+
37+
RUN rm -rf /var/lib/apt/lists/*
3838

3939
# A writeable folder for OCP deployments that are non-root based runtimes
4040
RUN mkdir /test && \

0 commit comments

Comments
 (0)