Skip to content

Latest commit

 

History

History
 
 

docker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Docker

Make sure you have Docker installed, and Docker Desktop is running.

Build an image

In the knowledge-repo folder, run the following command:

docker build -t knowledge -f docker/Dockerfile .

Run it locally

docker run --rm -it -p 7000:7000 -e KNOWLEDGE_REPO=test_repo knowledge

After the server is up and running in Docker, the knowledge-repo service will be accessible at http://localhost:7000. If the 7000 port number is being used by another process, you may choose another local port number to use, e.g., the following command starts the service at port number 7001 (i.e., http://localhost:7001):

docker run --rm -it -p 7001:7000 -e KNOWLEDGE_REPO=test_repo knowledge

Run it locally with a mapped notebook-folder

docker run --rm -it -p 7000:7000 -v <notebook-folder>:/data -e KNOWLEDGE_REPO=test_repo knowledge