From 0d2bb057dbbc7bcf28644b2c9e7ed18707f1eec0 Mon Sep 17 00:00:00 2001 From: Anton Kullberg <anton.kullberg@liu.se> Date: Fri, 12 Nov 2021 16:06:09 +0100 Subject: [PATCH] readme: updated readme with running instructions --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index e9edd20..2099376 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ The notebooks are hosted on Binder and can immediately be run. # Getting started locally Make sure to have Docker installed on your computer, see [Installing Docker](https://docs.docker.com/get-docker/). Then follow the steps below. +### Alternative 1: Building the Docker image locally #### Step 1 Clone the repository ``` @@ -24,3 +25,16 @@ Run the Docker image docker run --rm -it -p 8888:8888 targettracking ``` This opens up a Jupyter lab instance on port 8888 which you can open in any browser. +### Alternative 2: Pull Docker image from Container Registry +Run the Docker image (with notebooks) by running +``` +docker run --rm -it -p 8888:8888 gitlab.liu.se:5000/phd-courses/multiple-target-tracking +``` + +# Documentation +The documentation is hosted on Gitlab pages but is also buildable locally in the provided Docker image. +To build the documentation the following procedure is suggested. +``` +docker run --rm -it -v "$(pwd)":/home/jovyan/work targettracking pdoc --html --output-dir work/html/ src/ +``` +This will map your current folder into the jovyan/work folder in the container. Then, it builds the documentation to that directory and removes the container. The documentation is available in your current directory. -- GitLab