Notice to GitKraken users: A vulnerability has been found in the SSH key generation of GitKraken versions 7.6.0 to 8.0.0 (https://www.gitkraken.com/blog/weak-ssh-key-fix). If you use GitKraken and have generated a SSH key using one of these versions, please remove it both from your local workstation and from your LRZ GitLab profile.

21.10.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit dd0c2385 authored by Edmond Irani Liu's avatar Edmond Irani Liu 🏂
Browse files

update docker & guide

parent 89d6919d
......@@ -18,7 +18,7 @@ $ git clone https://gitlab.lrz.de/tum-cps/commonroad-search.git
You can either run the code locally, in a virtual machine, or in a docker container.
1. Ubuntu, MacOS, Windows: a [VirtualBox](https://www.virtualbox.org/) image is available in which all the necessary packages have been installed. The virtual machine image can be downloaded via `this-to-update` link. The downloading and the default login passwords are both `commonroad`.
1. Ubuntu, MacOS, Windows: a [VirtualBox](https://www.virtualbox.org/) image is available in which all the necessary packages have been installed. The virtual machine image can be downloaded via [this](https://syncandshare.lrz.de/getlink/fi451Sy2CYcJMBT7hZbov5qg/LUbuntu18.04_VirturalBox_2020AI%5B13.11%5D.zip) link. The downloading and the default login passwords are both `commonroad`.
2. Ubuntu, MacOS, Windows: a docker file and a docker image is available if you wish to run the code with docker container. Refer to `docker/README.md` for instructions. Minimum system requirements can be found [here](https://docs.docker.com/desktop/).
3. Ubuntu 18.04: If you wish to install the code locally, proceed with the installation guide below.
......
# Docker for CommonRoad Search
In the following, we explain two ways of using Docker for CommonRoad Search. Special thanks to Tom Dörr, who helped us in creating this.
# Installation
## Option 1 (recommended): Pull the prebuilt docker image
### Install docker
On Ubuntu/Debian/Linux-Mint etc.:
......@@ -13,7 +13,7 @@ For other platforms, visit https://docs.docker.com/get-docker/.
### Run the docker container
In the root folder of the CommonRoad Search repository:
```
sudo docker run -it -p 9000:8888 --mount src="$(pwd)",target=/commonroad/commonroad-search,type=bind commonroad/commonroad_search
sudo docker run -it -p 9000:8888 --mount src="$(pwd)",target=/commonroad/commonroad-search,type=bind gitlab.lrz.de:5005/tum-cps/commonroad-search:2020_AI
```
You can now access the Jupyter Notebook by opening `localhost:9000` in your browser.
......@@ -28,12 +28,12 @@ For other platforms, visit https://docs.docker.com/get-docker/.
### Build docker image
In the folder where `commonroad_search_2020.dockerfile` is located:
```
sudo docker build -t "commonroad_search" - < commonroad_search_2020.dockerfile
sudo docker build -t "commonroad_search_2020" - < commonroad_search_2020.dockerfile
```
### Run the docker container
In the root folder of the CommonRoad Search repository:
```
sudo docker run -it -p 9000:8888 --mount src="$(pwd)",target=/commonroad/commonroad-search,type=bind commonroad_search
sudo docker run -it -p 9000:8888 --mount src="$(pwd)",target=/commonroad/commonroad-search,type=bind commonroad_search_2020
```
You can now access the Jupyter Notebook by opening `localhost:9000` in your browser.
\ No newline at end of file
......@@ -19,7 +19,7 @@ cmake \
libeigen3-dev \
socat \
tk-dev -y
RUN bash -ic 'pip install jupyter tqdm imageio pyyaml ipywidgets'
RUN bash -ic 'pip install jupyter tqdm imageio pyyaml ipywidgets networkx'
# link python3.7 to python3
RUN rm /usr/bin/python3 && ln -sf python3.7 /usr/bin/python3
......@@ -28,7 +28,7 @@ RUN rm /usr/bin/python3 && ln -sf python3.7 /usr/bin/python3
WORKDIR /commonroad
# install commonroad-io
RUN pip install commonroad-io
RUN pip install commonroad-io==2020.3
# build and install commonroad-drivability-checker
RUN git clone https://gitlab.lrz.de/tum-cps/commonroad-drivability-checker.git && \
......
No preview for this file type
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment