MongoDB container for SNHU class CS340.
264
docker pull moonlitaltar/cs340
Change "container_name" to whatever you'd like the container to be called
docker run -d -p 27017:27017 --name container_name moonlitaltar/cs340
docker exec -it container_name bash
Create a user using your SNHU handle for assignments.
useradd -m -s /bin/bash yourname_snhu
passwd yourname_snhu
su - yourname_snhu
/usr/local/datasets echo 'source /usr/local/datasets/mongodb-env.txt' >> ~/.bashrc
source ~/.bashrc
cd /usr/local/datasets
cp mongoshrc.js ~/.mongoshrc.js
mongosh
db.changeUserPassword("root", "NewPasswordHere")
exit
exit # This exit returns to root user
cd /usr/local/datasets
nano mongodb-env.txt
Change the password for MONGO_PASS from "password" to what you put in for "NewPasswordHere", use Ctrl+S to save, then Ctrl+X to exit.
su - yourname_snhu
mongosh
pip install pymongo notebook jupyter-dash dash-leaflet==0.1.9 dash==2.8.1 pandas==1.4.2 matplotlib
C:\Users\yournamehere\AppData\Local\Programs\Python\Python312\python.exe
jupyter notebook
Content type
Image
Digest
sha256:a0d23a8ca…
Size
466.7 MB
Last updated
about 3 years ago
docker pull moonlitaltar/cs340