Skip to content

Commit a92d518

Browse files
committed
Support Mongo on Jammy
1 parent 33529d4 commit a92d518

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

chunks/tool-mongodb/Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,20 @@ USER gitpod
66
# Dazzle does not rebuild a layer until one of its lines are changed. Increase this counter to rebuild this layer.
77
ENV TRIGGER_REBUILD=1
88

9+
# Install MongoDB Shell aka MongoSH (was part of Mongo 5, but, is separate now)
10+
RUN mkdir -p /tmp/mongosh && \
11+
cd /tmp/mongosh && \
12+
wget -qOmongosh.tgz https://downloads.mongodb.com/compass/mongosh-1.8.0-linux-x64.tgz && \
13+
tar xf mongosh.tgz && \
14+
cd mongosh-* && \
15+
sudo cp bin/* /usr/local/bin/ && \
16+
rm -rf /tmp/mongosh
17+
918
# Install MongoDB
1019
# Source: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu-tarball/#install-mongodb-community-edition
1120
RUN mkdir -p /tmp/mongodb && \
1221
cd /tmp/mongodb && \
13-
wget -qOmongodb.tgz https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-5.0.2.tgz && \
22+
wget -qOmongodb.tgz https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-6.0.4.tgz && \
1423
tar xf mongodb.tgz && \
1524
cd mongodb-* && \
1625
sudo cp bin/* /usr/local/bin/ && \

tests/tool-mongodb.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
- desc: it should run mongodb shell
2-
command: [mongo --version]
1+
- desc: it should run mongosh
2+
command: [mongosh --version]
33
entrypoint: [bash, -i, -c]
44
assert:
55
- status == 0
6-
- stdout.indexOf("MongoDB shell version v5.0.2") != -1
7-
- desc: it should run mongodb shell
6+
- stdout.indexOf("1.8.0") != -1
7+
- desc: it should run mongod
88
command: [mongod --version]
99
entrypoint: [bash, -i, -c]
1010
assert:
1111
- status == 0
12-
- stdout.indexOf("db version v5.0.2") != -1
12+
- stdout.indexOf("db version v6.0.4") != -1

0 commit comments

Comments
 (0)