Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

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

add docker file

parent 4b05bef4
This diff is collapsed.
Credit: [Tim Doerr](https://github.com/tom-doerr/commonroad-docker)
# What is it?
This repository provides a dockerfile to simplify the setup of CommonRoad-Search (https://gitlab.lrz.de/tum-cps/commonroad-search).
# Installation
## Option 1 (recommended): Use the prebuild docker image
### Install docker
On Ubuntu/Debian/Linux-Mint etc.:
```
sudo apt-get install docker.io
```
For other platforms have a look at
https://docs.docker.com/v17.12/install/ .
### Download CommonRoad-Search
```
git clone https://gitlab.lrz.de/tum-cps/commonroad-search.git
cd commonroad-search
```
### Run the docker container
```
sudo docker run -it -p 9000:8888 --mount src="$(pwd)",target=/commonroad-search,type=bind tomdoerr/commonroad-search
```
You can now access the jupyter notebooks by opening `localhost:9000` in your browser.
## Option 2: Build the docker image yourself
### Install docker
On Ubuntu/Debian/Linux-Mint etc.:
```
sudo apt-get install docker.io
```
For other platforms have a look at
https://docs.docker.com/v17.12/install/ .
### Download repositories and build docker container
```
git clone https://github.com/tom-doerr/commonroad-docker.git
cd commonroad-docker
sudo docker build -t "commonroad_search" - < commonroad_search.dockerfile
git clone https://gitlab.lrz.de/tum-cps/commonroad-search.git ../commonroad-search
cd ../commonroad-search
```
### Run the container
Run the following command to start the docker container:
```
sudo docker run -it -p 9000:8888 --mount src="$(pwd)",target=/commonroad-search,type=bind commonroad_search
```
You can now access the jupyter notebooks by opening `localhost:9000` in your browser.
FROM continuumio/anaconda3
RUN conda install jupyter
RUN conda install ipykernel
RUN pip install ipython-autotime
RUN conda install ipywidgets
RUN conda install sphinx
RUN jupyter nbextension install --py widgetsnbextension --user
RUN jupyter nbextension enable widgetsnbextension --user --py
RUN apt-get install -y \
make \
build-essential \
m4 \
libboost-dev \
libboost-thread-dev \
libboost-test-dev \
libboost-filesystem-dev \
cmake \
libeigen3-dev
RUN pip install commonroad-io
RUN git clone https://github.com/danfis/libccd.git && \
cd libccd && \
mkdir build && cd build && \
cmake -G "Unix Makefiles" -DENABLE_DOUBLE_PRECISION=ON -DBUILD_SHARED_LIBS=ON .. && \
make && \
make install
RUN git clone https://github.com/eigenteam/eigen-git-mirror.git && \
cd eigen-git-mirror
RUN git clone https://github.com/flexible-collision-library/fcl.git && \
cd fcl && \
mkdir build && cd build && \
cmake .. && \
make && \
make install
RUN conda create -n commonroad-py37 python=3.7
RUN bash -c "source activate commonroad-py37 && \
pip install \
pybind11 \
commonroad-io \
triangle \
matplotlib \
Shapely \
polygon3 \
numpy"
RUN conda env list
RUN git clone https://gitlab.lrz.de/tum-cps/commonroad-search.git && \
cd commonroad-search/GSMP/tools/commonroad-collision-checker && \
mkdir build && \
cd build && \
cmake -DADD_PYTHON_BINDINGS=TRUE -DPATH_TO_PYTHON_ENVIRONMENT="/opt/conda/envs/commonroad-py37" -DPYTHON_VERSION="3.7" -DCMAKE_BUILD_TYPE=Release .. && \
make
RUN cd commonroad-search/GSMP/tools/commonroad-collision-checker && \
python setup.py install
ENTRYPOINT bash -c "source activate commonroad-py37 && cd commonroad-search && jupyter notebook --ip 0.0.0.0 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.password=''"
# Dockerfile containing installation steps for additional (optional) software
FROM tomdoerr/commonroad-search
RUN mkdir -p $(jupyter --data-dir)/nbextensions
RUN cd $(jupyter --data-dir)/nbextensions; git clone https://github.com/lambdalisue/jupyter-vim-binding vim_binding
RUN jupyter nbextension enable vim_binding/vim_binding
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