This repository provides a Docker-based environment to ensure that all participants have the necessary libraries installed for the AI sessions.
- Install Docker on your machine. You can follow the instructions based on your operating system:
-
Login to Docker Hub and open Docker Desktop:
docker login
-
Clone this repository to your local machine:
git clone [email protected]:MantisAI/collab.git cd collab
-
Build the Docker image using the provided
Dockerfile
:For Windows:
docker build -t my-jupyter-app -f Dockerfile.windows .
For Unix:
docker build -t my-jupyter-app .
This command will create a Docker image named
my-jupyter-app
with all the necessary libraries pre-installed.
Once the image is built, you can run the container using the following command:
docker run -p 8888:8888 my-jupyter-app jupyter
This command will:
- Run the container to start Jupyter Notebook.
- Expose port 8888, which is commonly used for Jupyter notebooks (
-p 8888:8888
).
Copy the URL from the terminal output and open it in your browser to access the notebooks. It should look like:
http://localhost:8888/?token=<some-random-string>
To access the running container's shell (in case you need to install additional packages or run scripts), use:
docker exec -it <container-id> /bin/bash
You can get the container-id
using:
docker ps
To stop the running container, press CTRL+C
in the terminal where the container is running, or use:
docker stop <container-id>