Skip to content

Commit cc90ef1

Browse files
GuanzhouSongCopilot
andcommitted
Keep the "try it" step on the site
The final acceptance run reached a working, queryable database following the site alone and reported that nothing had to be guessed -- but it deducted a point because completing the documented ""insert and read a document"" step required leaving documentdb.io for mongodb.com. The page said `mongosh` is not shipped and linked the official instructions, which is honest but leaves a hole in the one flow the page exists to demonstrate. Give the commands for the two paved-road targets inline, and keep the link for everything else. Both were run in clean containers first: Ubuntu 24.04 and Rocky 9 each install mongosh 2.10.0. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8df9084a-ccaf-432c-b015-2ccd8893a9d8
1 parent c587e3a commit cc90ef1

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

‎app/services/articleService.ts‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,22 @@ sudo documentdb-setup --admin-user admin
195195
196196
It creates the PostgreSQL instance, installs the extensions, bootstraps the admin user, starts the gateway, and enables \`documentdb-local@<major>.target\` so the stack survives reboot. It **prompts for the admin password**; for servers and CI pass \`--admin-password-file <file>\` or \`--admin-password-stdin\` together with \`--yes\`.
197197
198-
\`mongosh\` is not shipped by these packages — install it from the [official instructions](https://www.mongodb.com/docs/mongodb-shell/install/), then:
198+
\`mongosh\` is not shipped by these packages. Install it from MongoDB's own repository — these are the commands for the two paved-road targets, and the [official instructions](https://www.mongodb.com/docs/mongodb-shell/install/) cover every other platform:
199+
200+
\`\`\`bash
201+
# Ubuntu 24.04
202+
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | sudo gpg --dearmor -o /usr/share/keyrings/mongodb-server-8.0.gpg
203+
echo "deb [signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list >/dev/null
204+
sudo apt update && sudo apt install -y mongodb-mongosh
205+
206+
# RHEL-compatible 9
207+
printf '%s\\n' '[mongodb-org-8.0]' 'name=MongoDB Repository' \\
208+
'baseurl=https://repo.mongodb.org/yum/redhat/9/mongodb-org/8.0/x86_64/' \\
209+
'gpgcheck=1' 'enabled=1' 'gpgkey=https://pgp.mongodb.com/server-8.0.asc' | sudo tee /etc/yum.repos.d/mongodb-org-8.0.repo >/dev/null
210+
sudo dnf install -y mongodb-mongosh
211+
\`\`\`
212+
213+
Then connect:
199214
200215
\`\`\`bash
201216
mongosh 'mongodb://admin:<PASSWORD>@127.0.0.1:10260/mydb?tls=true&tlsAllowInvalidCertificates=true' \\

0 commit comments

Comments
 (0)