File tree 2 files changed +15
-6
lines changed
2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,20 @@ USER gitpod
6
6
# Dazzle does not rebuild a layer until one of its lines are changed. Increase this counter to rebuild this layer.
7
7
ENV TRIGGER_REBUILD=1
8
8
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
+
9
18
# Install MongoDB
10
19
# Source: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu-tarball/#install-mongodb-community-edition
11
20
RUN mkdir -p /tmp/mongodb && \
12
21
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 && \
14
23
tar xf mongodb.tgz && \
15
24
cd mongodb-* && \
16
25
sudo cp bin/* /usr/local/bin/ && \
Original file line number Diff line number Diff line change 1
- - desc : it should run mongodb shell
2
- command : [mongo --version]
1
+ - desc : it should run mongosh
2
+ command : [mongosh --version]
3
3
entrypoint : [bash, -i, -c]
4
4
assert :
5
5
- 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
8
8
command : [mongod --version]
9
9
entrypoint : [bash, -i, -c]
10
10
assert :
11
11
- status == 0
12
- - stdout.indexOf("db version v5 .0.2 ") != -1
12
+ - stdout.indexOf("db version v6 .0.4 ") != -1
You can’t perform that action at this time.
0 commit comments